OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 } | 7 } |
8 | 8 |
9 # GYP: //components/offline_pages/offline_pages.gypi:background_offliner | 9 # GYP: //components/offline_pages/offline_pages.gypi:background_offliner |
10 static_library("background_offliner") { | 10 static_library("background_offliner") { |
11 sources = [ | 11 sources = [ |
12 "device_conditions.h", | 12 "device_conditions.h", |
13 "offliner.h", | 13 "offliner.h", |
14 "offliner_factory.h", | 14 "offliner_factory.h", |
15 "offliner_policy.h", | 15 "offliner_policy.h", |
16 "request_coordinator.cc", | 16 "request_coordinator.cc", |
17 "request_coordinator.h", | 17 "request_coordinator.h", |
| 18 "request_coordinator_event_logger.cc", |
| 19 "request_coordinator_event_logger.h", |
18 "request_picker.cc", | 20 "request_picker.cc", |
19 "request_picker.h", | 21 "request_picker.h", |
20 "request_queue.cc", | 22 "request_queue.cc", |
21 "request_queue.h", | 23 "request_queue.h", |
22 "request_queue_in_memory_store.cc", | 24 "request_queue_in_memory_store.cc", |
23 "request_queue_in_memory_store.h", | 25 "request_queue_in_memory_store.h", |
24 "request_queue_store.h", | 26 "request_queue_store.h", |
25 "request_queue_store_sql.cc", | 27 "request_queue_store_sql.cc", |
26 "request_queue_store_sql.h", | 28 "request_queue_store_sql.h", |
27 "save_page_request.cc", | 29 "save_page_request.cc", |
28 "save_page_request.h", | 30 "save_page_request.h", |
29 "scheduler.h", | 31 "scheduler.h", |
30 ] | 32 ] |
31 | 33 |
32 deps = [ | 34 deps = [ |
33 "//base", | 35 "//base", |
34 "//components/keyed_service/core", | 36 "//components/keyed_service/core", |
35 "//components/offline_pages:offline_pages", | 37 "//components/offline_pages:offline_pages", |
36 "//net", | 38 "//net", |
37 "//sql:sql", | 39 "//sql:sql", |
38 "//url", | 40 "//url", |
39 ] | 41 ] |
40 } | 42 } |
41 | 43 |
42 source_set("unit_tests") { | 44 source_set("unit_tests") { |
43 testonly = true | 45 testonly = true |
44 sources = [ | 46 sources = [ |
| 47 "request_coordinator_event_logger_unittest.cc", |
45 "request_coordinator_unittest.cc", | 48 "request_coordinator_unittest.cc", |
46 "request_picker_unittest.cc", | 49 "request_picker_unittest.cc", |
47 "request_queue_store_unittest.cc", | 50 "request_queue_store_unittest.cc", |
48 "request_queue_unittest.cc", | 51 "request_queue_unittest.cc", |
49 "save_page_request_unittest.cc", | 52 "save_page_request_unittest.cc", |
50 ] | 53 ] |
51 | 54 |
52 deps = [ | 55 deps = [ |
53 ":background_offliner", | 56 ":background_offliner", |
54 "//base", | 57 "//base", |
55 "//base/test:test_support", | 58 "//base/test:test_support", |
56 "//components/offline_pages:offline_pages", | 59 "//components/offline_pages:offline_pages", |
57 "//testing/gtest", | 60 "//testing/gtest", |
58 "//url", | 61 "//url", |
59 ] | 62 ] |
60 } | 63 } |
OLD | NEW |