diff --git a/services/bundlemgr/test/mock/src/system_ability_helper.cpp b/services/bundlemgr/test/mock/src/system_ability_helper.cpp index 87df614a..6954a121 100644 --- a/services/bundlemgr/test/mock/src/system_ability_helper.cpp +++ b/services/bundlemgr/test/mock/src/system_ability_helper.cpp @@ -19,7 +19,6 @@ #include "system_ability_definition.h" #include "app_log_wrapper.h" -#include "mock_ability_mgr_host.h" namespace OHOS { namespace AppExecFwk { @@ -34,9 +33,6 @@ sptr SystemAbilityHelper::GetSystemAbility(const int32_t systemAb if (iter != g_abilities.end()) { return iter->second; } - if (systemAbilityId == ABILITY_MGR_SERVICE_ID) { - return new (std::nothrow) MockAbilityMgrStub(); - } return nullptr; }