diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index 39bb926b8fd89e5692dc340e830fdb09b6045223..d59cd2283e582563044b38f63fcf7e67951136a9 100644 --- a/test/unittest/BUILD.gn +++ b/test/unittest/BUILD.gn @@ -98,12 +98,14 @@ ohos_unittest("DeviceUsageStatsTest") { "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", + "cJSON:cjson_static", "ffrt:libffrt", "hilog:libhilog", "ipc:ipc_single", "jsoncpp:jsoncpp", "safwk:system_ability_fwk", "samgr:samgr_proxy", + "selinux_adapter:librestorecon", ] defines = [] if (device_usage_statistics_with_powermgr_power_manager_enable) { @@ -140,12 +142,14 @@ ohos_unittest("DeviceUsageStatsMultiTest") { "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", + "cJSON:cjson_static", "ffrt:libffrt", "hilog:libhilog", "ipc:ipc_single", "jsoncpp:jsoncpp", "safwk:system_ability_fwk", "samgr:samgr_proxy", + "selinux_adapter:librestorecon", ] defines = [] if (device_usage_statistics_with_powermgr_power_manager_enable) { @@ -184,6 +188,7 @@ ohos_unittest("DeviceUsageStatsServiceTest") { "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", + "cJSON:cjson_static", "ffrt:libffrt", "hilog:libhilog", "ipc:ipc_single", @@ -191,6 +196,7 @@ ohos_unittest("DeviceUsageStatsServiceTest") { "relational_store:native_rdb", "safwk:system_ability_fwk", "samgr:samgr_proxy", + "selinux_adapter:librestorecon", "time_service:time_client", ] defines = []