OLD | NEW |
1 # Copyright 2015 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 # GYP: //components/offline_pages.gypi:offline_pages | 9 # GYP: //components/offline_pages.gypi:offline_pages |
10 static_library("offline_pages") { | 10 static_library("offline_pages") { |
11 sources = [ | 11 sources = [ |
12 "archive_manager.cc", | 12 "archive_manager.cc", |
13 "archive_manager.h", | 13 "archive_manager.h", |
14 "client_namespace_constants.cc", | 14 "client_namespace_constants.cc", |
15 "client_namespace_constants.h", | 15 "client_namespace_constants.h", |
16 "client_policy_controller.cc", | 16 "client_policy_controller.cc", |
17 "client_policy_controller.h", | 17 "client_policy_controller.h", |
| 18 "offline_event_logger.cc", |
| 19 "offline_event_logger.h", |
18 "offline_page_archiver.h", | 20 "offline_page_archiver.h", |
19 "offline_page_client_policy.h", | 21 "offline_page_client_policy.h", |
20 "offline_page_item.cc", | 22 "offline_page_item.cc", |
21 "offline_page_item.h", | 23 "offline_page_item.h", |
22 "offline_page_metadata_store.cc", | 24 "offline_page_metadata_store.cc", |
23 "offline_page_metadata_store.h", | 25 "offline_page_metadata_store.h", |
24 "offline_page_metadata_store_sql.cc", | 26 "offline_page_metadata_store_sql.cc", |
25 "offline_page_metadata_store_sql.h", | 27 "offline_page_metadata_store_sql.h", |
26 "offline_page_model.cc", | 28 "offline_page_model.cc", |
27 "offline_page_model.h", | 29 "offline_page_model.h", |
| 30 "offline_page_model_event_logger.cc", |
| 31 "offline_page_model_event_logger.h", |
28 "offline_page_model_impl.cc", | 32 "offline_page_model_impl.cc", |
29 "offline_page_model_impl.h", | 33 "offline_page_model_impl.h", |
30 "offline_page_storage_manager.cc", | 34 "offline_page_storage_manager.cc", |
31 "offline_page_storage_manager.h", | 35 "offline_page_storage_manager.h", |
32 "offline_page_types.h", | 36 "offline_page_types.h", |
33 "snapshot_controller.cc", | 37 "snapshot_controller.cc", |
34 "snapshot_controller.h", | 38 "snapshot_controller.h", |
35 ] | 39 ] |
36 | 40 |
37 deps = [ | 41 deps = [ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 "//components/version_info", | 80 "//components/version_info", |
77 ] | 81 ] |
78 } | 82 } |
79 | 83 |
80 source_set("unit_tests") { | 84 source_set("unit_tests") { |
81 testonly = true | 85 testonly = true |
82 sources = [ | 86 sources = [ |
83 "archive_manager_unittest.cc", | 87 "archive_manager_unittest.cc", |
84 "client_policy_controller_unittest.cc", | 88 "client_policy_controller_unittest.cc", |
85 "offline_page_metadata_store_impl_unittest.cc", | 89 "offline_page_metadata_store_impl_unittest.cc", |
| 90 "offline_page_model_event_logger_unittest.cc", |
86 "offline_page_model_impl_unittest.cc", | 91 "offline_page_model_impl_unittest.cc", |
87 "offline_page_storage_manager_unittest.cc", | 92 "offline_page_storage_manager_unittest.cc", |
88 "snapshot_controller_unittest.cc", | 93 "snapshot_controller_unittest.cc", |
89 ] | 94 ] |
90 | 95 |
91 deps = [ | 96 deps = [ |
92 ":offline_pages", | 97 ":offline_pages", |
93 ":switches", | 98 ":switches", |
94 ":test_support", | 99 ":test_support", |
95 "//base", | 100 "//base", |
96 "//base/test:test_support", | 101 "//base/test:test_support", |
97 "//sql:sql", | 102 "//sql:sql", |
98 "//testing/gtest", | 103 "//testing/gtest", |
99 "//url", | 104 "//url", |
100 ] | 105 ] |
101 } | 106 } |
102 | 107 |
103 if (is_android) { | 108 if (is_android) { |
104 java_cpp_enum("offline_page_model_enums_java") { | 109 java_cpp_enum("offline_page_model_enums_java") { |
105 sources = [ | 110 sources = [ |
106 "offline_page_types.h", | 111 "offline_page_types.h", |
107 ] | 112 ] |
108 } | 113 } |
109 } | 114 } |
OLD | NEW |