mirror of
https://gitee.com/openharmony/hiviewdfx_hiview
synced 2024-11-23 09:09:49 +00:00
规范化引用三方组件
Signed-off-by: caoxiaogang <cxg344685003@163.com>
This commit is contained in:
parent
f38496d205
commit
87ccc3d591
@ -51,10 +51,10 @@ ohos_unittest("SysEventServiceOhosUnitTest") {
|
||||
"$hiview_base:hiview_base",
|
||||
"$hiview_core:hiview_core",
|
||||
"$hiview_plugin/sys_dispatcher:sys_dispatcher",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"init:libbeget_proxy",
|
||||
"init:libbegetutil",
|
||||
|
@ -48,10 +48,10 @@ ohos_unittest("HiviewSATest") {
|
||||
deps = [
|
||||
"$hiview_adapter/service/client:hiview_service_impl_for_js",
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"ipc:ipc_single",
|
||||
"safwk:system_ability_fwk",
|
||||
@ -74,7 +74,6 @@ ohos_unittest("AdapterLoglibraryAbilityTest") {
|
||||
"$hiview_base:hiview_base",
|
||||
"$hiview_core:hiview_core",
|
||||
"$hiview_service:hiview_service",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -82,6 +81,7 @@ ohos_unittest("AdapterLoglibraryAbilityTest") {
|
||||
"access_token:libnativetoken",
|
||||
"access_token:libtoken_setproc",
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"ipc:ipc_single",
|
||||
"safwk:system_ability_fwk",
|
||||
|
@ -43,9 +43,11 @@ ohos_unittest("EventPublishTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_base/event_publish:hiview_event_publish",
|
||||
"$hiview_core:hiview_core",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
@ -45,12 +45,12 @@ ohos_unittest("EventRawBaseTest") {
|
||||
"$hiview_base/event_raw:hiview_event_raw_decode",
|
||||
"$hiview_base/event_raw:hiview_event_raw_encode",
|
||||
"$hiview_core:hiview_core",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
@ -76,12 +76,12 @@ ohos_unittest("EventRawEncodedAndDecodedTest") {
|
||||
"$hiview_base/event_raw:hiview_event_raw_decode",
|
||||
"$hiview_base/event_raw:hiview_event_raw_encode",
|
||||
"$hiview_core:hiview_core",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
@ -46,12 +46,12 @@ ohos_unittest("EventReportUnitTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core",
|
||||
"//base/hiviewdfx/hiview/base/event_report:hiview_event_report",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
@ -42,12 +42,12 @@ ohos_unittest("SysEventDaoTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core_for_test",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
@ -73,12 +73,12 @@ ohos_unittest("SysEventStoreUtilityTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core",
|
||||
"//base/hiviewdfx/hiview/base/event_store/utility:event_store_utility_source",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
@ -92,14 +92,12 @@ ohos_unittest("SysEventSequenceMgrTest") {
|
||||
|
||||
sources = [ "unittest/common/sys_event_sequence_mgr_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiviewbase_static_lib_for_tdd" ]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
@ -123,12 +121,12 @@ ohos_unittest("SysEventBackupTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_base/event_store:event_store_source",
|
||||
"$hiview_core:hiview_core_for_test",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
|
@ -43,12 +43,12 @@ ohos_unittest("LogStoreUnitTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core",
|
||||
"//base/hiviewdfx/hiview/base/logstore:log_store",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
@ -39,11 +39,13 @@ ohos_unittest("RunningStatusLoggerTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core",
|
||||
"//base/hiviewdfx/hiview/base/running_status_logger:running_status_logger_source",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
resource_config_file = "//base/hiviewdfx/hiview/base/running_status_logger/test/resource/ohos_test.xml"
|
||||
}
|
||||
|
@ -49,12 +49,12 @@ ohos_unittest("EventLoopTest") {
|
||||
|
||||
sources = [ "unittest/common/event_loop_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiview_base" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("PluginFactoryTest") {
|
||||
@ -66,12 +66,12 @@ ohos_unittest("PluginFactoryTest") {
|
||||
"unittest/common/plugin_factory_test.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiview_base" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("AuditLogParserTest") {
|
||||
@ -80,12 +80,12 @@ ohos_unittest("AuditLogParserTest") {
|
||||
|
||||
sources = [ "unittest/common/audit_log_parser_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiview_base" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("PluginPipelineTest") {
|
||||
@ -105,10 +105,12 @@ ohos_unittest("PluginPipelineTest") {
|
||||
"$hiview_test/plugins/examples/event_processor_example3:event_processor_example3",
|
||||
"$hiview_test/plugins/examples/event_processor_example4:event_processor_example4",
|
||||
"$hiview_test/plugins/examples/event_source_example:event_source_example",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("SysEventTest") {
|
||||
@ -117,12 +119,12 @@ ohos_unittest("SysEventTest") {
|
||||
|
||||
sources = [ "unittest/common/sys_event_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiview_base" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("PluginTest") {
|
||||
@ -131,12 +133,12 @@ ohos_unittest("PluginTest") {
|
||||
|
||||
sources = [ "unittest/common/plugin_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiview_base" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("EventBaseTest") {
|
||||
@ -145,12 +147,12 @@ ohos_unittest("EventBaseTest") {
|
||||
|
||||
sources = [ "unittest/common/event_base_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiview_base" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("DispatchRuleParserTest") {
|
||||
@ -159,10 +161,10 @@ ohos_unittest("DispatchRuleParserTest") {
|
||||
|
||||
sources = [ "unittest/common/dispatch_rule_parser_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiview_base" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
@ -43,13 +43,13 @@ ohos_unittest("BaseUtilityUnitTest") {
|
||||
|
||||
sources = [ "unittest/common/base_utility_unit_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base/utility:hiview_utility" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("SystemServiceOhosUnitTest") {
|
||||
@ -61,12 +61,10 @@ ohos_unittest("SystemServiceOhosUnitTest") {
|
||||
|
||||
cflags_cc = [ "-DTEST_LOCAL_SRC" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base/utility:hiview_utility" ]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"init:libbeget_proxy",
|
||||
"init:libbegetutil",
|
||||
@ -82,14 +80,12 @@ ohos_unittest("AdapterUtilityOhosTest") {
|
||||
|
||||
cflags_cc = [ "-DTEST_LOCAL_SRC" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base/utility:hiview_utility" ]
|
||||
|
||||
external_deps = [
|
||||
"bounds_checking_function:libsec_shared",
|
||||
"cJSON:cjson",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"init:libbeget_proxy",
|
||||
"init:libbegetutil",
|
||||
|
@ -49,6 +49,7 @@
|
||||
"ets_runtime",
|
||||
"faultloggerd",
|
||||
"ffrt",
|
||||
"googletest",
|
||||
"hicollie",
|
||||
"hidumper",
|
||||
"hilog",
|
||||
|
@ -48,11 +48,11 @@ ohos_unittest("PlatformConfigTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
@ -80,11 +80,11 @@ ohos_unittest("PluginPlatformTest") {
|
||||
"$hiview_root/test/plugins/examples/event_processor_example3:event_processor_example3",
|
||||
"$hiview_root/test/plugins/examples/event_processor_example4:event_processor_example4",
|
||||
"$hiview_root/test/plugins/examples/event_source_example:event_source_example",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
@ -103,11 +103,11 @@ ohos_unittest("PluginBundleTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core_for_test",
|
||||
"$hiview_root/test/plugins/examples:bundletest",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
@ -123,11 +123,11 @@ ohos_unittest("EventDispatchQueueTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiview_base",
|
||||
"$hiview_core:hiview_core",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
@ -144,11 +144,11 @@ ohos_unittest("HiviewPlatformConfigTest") {
|
||||
"$hiview_base:hiview_base",
|
||||
"$hiview_core:hiview_core",
|
||||
"../platform_config:hiviewplatform_config",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
@ -162,11 +162,11 @@ ohos_unittest("EventJsonParserTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core_for_test",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
@ -181,11 +181,11 @@ ohos_unittest("ParamUpdateTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core_for_test",
|
||||
"$hiview_core/param_update:hiview_param_update",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
|
@ -35,10 +35,10 @@ ohos_unittest("TraceStorageUnitTest") {
|
||||
deps = [
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"$hiview_framework/native/unified_collection:ucollection_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"relational_store:native_rdb",
|
||||
]
|
||||
|
@ -36,10 +36,12 @@ ohos_unittest("DecoratorUnitTest") {
|
||||
deps = [
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"$hiview_framework/native/unified_collection:ucollection_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
cflags = []
|
||||
if (has_hiprofiler) {
|
||||
|
@ -44,13 +44,11 @@ ohos_unittest("InterfaceJsNapiTest") {
|
||||
|
||||
sources = [ "unittest/common/interface_js_napi_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base/utility:hiview_utility" ]
|
||||
|
||||
external_deps = [
|
||||
"access_token:libtokenid_sdk",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"napi:ace_napi",
|
||||
]
|
||||
@ -71,7 +69,6 @@ ohos_unittest("LoglibraryAgentTest") {
|
||||
deps = [
|
||||
"$hiview_adapter/service/client:hiview_service_impl_for_js",
|
||||
"$hiview_base:hiview_base",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -80,6 +77,7 @@ ohos_unittest("LoglibraryAgentTest") {
|
||||
"access_token:libnativetoken",
|
||||
"access_token:libtoken_setproc",
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"ipc:ipc_single",
|
||||
"safwk:system_ability_fwk",
|
||||
|
@ -43,12 +43,14 @@ ohos_unittest("EventExportConfigTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"../../event_export:event_export_engine",
|
||||
"//third_party/cJSON:cjson",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"cJSON:cjson",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
resource_config_file = "resource/ohos_test.xml"
|
||||
}
|
||||
@ -71,11 +73,11 @@ ohos_unittest("EventExportDbMgrTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"../../event_export:event_export_engine",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"relational_store:native_rdb",
|
||||
]
|
||||
@ -99,8 +101,6 @@ ohos_unittest("EventExportMgrTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"../../event_export:event_export_engine",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -110,6 +110,8 @@ ohos_unittest("EventExportMgrTest") {
|
||||
"cJSON:cjson",
|
||||
"data_share:datashare_common",
|
||||
"data_share:datashare_consumer",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"ipc:ipc_core",
|
||||
"relational_store:native_rdb",
|
||||
|
@ -32,12 +32,12 @@ ohos_unittest("EventloggerConfigTest") {
|
||||
|
||||
sources = [ "unittest/common/event_logger_config_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_eventlogger/config:eventlogger_config",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_eventlogger/config:eventlogger_config" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
resource_config_file = "$hiview_test/resource/ohos_test.xml"
|
||||
}
|
||||
|
@ -43,11 +43,11 @@ ohos_unittest("EventloggerCatcherTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_eventlogger:eventlogger",
|
||||
"$hiview_eventlogger/config:eventlogger_config",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"input:libmmi-client",
|
||||
]
|
||||
|
@ -43,11 +43,11 @@ ohos_unittest("EventloggerPluginTest") {
|
||||
"$hiview_eventlogger:eventlogger",
|
||||
"$hiview_eventlogger/config:eventlogger_config",
|
||||
"$hiview_plugin/sysevent_source:sysevent_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"input:libmmi-client",
|
||||
]
|
||||
@ -68,11 +68,11 @@ ohos_unittest("ActiveKeyEventTest") {
|
||||
"$hiview_eventlogger:eventlogger",
|
||||
"$hiview_eventlogger/config:eventlogger_config",
|
||||
"$hiview_plugin/sysevent_source:sysevent_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"init:libbegetutil",
|
||||
"input:libmmi-client",
|
||||
@ -91,11 +91,11 @@ ohos_unittest("EventLoggerTest") {
|
||||
"$hiview_eventlogger:eventlogger",
|
||||
"$hiview_eventlogger/config:eventlogger_config",
|
||||
"$hiview_plugin/sysevent_source:sysevent_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"input:libmmi-client",
|
||||
]
|
||||
|
@ -38,10 +38,10 @@ ohos_moduletest("FaultloggerNativeInterfaceTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_faultlogger:libfaultlogger",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"hisysevent:libhisysevent",
|
||||
]
|
||||
|
@ -62,7 +62,6 @@ ohos_unittest("FaultloggerUnittest") {
|
||||
"$hiview_plugin/faultlogger/common:log_analyzer",
|
||||
"$hiview_plugin/faultlogger/service:faultlogger_service_ability",
|
||||
"$hiview_plugin/faultlogger/service/idl:faultlogger_service_ohos_common",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -72,6 +71,7 @@ ohos_unittest("FaultloggerUnittest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"faultloggerd:crash_exception",
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"hisysevent:libhisysevent",
|
||||
"hisysevent:libhisyseventmanager",
|
||||
@ -95,10 +95,12 @@ ohos_unittest("FaultloggerClientUnittest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_faultlogger:libfaultlogger",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_unittest("AsanUnittest") {
|
||||
@ -111,8 +113,9 @@ ohos_unittest("AsanUnittest") {
|
||||
deps = [
|
||||
"$hiview_faultlogger:libfaultlogger",
|
||||
"$hiview_faultlogger/service/sanitizer_collector/gwp_asan:libasan_logger",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "googletest:gtest_main" ]
|
||||
}
|
||||
|
||||
ohos_unittest("FreezeJsonGeneratorUnittest") {
|
||||
@ -126,7 +129,9 @@ ohos_unittest("FreezeJsonGeneratorUnittest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_faultlogger:libfaultlogger",
|
||||
"$hiview_faultlogger/service:faultlogger_service",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
@ -39,11 +39,11 @@ ohos_unittest("FreezeDetectorTest") {
|
||||
"$hiview_core:hiview_core_for_test",
|
||||
"$hiview_eventlogger:eventlogger",
|
||||
"$hiview_plugin/freeze_detector:freeze_detector",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"libxml2:libxml2",
|
||||
]
|
||||
@ -68,6 +68,7 @@ ohos_unittest("FreezeDetectorUnittest") {
|
||||
|
||||
external_deps = [
|
||||
"display_manager:displaymgr",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"hiview:libfaultlogger",
|
||||
"libxml2:libxml2",
|
||||
@ -78,6 +79,5 @@ ohos_unittest("FreezeDetectorUnittest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_plugin/freeze_detector:freeze_detector",
|
||||
"$hiview_root/utility/smart_parser:smart_parser",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
}
|
||||
|
@ -42,8 +42,9 @@ ohos_moduletest("FreezeDetectorPluginModuleTest") {
|
||||
"$hiview_base_root/plugins/reliability/common/common_utils:hiview_reliability_common_utils",
|
||||
"$hiview_root/plugin_management:hiview_plugin_management",
|
||||
"../..:freezedetectors_test_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "googletest:gtest_main" ]
|
||||
}
|
||||
|
||||
group("moduletest") {
|
||||
|
@ -36,11 +36,11 @@ ohos_unittest("PrivacyControllerTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_plugin/privacy_controller:privacy_controller",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"cJSON:cjson",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
|
@ -40,11 +40,11 @@ ohos_unittest("SysEventStatTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_core:hiview_core",
|
||||
"$hiview_plugin/sysevent_source:sysevent_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
@ -60,11 +60,11 @@ ohos_unittest("EventServerTest") {
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"$hiview_core:hiview_core",
|
||||
"$hiview_plugin/sysevent_source:sysevent_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
@ -80,12 +80,12 @@ ohos_unittest("DailyControllerTest") {
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"$hiview_core:hiview_core",
|
||||
"$hiview_plugin/sysevent_source:sysevent_source",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"cJSON:cjson",
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"relational_store:native_rdb",
|
||||
]
|
||||
|
@ -83,12 +83,12 @@ ohos_unittest("CpuStorageTest") {
|
||||
"$hiview_core:hiview_core",
|
||||
"$hiview_framework/native/unified_collection:ucollection_source",
|
||||
"$hiview_plugin/unified_collector:unified_collector",
|
||||
"//third_party/googletest:gmock",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gmock",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"relational_store:native_rdb",
|
||||
]
|
||||
@ -112,12 +112,12 @@ ohos_unittest("UCStateObserverTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_plugin/unified_collector:unified_collector",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ability_base:want",
|
||||
"ability_runtime:app_manager",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"ipc:ipc_single",
|
||||
"safwk:system_ability_fwk",
|
||||
|
@ -44,7 +44,6 @@ ohos_unittest("UsageEventReportTest") {
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"$hiview_base/event_report:hiview_event_report",
|
||||
"$hiview_plugin/usage_event_report:usage_event_report",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -54,6 +53,7 @@ ohos_unittest("UsageEventReportTest") {
|
||||
"bundle_framework:appexecfwk_core",
|
||||
"c_utils:utils",
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"hisysevent:libhisysevent",
|
||||
"relational_store:native_rdb",
|
||||
@ -77,11 +77,11 @@ ohos_unittest("UsageEventReportCacheTest") {
|
||||
deps = [
|
||||
"$hiview_base/event_report:hiview_event_report",
|
||||
"$hiview_plugin/usage_event_report:usage_event_report_for_test",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"c_utils:utils",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"hisysevent:libhisysevent",
|
||||
"relational_store:native_rdb",
|
||||
@ -94,13 +94,11 @@ ohos_unittest("FoldAppUsageTest") {
|
||||
|
||||
sources = [ "fold_app_usage_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_plugin/usage_event_report:usage_event_report_for_test",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_plugin/usage_event_report:usage_event_report_for_test" ]
|
||||
|
||||
external_deps = [
|
||||
"c_utils:utils",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"hisysevent:libhisysevent",
|
||||
"relational_store:native_rdb",
|
||||
|
@ -25,12 +25,12 @@ ohos_unittest("HiviewPlatformModuleTest") {
|
||||
|
||||
sources = [ "moduletest/common/hiview_plugin_platform_module_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiviewbase_static_lib_for_tdd" ]
|
||||
|
||||
external_deps = [ "hilog:libhilog" ]
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
}
|
||||
|
||||
config("HolisticPlatformTest_config") {
|
||||
@ -65,11 +65,11 @@ ohos_unittest("HolisticPlatformTest") {
|
||||
"$hiview_root/test/plugins/examples/event_processor_example5:event_processor_example5",
|
||||
"$hiview_root/test/plugins/examples/event_source_example:event_source_example",
|
||||
"$hiview_test/plugins/examples_bundle:bundleplugintest",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
]
|
||||
|
||||
@ -82,12 +82,10 @@ ohos_unittest("ReportXPowerEventTest") {
|
||||
|
||||
sources = [ "unittest/xpower_event/xpower_event_test.cpp" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_root/interfaces/innerkits/xpower_event:libxpower_event",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_root/interfaces/innerkits/xpower_event:libxpower_event" ]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"init:libbegetutil",
|
||||
]
|
||||
|
@ -38,12 +38,12 @@ ohos_unittest("UCollectionClientUnitTest") {
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase",
|
||||
"$hiview_interfaces/inner_api/unified_collection/client:libucollection_client",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"access_token:libaccesstoken_sdk",
|
||||
"access_token:libnativetoken",
|
||||
"access_token:libtoken_setproc",
|
||||
"googletest:gtest_main",
|
||||
]
|
||||
}
|
||||
|
@ -56,7 +56,6 @@ ohos_unittest("UCollectionUtilityUnitTest") {
|
||||
"$hiview_base/event_report:hiview_event_report",
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"$hiview_interfaces/inner_api/unified_collection/utility:libucollection_utility",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
@ -64,6 +63,7 @@ ohos_unittest("UCollectionUtilityUnitTest") {
|
||||
"access_token:libnativetoken",
|
||||
"access_token:libtoken_setproc",
|
||||
"ffrt:libffrt",
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"hitrace:hitrace_dump",
|
||||
"init:libbegetutil",
|
||||
|
@ -47,10 +47,10 @@ ohos_unittest("UtilityCommonUtilsTest") {
|
||||
"$hiview_base:logger",
|
||||
"$hiview_base/utility:hiview_utility",
|
||||
"$hiview_root/utility/common_utils:hiview_reliability_common_utils",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"init:libbeget_proxy",
|
||||
"init:libbegetutil",
|
||||
|
@ -40,12 +40,10 @@ ohos_moduletest("SmartParserModuleTest") {
|
||||
|
||||
configs = [ ":smart_parser_test_config" ]
|
||||
|
||||
deps = [
|
||||
"$hiview_base:hiviewbase_static_lib_for_tdd",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
deps = [ "$hiview_base:hiviewbase_static_lib_for_tdd" ]
|
||||
|
||||
external_deps = [
|
||||
"googletest:gtest_main",
|
||||
"hilog:libhilog",
|
||||
"jsoncpp:jsoncpp",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user