/components/data_reduction_proxy/core/browser/BUILD.gn
GN | 162 lines | 147 code | 12 blank | 3 comment | 2 complexity | ae8912c72dd3a9366356c99e010298ef MD5 | raw file
- # Copyright 2014 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.
- browser_sources = [
- "data_reduction_proxy_bypass_protocol.cc",
- "data_reduction_proxy_bypass_protocol.h",
- "data_reduction_proxy_bypass_stats.cc",
- "data_reduction_proxy_bypass_stats.h",
- "data_reduction_proxy_compression_stats.cc",
- "data_reduction_proxy_compression_stats.h",
- "data_reduction_proxy_config.cc",
- "data_reduction_proxy_config.h",
- "data_reduction_proxy_config_service_client.cc",
- "data_reduction_proxy_config_service_client.h",
- "data_reduction_proxy_configurator.cc",
- "data_reduction_proxy_configurator.h",
- "data_reduction_proxy_delegate.cc",
- "data_reduction_proxy_delegate.h",
- "data_reduction_proxy_interceptor.cc",
- "data_reduction_proxy_interceptor.h",
- "data_reduction_proxy_io_data.cc",
- "data_reduction_proxy_io_data.h",
- "data_reduction_proxy_metrics.cc",
- "data_reduction_proxy_metrics.h",
- "data_reduction_proxy_mutable_config_values.cc",
- "data_reduction_proxy_mutable_config_values.h",
- "data_reduction_proxy_network_delegate.cc",
- "data_reduction_proxy_network_delegate.h",
- "data_reduction_proxy_prefs.cc",
- "data_reduction_proxy_prefs.h",
- "data_reduction_proxy_request_options.cc",
- "data_reduction_proxy_request_options.h",
- "data_reduction_proxy_service.cc",
- "data_reduction_proxy_service.h",
- "data_reduction_proxy_service_observer.h",
- "data_reduction_proxy_settings.cc",
- "data_reduction_proxy_settings.h",
- "data_reduction_proxy_tamper_detection.cc",
- "data_reduction_proxy_tamper_detection.h",
- "data_store.cc",
- "data_store.h",
- "data_usage_store.cc",
- "data_usage_store.h",
- "db_data_owner.cc",
- "db_data_owner.h",
- ]
- if (is_android) {
- source_set("browser_small") {
- sources = browser_sources
- deps = [
- "//base",
- "//components/data_reduction_proxy/core/common:common_small",
- "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
- "//components/pref_registry",
- "//components/prefs",
- "//components/variations",
- "//crypto",
- "//google_apis:google_apis_small",
- "//net:net_small",
- "//url:url_lib_use_icu_alternatives_on_android",
- ]
- }
- }
- source_set("browser") {
- sources = browser_sources
- sources += [
- "data_store_impl.cc",
- "data_store_impl.h",
- ]
- deps = [
- "//base",
- "//components/data_reduction_proxy/core/common",
- "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
- "//components/pref_registry",
- "//components/prefs",
- "//components/variations",
- "//crypto",
- "//google_apis",
- "//net",
- "//third_party/leveldatabase",
- "//url",
- ]
- defines = [ "USE_GOOGLE_API_KEYS" ]
- if (!is_ios) {
- defines += [ "USE_GOOGLE_API_KEYS_FOR_AUTH_KEY" ]
- }
- }
- source_set("test_support") {
- testonly = true
- sources = [
- "data_reduction_proxy_config_test_utils.cc",
- "data_reduction_proxy_config_test_utils.h",
- "data_reduction_proxy_configurator_test_utils.cc",
- "data_reduction_proxy_configurator_test_utils.h",
- "data_reduction_proxy_settings_test_utils.cc",
- "data_reduction_proxy_settings_test_utils.h",
- "data_reduction_proxy_test_utils.cc",
- "data_reduction_proxy_test_utils.h",
- ]
- configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
- public_deps = [
- ":browser",
- ]
- deps = [
- "//base",
- "//components/data_reduction_proxy/core/common",
- "//components/data_reduction_proxy/core/common:test_support",
- "//components/prefs:test_support",
- "//net",
- "//net:test_support",
- "//testing/gmock",
- "//testing/gtest",
- ]
- }
- source_set("unit_tests") {
- testonly = true
- sources = [
- "data_reduction_proxy_bypass_protocol_unittest.cc",
- "data_reduction_proxy_bypass_stats_unittest.cc",
- "data_reduction_proxy_compression_stats_unittest.cc",
- "data_reduction_proxy_config_service_client_unittest.cc",
- "data_reduction_proxy_config_unittest.cc",
- "data_reduction_proxy_configurator_unittest.cc",
- "data_reduction_proxy_delegate_unittest.cc",
- "data_reduction_proxy_interceptor_unittest.cc",
- "data_reduction_proxy_io_data_unittest.cc",
- "data_reduction_proxy_metrics_unittest.cc",
- "data_reduction_proxy_mutable_config_values_unittest.cc",
- "data_reduction_proxy_network_delegate_unittest.cc",
- "data_reduction_proxy_prefs_unittest.cc",
- "data_reduction_proxy_request_options_unittest.cc",
- "data_reduction_proxy_settings_unittest.cc",
- "data_reduction_proxy_tamper_detection_unittest.cc",
- "data_usage_store_unittest.cc",
- ]
- configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
- deps = [
- ":browser",
- ":test_support",
- "//base",
- "//base/test:test_support",
- "//components/data_reduction_proxy/core/common:test_support",
- "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
- "//components/prefs:test_support",
- "//components/variations",
- "//net:test_support",
- "//testing/gmock",
- "//testing/gtest",
- ]
- }