diff --git a/services/aams/test/mock/src/mock_system_ability.cpp b/services/aams/test/mock/src/mock_system_ability.cpp index 21763bffbe7e1a631547692c99f3a93b2fe5ab05..a1c9879b8099505b758fadac5798aa77ad09976f 100644 --- a/services/aams/test/mock/src/mock_system_ability.cpp +++ b/services/aams/test/mock/src/mock_system_ability.cpp @@ -142,10 +142,18 @@ void SystemAbility::OnDump() void SystemAbility::OnStart() {} +// The details should be implemented by subclass +void SystemAbility::OnStart(const std::unordered_map& startReason) +{} + // The details should be implemented by subclass void SystemAbility::OnStop() {} +// The details should be implemented by subclass +void SystemAbility::OnStop(const std::unordered_map& stopReason) +{} + // The details should be implemented by subclass void SystemAbility::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId) { diff --git a/services/test/mock/mock_system_ability.cpp b/services/test/mock/mock_system_ability.cpp index 5e10600c0848312079188d3eeb30b73db5ce46f9..26d1c83434b053c1cc3de4b9c7ce2ea3ea9bc81f 100644 --- a/services/test/mock/mock_system_ability.cpp +++ b/services/test/mock/mock_system_ability.cpp @@ -170,11 +170,21 @@ void SystemAbility::OnStart() { } +// The details should be implemented by subclass +void SystemAbility::OnStart(const std::unordered_map& startReason) +{ +} + // The details should be implemented by subclass void SystemAbility::OnStop() { } +// The details should be implemented by subclass +void SystemAbility::OnStop(const std::unordered_map& stopReason) +{ +} + // The details should be implemented by subclass void SystemAbility::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId) { diff --git a/services/test/mock/powermanager/src/mock_power_mgr_client.cpp b/services/test/mock/powermanager/src/mock_power_mgr_client.cpp index f025e21ac970cd26d13a07ea716f9d24c150950b..eddba452482d96c6724fad94ae35e33383bfe5ab 100644 --- a/services/test/mock/powermanager/src/mock_power_mgr_client.cpp +++ b/services/test/mock/powermanager/src/mock_power_mgr_client.cpp @@ -59,7 +59,7 @@ bool PowerMgrClient::RefreshActivity(UserActivityType type) return true; } -bool PowerMgrClient::IsRunningLockTypeSupported(uint32_t type) +bool PowerMgrClient::IsRunningLockTypeSupported(RunningLockType type) { return true; }