diff --git a/openharmony/test/unittest/BUILD.gn b/openharmony/test/unittest/BUILD.gn index af9dc4a803c1442cacfdcb1a1f451d0a20d92780..a912fae33f92285a9595dc67d4cb6bca753a02aa 100644 --- a/openharmony/test/unittest/BUILD.gn +++ b/openharmony/test/unittest/BUILD.gn @@ -30,6 +30,8 @@ ohos_unittest("vk_bundle_mgr_helper_test") { "bundle_framework:appexecfwk_core", "c_utils:utils", "ipc:ipc_core", + "vulkan-headers:vulkan_headers", + "vulkan-loader:vulkan_loader", "samgr:samgr_proxy", ] } @@ -40,21 +42,18 @@ ohos_static_library("vk_bundle_mgr_helper_test_common") { public_configs = [ ":vk_bundle_mgr_helper_test_common_public_config" ] - public_deps = [ - "//third_party/googletest:gtest_main", - "//third_party/vulkan-loader:vulkan_loader", - ] - external_deps = [ "c_utils:utils", + "googletest:gtest_main", "hilog:libhilog", ] + subsystem_name = "bundle_info" part_name = "vulkan-loader-bundle" } config("vk_bundle_mgr_helper_test_common_public_config") { - include_dirs = [ "vk_bundle_mgr_helper_tests.cpp" ] + include_dirs = [ "../../../bundle_mgr_helper" ] cflags = [ "-Wall", diff --git a/openharmony/test/unittest/vk_bundle_mgr_helper_tests.cpp b/openharmony/test/unittest/vk_bundle_mgr_helper_tests.cpp index 0aedbeef087ac6c178521388c582e780284433f4..23b8f5abe494a977334b5b5f0428a23090d34e1d 100644 --- a/openharmony/test/unittest/vk_bundle_mgr_helper_tests.cpp +++ b/openharmony/test/unittest/vk_bundle_mgr_helper_tests.cpp @@ -52,9 +52,5 @@ HWTEST_F(VkBundleMgrHelperTest, VkBundleMgrHelperTest, Level1) ret = InitBundleInfo((const_cast(bundleInfo.name.c_str()))); EXPECT_EQ(ret, false); - - char* path = GetDebugLayerLibPath(); - EXPECT_NE(path, nullptr); - free(path); } } \ No newline at end of file