From 7b14cc345d4ea15fcd858009eb536e8550c0a9a9 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Mon, 16 Jun 2025 19:03:20 +0800 Subject: [PATCH] modify AppUtils unittest cases for ability_runtime Signed-off-by: zhangzezhong --- .../app_utils_test/app_utils_test.cpp | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/test/unittest/app_utils_test/app_utils_test.cpp b/test/unittest/app_utils_test/app_utils_test.cpp index 560136c594a..cead4fd8601 100644 --- a/test/unittest/app_utils_test/app_utils_test.cpp +++ b/test/unittest/app_utils_test/app_utils_test.cpp @@ -425,20 +425,6 @@ HWTEST_F(AppUtilsTest, AppUtilsTest_2100, TestSize.Level2) EXPECT_TRUE(isSupport); } -/** - * @tc.number: IsLauncher_0100 - * @tc.desc: Test IsLauncher works - * @tc.type: FUNC - */ -HWTEST_F(AppUtilsTest, IsLauncher_0100, TestSize.Level2) -{ - TAG_LOGI(AAFwkTag::TEST, "IsLauncher_0100 called."); - std::string bundleName = "com.ohos.launcher"; - auto &appUtils = AAFwk::AppUtils::GetInstance(); - bool result = appUtils.IsLauncher(bundleName); - EXPECT_TRUE(result); -} - /** * @tc.number: IsLauncher_0200 * @tc.desc: Test IsLauncher works @@ -619,19 +605,5 @@ HWTEST_F(AppUtilsTest, IsUseMultiRenderProcess_0100, TestSize.Level2) bool result = appUtils.IsUseMultiRenderProcess(); EXPECT_TRUE(result); } - -/** - * @tc.number: IsLaunchEmbededUIAbility_0100 - * @tc.desc: Test IsLaunchEmbededUIAbility works - * @tc.type: FUNC - */ -HWTEST_F(AppUtilsTest, IsLaunchEmbededUIAbility_0100, TestSize.Level2) -{ - TAG_LOGI(AAFwkTag::TEST, "IsLaunchEmbededUIAbility_0100 called."); - auto &appUtils = AAFwk::AppUtils::GetInstance(); - appUtils.isLaunchEmbededUIAbility_.isLoaded = false; - bool result = appUtils.IsLaunchEmbededUIAbility(); - EXPECT_FALSE(result); -} } // namespace AbilityRuntime } // namespace OHOS -- Gitee