OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//chrome/version.gni") | 5 import("//chrome/version.gni") |
6 | 6 |
7 static_library("common") { | 7 static_library("common") { |
8 sources = [ | 8 sources = [ |
9 "data_reduction_proxy_bypass_type_list.h", | 9 "data_reduction_proxy_bypass_type_list.h", |
10 "data_reduction_proxy_client_config_parser.cc", | |
11 "data_reduction_proxy_client_config_parser.h", | |
12 "data_reduction_proxy_config_values.h", | 10 "data_reduction_proxy_config_values.h", |
13 "data_reduction_proxy_event_store.cc", | 11 "data_reduction_proxy_event_store.cc", |
14 "data_reduction_proxy_event_store.h", | 12 "data_reduction_proxy_event_store.h", |
15 "data_reduction_proxy_headers.cc", | 13 "data_reduction_proxy_headers.cc", |
16 "data_reduction_proxy_headers.h", | 14 "data_reduction_proxy_headers.h", |
17 "data_reduction_proxy_params.cc", | 15 "data_reduction_proxy_params.cc", |
18 "data_reduction_proxy_params.h", | 16 "data_reduction_proxy_params.h", |
19 "data_reduction_proxy_pref_names.cc", | 17 "data_reduction_proxy_pref_names.cc", |
20 "data_reduction_proxy_pref_names.h", | 18 "data_reduction_proxy_pref_names.h", |
21 "data_reduction_proxy_switches.cc", | 19 "data_reduction_proxy_switches.cc", |
22 "data_reduction_proxy_switches.h", | 20 "data_reduction_proxy_switches.h", |
23 ] | 21 ] |
24 | 22 |
25 public_deps = [ | 23 public_deps = [ |
26 ":version_header", | 24 ":version_header", |
27 ] | 25 ] |
28 deps = [ | 26 deps = [ |
29 "//base", | 27 "//base", |
30 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto", | |
31 "//net", | 28 "//net", |
32 "//url", | 29 "//url", |
33 ] | 30 ] |
34 } | 31 } |
35 | 32 |
36 source_set("test_support") { | 33 source_set("test_support") { |
37 testonly = true | 34 testonly = true |
38 sources = [ | 35 sources = [ |
39 "data_reduction_proxy_headers_test_utils.cc", | 36 "data_reduction_proxy_headers_test_utils.cc", |
40 "data_reduction_proxy_headers_test_utils.h", | 37 "data_reduction_proxy_headers_test_utils.h", |
41 "data_reduction_proxy_params_test_utils.cc", | 38 "data_reduction_proxy_params_test_utils.cc", |
42 "data_reduction_proxy_params_test_utils.h", | 39 "data_reduction_proxy_params_test_utils.h", |
43 ] | 40 ] |
44 | 41 |
45 public_deps = [ | 42 public_deps = [ |
46 ":common", | 43 ":common", |
47 ] | 44 ] |
48 deps = [ | 45 deps = [ |
49 "//base", | 46 "//base", |
50 "//net", | 47 "//net", |
51 "//net:test_support", | 48 "//net:test_support", |
52 "//testing/gmock", | 49 "//testing/gmock", |
53 "//testing/gtest", | 50 "//testing/gtest", |
54 ] | 51 ] |
55 } | 52 } |
56 | 53 |
57 source_set("unit_tests") { | 54 source_set("unit_tests") { |
58 testonly = true | 55 testonly = true |
59 sources = [ | 56 sources = [ |
60 "data_reduction_proxy_client_config_parser_unittest.cc", | |
61 "data_reduction_proxy_event_store_unittest.cc", | 57 "data_reduction_proxy_event_store_unittest.cc", |
62 "data_reduction_proxy_headers_unittest.cc", | 58 "data_reduction_proxy_headers_unittest.cc", |
63 "data_reduction_proxy_params_unittest.cc", | 59 "data_reduction_proxy_params_unittest.cc", |
64 ] | 60 ] |
65 | 61 |
66 deps = [ | 62 deps = [ |
67 ":common", | 63 ":common", |
68 ":test_support", | 64 ":test_support", |
69 "//base", | 65 "//base", |
70 "//base/test:test_support", | 66 "//base/test:test_support", |
71 "//components/data_reduction_proxy/proto:data_reduction_proxy_proto", | |
72 "//net:test_support", | 67 "//net:test_support", |
73 "//testing/gtest", | 68 "//testing/gtest", |
74 ] | 69 ] |
75 } | 70 } |
76 | 71 |
77 process_version("version_header") { | 72 process_version("version_header") { |
78 template_file = "version.h.in" | 73 template_file = "version.h.in" |
79 output = "$target_gen_dir/version.h" | 74 output = "$target_gen_dir/version.h" |
80 } | 75 } |
OLD | NEW |