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("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 # These values are duplicated in the GYP build in: | 7 # These values are duplicated in the GYP build in: |
8 # //components/precache/precache_defines.gypi | 8 # //components/precache/precache_defines.gypi |
9 precache_config_settings_url = | 9 precache_config_settings_url = |
10 "https://www.gstatic.com/chrome/wifiprefetch/precache_config" | 10 "https://www.gstatic.com/chrome/wifiprefetch/precache_config" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 "//components/prefs", | 45 "//components/prefs", |
46 "//net", | 46 "//net", |
47 "//sql", | 47 "//sql", |
48 "//url", | 48 "//url", |
49 ] | 49 ] |
50 } | 50 } |
51 | 51 |
52 proto_library("proto") { | 52 proto_library("proto") { |
53 sources = [ | 53 sources = [ |
54 "proto/precache.proto", | 54 "proto/precache.proto", |
| 55 "proto/timestamp.proto", |
55 "proto/unfinished_work.proto", | 56 "proto/unfinished_work.proto", |
56 ] | 57 ] |
57 } | 58 } |
58 | 59 |
59 source_set("unit_tests") { | 60 source_set("unit_tests") { |
60 testonly = true | 61 testonly = true |
61 sources = [ | 62 sources = [ |
62 "fetcher_pool_unittest.cc", | 63 "fetcher_pool_unittest.cc", |
63 "precache_database_unittest.cc", | 64 "precache_database_unittest.cc", |
64 "precache_fetcher_unittest.cc", | 65 "precache_fetcher_unittest.cc", |
65 "precache_session_table_unittest.cc", | 66 "precache_session_table_unittest.cc", |
66 "precache_url_table_unittest.cc", | 67 "precache_url_table_unittest.cc", |
67 ] | 68 ] |
68 | 69 |
69 configs += [ ":precache_config" ] | 70 configs += [ ":precache_config" ] |
70 | 71 |
71 deps = [ | 72 deps = [ |
72 ":core", | 73 ":core", |
73 ":proto", | 74 ":proto", |
74 "//base", | 75 "//base", |
75 "//base/test:test_support", | 76 "//base/test:test_support", |
76 "//components/history/core/browser", | 77 "//components/history/core/browser", |
77 "//net:test_support", | 78 "//net:test_support", |
78 "//sql", | 79 "//sql", |
79 "//testing/gmock", | 80 "//testing/gmock", |
80 "//testing/gtest", | 81 "//testing/gtest", |
81 ] | 82 ] |
82 } | 83 } |
OLD | NEW |