Create a new DataReductionProxyConfig class
[chromium-blink-merge.git] / components / data_reduction_proxy / core / browser / BUILD.gn
bloba8b742471226dd9bfc8a51c55ff49b0f8ff46fe5
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 static_library("browser") {
6   sources = [
7     "data_reduction_proxy_auth_request_handler.cc",
8     "data_reduction_proxy_auth_request_handler.h",
9     "data_reduction_proxy_bypass_protocol.cc",
10     "data_reduction_proxy_bypass_protocol.h",
11     "data_reduction_proxy_config.cc",
12     "data_reduction_proxy_config.h",
13     "data_reduction_proxy_configurator.cc",
14     "data_reduction_proxy_configurator.h",
15     "data_reduction_proxy_delegate.cc",
16     "data_reduction_proxy_delegate.h",
17     "data_reduction_proxy_interceptor.cc",
18     "data_reduction_proxy_interceptor.h",
19     "data_reduction_proxy_io_data.cc",
20     "data_reduction_proxy_io_data.h",
21     "data_reduction_proxy_metrics.cc",
22     "data_reduction_proxy_metrics.h",
23     "data_reduction_proxy_network_delegate.cc",
24     "data_reduction_proxy_network_delegate.h",
25     "data_reduction_proxy_prefs.cc",
26     "data_reduction_proxy_prefs.h",
27     "data_reduction_proxy_settings.cc",
28     "data_reduction_proxy_settings.h",
29     "data_reduction_proxy_statistics_prefs.cc",
30     "data_reduction_proxy_statistics_prefs.h",
31     "data_reduction_proxy_tamper_detection.cc",
32     "data_reduction_proxy_tamper_detection.h",
33     "data_reduction_proxy_usage_stats.cc",
34     "data_reduction_proxy_usage_stats.h",
35   ]
37   deps = [
38     "//base",
39     "//base:prefs",
40     "//components/data_reduction_proxy/core/common",
41     "//components/pref_registry",
42     "//crypto",
43     "//net",
44     "//url",
45   ]
46   if (!is_android && !is_ios) {
47     deps += [ "//google_apis" ]
48   }
51 source_set("test_support") {
52   testonly = true
53   sources = [
54     "data_reduction_proxy_config_test_utils.cc",
55     "data_reduction_proxy_config_test_utils.h",
56     "data_reduction_proxy_configurator_test_utils.cc",
57     "data_reduction_proxy_configurator_test_utils.h",
58     "data_reduction_proxy_settings_test_utils.cc",
59     "data_reduction_proxy_settings_test_utils.h",
60   ]
62   public_deps = [
63     ":browser",
64   ]
65   deps = [
66     "//base",
67     "//base:prefs_test_support",
68     "//components/data_reduction_proxy/core/common",
69     "//components/data_reduction_proxy/core/common:test_support",
70     "//net",
71     "//net:test_support",
72     "//testing/gmock",
73     "//testing/gtest",
74   ]
77 source_set("unit_tests") {
78   testonly = true
79   sources = [
80     "data_reduction_proxy_auth_request_handler_unittest.cc",
81     "data_reduction_proxy_bypass_protocol_unittest.cc",
82     "data_reduction_proxy_config_unittest.cc",
83     "data_reduction_proxy_configurator_unittest.cc",
84     "data_reduction_proxy_interceptor_unittest.cc",
85     "data_reduction_proxy_metrics_unittest.cc",
86     "data_reduction_proxy_network_delegate_unittest.cc",
87     "data_reduction_proxy_prefs_unittest.cc",
88     "data_reduction_proxy_settings_unittest.cc",
89     "data_reduction_proxy_usage_stats_unittest.cc",
90   ]
92   deps = [
93     ":browser",
94     ":test_support",
95     "//base",
96     "//base:prefs_test_support",
97     "//base/test:test_support",
98     "//components/data_reduction_proxy/core/common:test_support",
99     "//net:test_support",
100     "//testing/gmock",
101     "//testing/gtest",
102   ]