diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn old mode 100644 new mode 100755 index e207f1a89..42ae81182 --- a/test/unittest/BUILD.gn +++ b/test/unittest/BUILD.gn @@ -288,8 +288,6 @@ ohos_unittest("init_unittest") { "//utils/system/safwk/native/include", "//third_party/cJSON", "//third_party/zlib", - "//base/security/access_token/interfaces/innerkits/token_setproc/include", - "//base/security/access_token/interfaces/innerkits/nativetoken/include", "//base/startup/init/services/sandbox/include", "//base/startup/init/interfaces/innerkits/hals", "//base/startup/init/interfaces/innerkits/include/param", @@ -392,10 +390,10 @@ ohos_unittest("init_unittest") { "//base/startup/init/device_info/device_info_load.cpp", "//base/startup/init/device_info/device_info_proxy.cpp", ] - include_dirs += [ - "//base/security/access_token/interfaces/innerkits/accesstoken/include", + external_deps += [ + "access_token:libaccesstoken_sdk", + "selinux:libselinux", ] - external_deps += [ "selinux:libselinux" ] defines += [ "PARAM_FEATURE_DEVICEINFO" ] }