diff --git a/services/aams/test/mock/src/mock_system_ability.cpp b/services/aams/test/mock/src/mock_system_ability.cpp index 21763bffbe7e1a631547692c99f3a93b2fe5ab05..e4abf6453480dde67c1230a7b0575e87432c384a 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(std::unordered_map& startReason) +{} + // The details should be implemented by subclass void SystemAbility::OnStop() {} +// The details should be implemented by subclass +void SystemAbility::OnStop(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..4c34fbf9846d38b05ccfda78a13e178bf45aa50c 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(std::unordered_map& startReason) +{ +} + // The details should be implemented by subclass void SystemAbility::OnStop() { } +// The details should be implemented by subclass +void SystemAbility::OnStop(std::unordered_map& stopReason) +{ +} + // The details should be implemented by subclass void SystemAbility::OnAddSystemAbility(int32_t systemAbilityId, const std::string& deviceId) {