Port Android relocation packer to chromium build
[chromium-blink-merge.git] / components / data_reduction_proxy / core / browser / BUILD.gn
blob3e660fd3ea9988d5406338460af2f6c02779e518
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_mutable_config_values.cc",
25     "data_reduction_proxy_mutable_config_values.h",
26     "data_reduction_proxy_network_delegate.cc",
27     "data_reduction_proxy_network_delegate.h",
28     "data_reduction_proxy_prefs.cc",
29     "data_reduction_proxy_prefs.h",
30     "data_reduction_proxy_request_options.cc",
31     "data_reduction_proxy_request_options.h",
32     "data_reduction_proxy_service.cc",
33     "data_reduction_proxy_service.h",
34     "data_reduction_proxy_settings.cc",
35     "data_reduction_proxy_settings.h",
36     "data_reduction_proxy_statistics_prefs.cc",
37     "data_reduction_proxy_statistics_prefs.h",
38     "data_reduction_proxy_tamper_detection.cc",
39     "data_reduction_proxy_tamper_detection.h",
40     "data_reduction_proxy_usage_stats.cc",
41     "data_reduction_proxy_usage_stats.h",
42   ]
44   deps = [
45     "//base",
46     "//base:prefs",
47     "//components/data_reduction_proxy/core/common",
48     "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
49     "//components/pref_registry",
50     "//crypto",
51     "//net",
52     "//url",
53   ]
54   if (!is_android && !is_ios) {
55     deps += [ "//google_apis" ]
56   }
59 source_set("test_support") {
60   testonly = true
61   sources = [
62     "data_reduction_proxy_config_test_utils.cc",
63     "data_reduction_proxy_config_test_utils.h",
64     "data_reduction_proxy_configurator_test_utils.cc",
65     "data_reduction_proxy_configurator_test_utils.h",
66     "data_reduction_proxy_settings_test_utils.cc",
67     "data_reduction_proxy_settings_test_utils.h",
68     "data_reduction_proxy_test_utils.cc",
69     "data_reduction_proxy_test_utils.h",
70   ]
72   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
74   public_deps = [
75     ":browser",
76   ]
77   deps = [
78     "//base",
79     "//base:prefs_test_support",
80     "//components/data_reduction_proxy/core/common",
81     "//components/data_reduction_proxy/core/common:test_support",
82     "//net",
83     "//net:test_support",
84     "//testing/gmock",
85     "//testing/gtest",
86   ]
89 source_set("unit_tests") {
90   testonly = true
91   sources = [
92     "data_reduction_proxy_bypass_protocol_unittest.cc",
93     "data_reduction_proxy_config_service_client_unittest.cc",
94     "data_reduction_proxy_config_unittest.cc",
95     "data_reduction_proxy_configurator_unittest.cc",
96     "data_reduction_proxy_interceptor_unittest.cc",
97     "data_reduction_proxy_metrics_unittest.cc",
98     "data_reduction_proxy_network_delegate_unittest.cc",
99     "data_reduction_proxy_prefs_unittest.cc",
100     "data_reduction_proxy_request_options_unittest.cc",
101     "data_reduction_proxy_settings_unittest.cc",
102     "data_reduction_proxy_usage_stats_unittest.cc",
103   ]
105   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
107   deps = [
108     ":browser",
109     ":test_support",
110     "//base",
111     "//base:prefs_test_support",
112     "//base/test:test_support",
113     "//components/data_reduction_proxy/core/common:test_support",
114     "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
115     "//net:test_support",
116     "//testing/gmock",
117     "//testing/gtest",
118   ]