naiveproxy/chrome/chrome_cleaner/logging/BUILD.gn

249 lines
6.8 KiB
Plaintext
Raw Normal View History

2018-08-15 01:19:20 +03:00
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("scoped_timed_task_logger") {
sources = [
"scoped_timed_task_logger.cc",
"scoped_timed_task_logger.h",
]
deps = [
"//base:base",
]
}
source_set("common") {
sources = [
"detailed_info_sampler.cc",
"detailed_info_sampler.h",
"info_sampler.h",
"logging_service_api.cc",
"logging_service_api.h",
"network_checker.h",
"registry_logger.cc",
"registry_logger.h",
"safe_browsing_reporter.cc",
"safe_browsing_reporter.h",
"scoped_logging.cc",
"scoped_logging.h",
"utils.cc",
"utils.h",
]
deps = [
":logging_definitions",
":scoped_timed_task_logger",
"//base:base",
"//chrome/chrome_cleaner//http:http", # For safe_browsing_reporter
"//chrome/chrome_cleaner/constants:common_strings",
"//chrome/chrome_cleaner/constants:version_header",
"//chrome/chrome_cleaner/http:http_status_codes",
"//chrome/chrome_cleaner/logging/proto:removal_status_proto",
"//chrome/chrome_cleaner/os:common_os",
"//chrome/chrome_cleaner/proto:shared_pup_enums_proto",
"//chrome/chrome_cleaner/pup_data:pup_data_base",
"//chrome/chrome_cleaner/settings:settings",
"//chrome/chrome_cleaner/settings:settings_types",
"//components/chrome_cleaner/public/constants:constants",
"//url:url",
]
public_deps = [
"//chrome/chrome_cleaner/logging/proto:shared_data_proto",
"//net/traffic_annotation:traffic_annotation",
]
libs = [
"iphlpapi.lib", # For NotifyAddrChange.
"wininet.lib", # For InternetCheckConnection.
]
}
source_set("logging_definitions") {
sources = [
"logging_definitions.h",
]
}
source_set("dummy_api_keys") {
sources = [
"api_keys.h",
"dummy_api_keys.cc",
]
}
static_library("cleaner_logging") {
sources = [
"cleaner_logging_service.cc",
"cleaner_logging_service.h",
"message_builder.cc",
"message_builder.h",
"pending_logs_service.cc",
"pending_logs_service.h",
]
deps = [
":dummy_api_keys",
"//base",
"//chrome/chrome_cleaner/chrome_utils:chrome_util_lib",
"//chrome/chrome_cleaner/constants:chrome_cleanup_tool_branding_header",
"//chrome/chrome_cleaner/constants:common_strings",
"//chrome/chrome_cleaner/constants:version_header",
"//chrome/chrome_cleaner/logging/proto:chrome_cleaner_report_proto",
"//chrome/chrome_cleaner/logging/proto:removal_status_proto",
"//chrome/chrome_cleaner/os:cleaner_os",
"//chrome/chrome_cleaner/os:common_os",
"//chrome/chrome_cleaner/proto:shared_pup_enums_proto",
"//chrome/chrome_cleaner/pup_data:pup_data_base",
"//chrome/chrome_cleaner/settings:settings",
"//chrome/chrome_cleaner/strings",
"//components/chrome_cleaner/public/constants:constants",
]
public_deps = [
":common",
]
}
static_library("reporter_logging") {
sources = [
"reporter_logging_service.cc",
"reporter_logging_service.h",
]
deps = [
":dummy_api_keys",
"//base",
"//chrome/chrome_cleaner/chrome_utils:chrome_util_lib",
"//chrome/chrome_cleaner/constants:common_strings",
"//chrome/chrome_cleaner/constants:version_header",
"//chrome/chrome_cleaner/logging:noop_logging",
"//chrome/chrome_cleaner/logging/proto:reporter_logs_proto",
"//chrome/chrome_cleaner/os:common_os",
"//chrome/chrome_cleaner/proto:shared_pup_enums_proto",
"//chrome/chrome_cleaner/pup_data:pup_data_base",
"//chrome/chrome_cleaner/settings:settings",
"//components/chrome_cleaner/public/constants:constants",
]
public_deps = [
":common",
]
}
static_library("interface_log_service") {
sources = [
"interface_log_service.cc",
"interface_log_service.h",
]
deps = [
"//base:base",
"//chrome/chrome_cleaner/constants:version_header",
"//chrome/chrome_cleaner/os:common_os",
]
public_deps = [
"//chrome/chrome_cleaner/logging/proto:interface_logger_proto",
]
all_dependent_configs = [ "//third_party/protobuf:using_proto" ]
}
static_library("noop_logging") {
sources = [
"noop_logging_service.cc",
"noop_logging_service.h",
]
deps = [
":common",
"//base",
"//chrome/chrome_cleaner/proto:shared_pup_enums_proto",
"//chrome/chrome_cleaner/pup_data:pup_data_base",
"//components/chrome_cleaner/public/constants:constants",
]
}
source_set("mock_logging_service") {
testonly = true
sources = [
"mock_logging_service.cc",
"mock_logging_service.h",
]
deps = [
"//base",
"//chrome/chrome_cleaner/logging:common",
"//chrome/chrome_cleaner/os:common_os",
"//chrome/chrome_cleaner/pup_data:pup_data_base",
"//components/chrome_cleaner/public/constants:constants",
"//testing/gmock",
]
}
source_set("test_utils") {
testonly = true
sources = [
"test_utils.cc",
"test_utils.h",
]
deps = [
":common",
"//base",
"//chrome/chrome_cleaner/logging/proto:shared_data_proto",
"//url",
]
}
source_set("unittest_sources") {
testonly = true
sources = [
"cleaner_logging_service_unittest.cc",
"detailed_info_sampler_unittest.cc",
"interface_log_service_unittest.cc",
"message_builder_unittest.cc",
"pending_logs_service_unittest.cc",
"registry_logger_unittest.cc",
"reporter_logging_service_unittest.cc",
"safe_browsing_reporter_unittest.cc",
"scoped_timed_task_logger_unittest.cc",
"utils_unittest.cc",
]
deps = [
":cleaner_logging",
":mock_logging_service",
":reporter_logging",
":test_utils",
"//base:base",
"//base/test:test_support",
"//chrome/chrome_cleaner/constants:common_strings",
"//chrome/chrome_cleaner/constants:version_header",
"//chrome/chrome_cleaner/http:http",
"//chrome/chrome_cleaner/http:mock_http_agent_factory",
"//chrome/chrome_cleaner/logging:interface_log_service",
"//chrome/chrome_cleaner/logging:scoped_timed_task_logger",
"//chrome/chrome_cleaner/logging/proto:chrome_cleaner_report_proto",
"//chrome/chrome_cleaner/logging/proto:interface_logger_proto",
"//chrome/chrome_cleaner/logging/proto:removal_status_proto",
"//chrome/chrome_cleaner/logging/proto:reporter_logs_proto",
"//chrome/chrome_cleaner/os:cleaner_os",
"//chrome/chrome_cleaner/os:common_os",
"//chrome/chrome_cleaner/proto:shared_pup_enums_proto",
"//chrome/chrome_cleaner/pup_data:pup_data_base",
"//chrome/chrome_cleaner/test:test_branding_header",
"//chrome/chrome_cleaner/test:test_pup_data",
"//chrome/chrome_cleaner/test:test_util",
"//chrome/chrome_cleaner/test/resources:test_resources",
"//components/chrome_cleaner/public/constants:constants",
"//net/traffic_annotation:test_support",
"//testing/gmock",
"//testing/gtest",
]
}