Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / data_reduction_proxy / core / common / BUILD.gn
blobc916d5239822a60570ca7c0a9dba7297ae1e3a46
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 import("//chrome/version.gni")
7 static_library("common") {
8   sources = [
9     "data_reduction_proxy_bypass_action_list.h",
10     "data_reduction_proxy_bypass_type_list.h",
11     "data_reduction_proxy_client_config_parser.cc",
12     "data_reduction_proxy_client_config_parser.h",
13     "data_reduction_proxy_config_values.h",
14     "data_reduction_proxy_event_creator.cc",
15     "data_reduction_proxy_event_creator.h",
16     "data_reduction_proxy_event_storage_delegate.h",
17     "data_reduction_proxy_event_store.cc",
18     "data_reduction_proxy_event_store.h",
19     "data_reduction_proxy_headers.cc",
20     "data_reduction_proxy_headers.h",
21     "data_reduction_proxy_params.cc",
22     "data_reduction_proxy_params.h",
23     "data_reduction_proxy_pref_names.cc",
24     "data_reduction_proxy_pref_names.h",
25     "data_reduction_proxy_switches.cc",
26     "data_reduction_proxy_switches.h",
27   ]
29   public_deps = [
30     ":version_header",
31   ]
32   deps = [
33     "//base",
34     "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
35     "//net",
36     "//url",
37   ]
40 source_set("test_support") {
41   testonly = true
42   sources = [
43     "data_reduction_proxy_event_storage_delegate_test_utils.cc",
44     "data_reduction_proxy_event_storage_delegate_test_utils.h",
45     "data_reduction_proxy_headers_test_utils.cc",
46     "data_reduction_proxy_headers_test_utils.h",
47     "data_reduction_proxy_params_test_utils.cc",
48     "data_reduction_proxy_params_test_utils.h",
49   ]
51   public_deps = [
52     ":common",
53   ]
54   deps = [
55     "//base",
56     "//net",
57     "//net:test_support",
58     "//testing/gmock",
59     "//testing/gtest",
60   ]
63 source_set("unit_tests") {
64   testonly = true
65   sources = [
66     "data_reduction_proxy_client_config_parser_unittest.cc",
67     "data_reduction_proxy_event_store_unittest.cc",
68     "data_reduction_proxy_headers_unittest.cc",
69     "data_reduction_proxy_params_unittest.cc",
70   ]
72   deps = [
73     ":common",
74     ":test_support",
75     "//base",
76     "//base/test:test_support",
77     "//components/data_reduction_proxy/proto:data_reduction_proxy_proto",
78     "//net:test_support",
79     "//testing/gtest",
80   ]
83 process_version("version_header") {
84   template_file = "version.h.in"
85   output = "$target_gen_dir/version.h"