Signed-off-by: caochunlei <caochunlei1@huawei.com>
This commit is contained in:
caochunlei
2022-05-06 16:21:14 +08:00
parent 18cfccdc14
commit 67fcf37e3c
@@ -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<IRemoteObject> 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;
}