From 9b08ae974c826faec5bd1b355b32f2fa1bdd6b4a Mon Sep 17 00:00:00 2001 From: huangxiaolinabc123 Date: Wed, 1 Mar 2023 01:40:41 +0000 Subject: [PATCH] modify code Signed-off-by: huangxiaolinabc123 Change-Id: I93b5ca311a0b17c7b0ed93feea6fcd2acbe3c976 --- services/aams/test/mock/src/mock_system_ability.cpp | 8 ++++++++ services/test/mock/mock_system_ability.cpp | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/services/aams/test/mock/src/mock_system_ability.cpp b/services/aams/test/mock/src/mock_system_ability.cpp index 21763bff..e4abf645 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 5e10600c..4c34fbf9 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) { -- Gitee