OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 static_library("core") { | 9 static_library("core") { |
10 sources = [ | 10 sources = [ |
| 11 "archive_manager.cc", |
| 12 "archive_manager.h", |
| 13 "client_namespace_constants.cc", |
| 14 "client_namespace_constants.h", |
| 15 "client_policy_controller.cc", |
| 16 "client_policy_controller.h", |
| 17 "offline_event_logger.cc", |
| 18 "offline_event_logger.h", |
| 19 "offline_page_archiver.h", |
| 20 "offline_page_client_policy.h", |
| 21 "offline_page_item.cc", |
| 22 "offline_page_item.h", |
| 23 "offline_page_metadata_store.cc", |
| 24 "offline_page_metadata_store.h", |
| 25 "offline_page_metadata_store_sql.cc", |
| 26 "offline_page_metadata_store_sql.h", |
| 27 "offline_page_model.cc", |
| 28 "offline_page_model.h", |
| 29 "offline_page_model_event_logger.cc", |
| 30 "offline_page_model_event_logger.h", |
| 31 "offline_page_model_impl.cc", |
| 32 "offline_page_model_impl.h", |
| 33 "offline_page_model_query.cc", |
| 34 "offline_page_model_query.h", |
| 35 "offline_page_storage_manager.cc", |
| 36 "offline_page_storage_manager.h", |
| 37 "offline_page_types.h", |
| 38 "offline_store_types.h", |
| 39 "snapshot_controller.cc", |
| 40 "snapshot_controller.h", |
11 "task.cc", | 41 "task.cc", |
12 "task.h", | 42 "task.h", |
13 "task_queue.cc", | 43 "task_queue.cc", |
14 "task_queue.h", | 44 "task_queue.h", |
15 ] | 45 ] |
16 | 46 |
17 deps = [ | 47 deps = [ |
| 48 ":switches", |
18 "//base", | 49 "//base", |
| 50 "//components/keyed_service/core", |
| 51 "//net", |
| 52 "//sql:sql", |
| 53 "//url", |
19 ] | 54 ] |
20 } | 55 } |
21 | 56 |
22 static_library("test_support") { | 57 static_library("test_support") { |
23 testonly = true | 58 testonly = true |
24 sources = [ | 59 sources = [ |
| 60 "offline_page_test_archiver.cc", |
| 61 "offline_page_test_archiver.h", |
| 62 "offline_page_test_store.cc", |
| 63 "offline_page_test_store.h", |
| 64 "stub_offline_page_model.cc", |
| 65 "stub_offline_page_model.h", |
25 "test_task.cc", | 66 "test_task.cc", |
26 "test_task.h", | 67 "test_task.h", |
27 ] | 68 ] |
28 | 69 |
29 deps = [ | 70 deps = [ |
30 ":core", | 71 ":core", |
| 72 ":switches", |
31 "//base", | 73 "//base", |
| 74 "//components/keyed_service/core", |
| 75 "//testing/gtest", |
| 76 "//url", |
| 77 ] |
| 78 } |
| 79 |
| 80 static_library("switches") { |
| 81 sources = [ |
| 82 "offline_page_feature.cc", |
| 83 "offline_page_feature.h", |
| 84 ] |
| 85 |
| 86 deps = [ |
| 87 "//base", |
| 88 "//components/version_info", |
32 ] | 89 ] |
33 } | 90 } |
34 | 91 |
35 source_set("unit_tests") { | 92 source_set("unit_tests") { |
36 testonly = true | 93 testonly = true |
37 sources = [ | 94 sources = [ |
| 95 "archive_manager_unittest.cc", |
| 96 "client_policy_controller_unittest.cc", |
| 97 "offline_page_metadata_store_impl_unittest.cc", |
| 98 "offline_page_model_event_logger_unittest.cc", |
| 99 "offline_page_model_impl_unittest.cc", |
| 100 "offline_page_storage_manager_unittest.cc", |
| 101 "snapshot_controller_unittest.cc", |
38 "task_queue_unittest.cc", | 102 "task_queue_unittest.cc", |
39 "task_unittest.cc", | 103 "task_unittest.cc", |
40 ] | 104 ] |
41 | 105 |
42 deps = [ | 106 deps = [ |
43 ":core", | 107 ":core", |
| 108 ":switches", |
44 ":test_support", | 109 ":test_support", |
45 "//base", | 110 "//base", |
46 "//base/test:test_support", | 111 "//base/test:test_support", |
47 "//testing/gtest:gtest", | 112 "//sql:sql", |
| 113 "//testing/gtest", |
| 114 "//url", |
48 ] | 115 ] |
49 } | 116 } |
| 117 |
| 118 if (is_android) { |
| 119 java_cpp_enum("offline_page_model_enums_java") { |
| 120 sources = [ |
| 121 "background/request_notifier.h", |
| 122 "background/request_queue_results.h", |
| 123 "background/save_page_request.h", |
| 124 "offline_page_types.h", |
| 125 "offline_store_types.h", |
| 126 ] |
| 127 } |
| 128 } |
OLD | NEW |