Add ClientConfig proto, and JSON generation/parsing.
[chromium-blink-merge.git] / components / data_reduction_proxy / core / browser / BUILD.gn
blob5790d4ccd78ca9151b03405067996659914693e6
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_bypass_protocol.cc",
8     "data_reduction_proxy_bypass_protocol.h",
9     "data_reduction_proxy_config.cc",
10     "data_reduction_proxy_config.h",
11     "data_reduction_proxy_config_service_client.cc",
12     "data_reduction_proxy_config_service_client.h",
13     "data_reduction_proxy_configurator.cc",
14     "data_reduction_proxy_configurator.h",
15     "data_reduction_proxy_debug_ui_service.h",
16     "data_reduction_proxy_delegate.cc",
17     "data_reduction_proxy_delegate.h",
18     "data_reduction_proxy_interceptor.cc",
19     "data_reduction_proxy_interceptor.h",
20     "data_reduction_proxy_io_data.cc",
21     "data_reduction_proxy_io_data.h",
22     "data_reduction_proxy_metrics.cc",
23     "data_reduction_proxy_metrics.h",
24     "data_reduction_proxy_network_delegate.cc",
25     "data_reduction_proxy_network_delegate.h",
26     "data_reduction_proxy_prefs.cc",
27     "data_reduction_proxy_prefs.h",
28     "data_reduction_proxy_request_options.cc",
29     "data_reduction_proxy_request_options.h",
30     "data_reduction_proxy_service.cc",
31     "data_reduction_proxy_service.h",
32     "data_reduction_proxy_settings.cc",
33     "data_reduction_proxy_settings.h",
34     "data_reduction_proxy_statistics_prefs.cc",
35     "data_reduction_proxy_statistics_prefs.h",
36     "data_reduction_proxy_tamper_detection.cc",
37     "data_reduction_proxy_tamper_detection.h",
38     "data_reduction_proxy_usage_stats.cc",
39     "data_reduction_proxy_usage_stats.h",
40   ]
42   deps = [
43     "//base",
44     "//base:prefs",
45     "//components/data_reduction_proxy/core/common",
46     "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
47     "//components/pref_registry",
48     "//crypto",
49     "//net",
50     "//url",
51   ]
52   if (!is_android && !is_ios) {
53     deps += [ "//google_apis" ]
54   }
57 source_set("test_support") {
58   testonly = true
59   sources = [
60     "data_reduction_proxy_config_test_utils.cc",
61     "data_reduction_proxy_config_test_utils.h",
62     "data_reduction_proxy_configurator_test_utils.cc",
63     "data_reduction_proxy_configurator_test_utils.h",
64     "data_reduction_proxy_settings_test_utils.cc",
65     "data_reduction_proxy_settings_test_utils.h",
66     "data_reduction_proxy_test_utils.cc",
67     "data_reduction_proxy_test_utils.h",
68   ]
70   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
72   public_deps = [
73     ":browser",
74   ]
75   deps = [
76     "//base",
77     "//base:prefs_test_support",
78     "//components/data_reduction_proxy/core/common",
79     "//components/data_reduction_proxy/core/common:test_support",
80     "//net",
81     "//net:test_support",
82     "//testing/gmock",
83     "//testing/gtest",
84   ]
87 source_set("unit_tests") {
88   testonly = true
89   sources = [
90     "data_reduction_proxy_bypass_protocol_unittest.cc",
91     "data_reduction_proxy_config_service_client_unittest.cc",
92     "data_reduction_proxy_config_unittest.cc",
93     "data_reduction_proxy_configurator_unittest.cc",
94     "data_reduction_proxy_interceptor_unittest.cc",
95     "data_reduction_proxy_metrics_unittest.cc",
96     "data_reduction_proxy_network_delegate_unittest.cc",
97     "data_reduction_proxy_prefs_unittest.cc",
98     "data_reduction_proxy_request_options_unittest.cc",
99     "data_reduction_proxy_settings_unittest.cc",
100     "data_reduction_proxy_usage_stats_unittest.cc",
101   ]
103   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
105   deps = [
106     ":browser",
107     ":test_support",
108     "//base",
109     "//base:prefs_test_support",
110     "//base/test:test_support",
111     "//components/data_reduction_proxy/core/common:test_support",
112     "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
113     "//net:test_support",
114     "//testing/gmock",
115     "//testing/gtest",
116   ]