Roll src/third_party/WebKit c63b89c:29324ab (svn 202546:202547)
[chromium-blink-merge.git] / components / data_reduction_proxy / core / browser / BUILD.gn
blob54ae8d2ca72ae3355fdfe22052d0a39c1d412c04
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 source_set("browser") {
6   sources = [
7     "data_reduction_proxy_bypass_protocol.cc",
8     "data_reduction_proxy_bypass_protocol.h",
9     "data_reduction_proxy_bypass_stats.cc",
10     "data_reduction_proxy_bypass_stats.h",
11     "data_reduction_proxy_compression_stats.cc",
12     "data_reduction_proxy_compression_stats.h",
13     "data_reduction_proxy_config.cc",
14     "data_reduction_proxy_config.h",
15     "data_reduction_proxy_config_retrieval_params.cc",
16     "data_reduction_proxy_config_retrieval_params.h",
17     "data_reduction_proxy_config_service_client.cc",
18     "data_reduction_proxy_config_service_client.h",
19     "data_reduction_proxy_configurator.cc",
20     "data_reduction_proxy_configurator.h",
21     "data_reduction_proxy_debug_ui_service.h",
22     "data_reduction_proxy_delegate.cc",
23     "data_reduction_proxy_delegate.h",
24     "data_reduction_proxy_experiments_stats.cc",
25     "data_reduction_proxy_experiments_stats.h",
26     "data_reduction_proxy_interceptor.cc",
27     "data_reduction_proxy_interceptor.h",
28     "data_reduction_proxy_io_data.cc",
29     "data_reduction_proxy_io_data.h",
30     "data_reduction_proxy_metrics.cc",
31     "data_reduction_proxy_metrics.h",
32     "data_reduction_proxy_mutable_config_values.cc",
33     "data_reduction_proxy_mutable_config_values.h",
34     "data_reduction_proxy_network_delegate.cc",
35     "data_reduction_proxy_network_delegate.h",
36     "data_reduction_proxy_prefs.cc",
37     "data_reduction_proxy_prefs.h",
38     "data_reduction_proxy_request_options.cc",
39     "data_reduction_proxy_request_options.h",
40     "data_reduction_proxy_service.cc",
41     "data_reduction_proxy_service.h",
42     "data_reduction_proxy_service_observer.h",
43     "data_reduction_proxy_settings.cc",
44     "data_reduction_proxy_settings.h",
45     "data_reduction_proxy_tamper_detection.cc",
46     "data_reduction_proxy_tamper_detection.h",
47     "data_store.cc",
48     "data_store.h",
49     "data_store_impl.cc",
50     "data_store_impl.h",
51     "data_usage_store.cc",
52     "data_usage_store.h",
53     "db_data_owner.cc",
54     "db_data_owner.h",
55   ]
57   deps = [
58     "//base",
59     "//base:prefs",
60     "//components/data_reduction_proxy/core/common",
61     "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
62     "//components/pref_registry",
63     "//crypto",
64     "//google_apis",
65     "//net",
66     "//third_party/leveldatabase",
67     "//url",
68   ]
70   defines = [ "USE_GOOGLE_API_KEYS" ]
71   if (!is_ios) {
72     defines += [ "USE_GOOGLE_API_KEYS_FOR_AUTH_KEY" ]
73   }
76 source_set("test_support") {
77   testonly = true
78   sources = [
79     "data_reduction_proxy_config_test_utils.cc",
80     "data_reduction_proxy_config_test_utils.h",
81     "data_reduction_proxy_configurator_test_utils.cc",
82     "data_reduction_proxy_configurator_test_utils.h",
83     "data_reduction_proxy_settings_test_utils.cc",
84     "data_reduction_proxy_settings_test_utils.h",
85     "data_reduction_proxy_test_utils.cc",
86     "data_reduction_proxy_test_utils.h",
87   ]
89   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
91   public_deps = [
92     ":browser",
93   ]
94   deps = [
95     "//base",
96     "//base:prefs_test_support",
97     "//components/data_reduction_proxy/core/common",
98     "//components/data_reduction_proxy/core/common:test_support",
99     "//net",
100     "//net:test_support",
101     "//testing/gmock",
102     "//testing/gtest",
103   ]
106 source_set("unit_tests") {
107   testonly = true
108   sources = [
109     "data_reduction_proxy_bypass_protocol_unittest.cc",
110     "data_reduction_proxy_bypass_stats_unittest.cc",
111     "data_reduction_proxy_compression_stats_unittest.cc",
112     "data_reduction_proxy_config_retrieval_params_unittest.cc",
113     "data_reduction_proxy_config_service_client_unittest.cc",
114     "data_reduction_proxy_config_unittest.cc",
115     "data_reduction_proxy_configurator_unittest.cc",
116     "data_reduction_proxy_experiments_stats_unittest.cc",
117     "data_reduction_proxy_interceptor_unittest.cc",
118     "data_reduction_proxy_io_data_unittest.cc",
119     "data_reduction_proxy_metrics_unittest.cc",
120     "data_reduction_proxy_network_delegate_unittest.cc",
121     "data_reduction_proxy_prefs_unittest.cc",
122     "data_reduction_proxy_request_options_unittest.cc",
123     "data_reduction_proxy_settings_unittest.cc",
124     "data_reduction_proxy_tamper_detection_unittest.cc",
125     "data_usage_store_unittest.cc",
126   ]
128   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
130   deps = [
131     ":browser",
132     ":test_support",
133     "//base",
134     "//base:prefs_test_support",
135     "//base/test:test_support",
136     "//components/data_reduction_proxy/core/common:test_support",
137     "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
138     "//net:test_support",
139     "//testing/gmock",
140     "//testing/gtest",
141   ]