| 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("//components/data_reduction_proxy/core/common/version.gni") | 5 import("//components/data_reduction_proxy/core/common/version.gni") |
| 6 | 6 |
| 7 static_library("common") { | 7 static_library("common") { |
| 8 sources = [ | 8 sources = [ |
| 9 "data_reduction_proxy_event_store.cc", | 9 "data_reduction_proxy_event_store.cc", |
| 10 "data_reduction_proxy_event_store.h", | 10 "data_reduction_proxy_event_store.h", |
| 11 "data_reduction_proxy_headers.cc", | 11 "data_reduction_proxy_headers.cc", |
| 12 "data_reduction_proxy_headers.h", | 12 "data_reduction_proxy_headers.h", |
| 13 "data_reduction_proxy_params.cc", | 13 "data_reduction_proxy_params.cc", |
| 14 "data_reduction_proxy_params.h", | 14 "data_reduction_proxy_params.h", |
| 15 "data_reduction_proxy_pref_names.cc", | 15 "data_reduction_proxy_pref_names.cc", |
| 16 "data_reduction_proxy_pref_names.h", | 16 "data_reduction_proxy_pref_names.h", |
| 17 "data_reduction_proxy_switches.cc", | 17 "data_reduction_proxy_switches.cc", |
| 18 "data_reduction_proxy_switches.h", | 18 "data_reduction_proxy_switches.h", |
| 19 ] | 19 ] |
| 20 | 20 |
| 21 public_deps = [ |
| 22 ":version_header", |
| 23 ] |
| 21 deps = [ | 24 deps = [ |
| 22 ":version_header", | |
| 23 "//base", | 25 "//base", |
| 26 "//net", |
| 27 "//url", |
| 24 ] | 28 ] |
| 25 } | 29 } |
| 26 | 30 |
| 27 static_library("test_support") { | 31 source_set("test_support") { |
| 28 testonly = true | 32 testonly = true |
| 29 sources = [ | 33 sources = [ |
| 34 "data_reduction_proxy_headers_test_utils.cc", |
| 35 "data_reduction_proxy_headers_test_utils.h", |
| 30 "data_reduction_proxy_params_test_utils.cc", | 36 "data_reduction_proxy_params_test_utils.cc", |
| 31 "data_reduction_proxy_params_test_utils.h", | 37 "data_reduction_proxy_params_test_utils.h", |
| 32 ] | 38 ] |
| 33 | 39 |
| 40 public_deps = [ |
| 41 ":common", |
| 42 ] |
| 34 deps = [ | 43 deps = [ |
| 35 ":common", | |
| 36 "//base", | 44 "//base", |
| 37 "//net", | 45 "//net", |
| 38 "//net:test_support", | 46 "//net:test_support", |
| 39 "//testing/gmock", | 47 "//testing/gmock", |
| 40 "//testing/gtest", | 48 "//testing/gtest", |
| 41 ] | 49 ] |
| 42 } | 50 } |
| 43 | 51 |
| 44 source_set("unit_tests") { | 52 source_set("unit_tests") { |
| 45 testonly = true | 53 testonly = true |
| 46 sources = [ | 54 sources = [ |
| 47 "data_reduction_proxy_event_store_unittest.cc", | 55 "data_reduction_proxy_event_store_unittest.cc", |
| 48 "data_reduction_proxy_headers_unittest.cc", | 56 "data_reduction_proxy_headers_unittest.cc", |
| 49 "data_reduction_proxy_params_unittest.cc", | 57 "data_reduction_proxy_params_unittest.cc", |
| 50 ] | 58 ] |
| 51 | 59 |
| 52 deps = [ | 60 deps = [ |
| 53 ":common", | 61 ":common", |
| 62 ":test_support", |
| 63 "//base", |
| 64 "//base/test:test_support", |
| 65 "//net:test_support", |
| 54 "//testing/gtest", | 66 "//testing/gtest", |
| 55 ] | 67 ] |
| 56 } | 68 } |
| 57 | 69 |
| 58 process_version("version_header") { | 70 process_version("version_header") { |
| 59 source = "version.h.in" | 71 source = "version.h.in" |
| 60 output = "$target_gen_dir/version.h" | 72 output = "$target_gen_dir/version.h" |
| 61 } | 73 } |
| 62 | 74 |
| OLD | NEW |