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 "client_policy_controller.cc", |
| 13 "client_policy_controller.h", |
12 "offline_page_archiver.h", | 14 "offline_page_archiver.h", |
| 15 "offline_page_client_policy.h", |
13 "offline_page_item.cc", | 16 "offline_page_item.cc", |
14 "offline_page_item.h", | 17 "offline_page_item.h", |
15 "offline_page_metadata_store.cc", | 18 "offline_page_metadata_store.cc", |
16 "offline_page_metadata_store.h", | 19 "offline_page_metadata_store.h", |
17 "offline_page_metadata_store_impl.cc", | 20 "offline_page_metadata_store_impl.cc", |
18 "offline_page_metadata_store_impl.h", | 21 "offline_page_metadata_store_impl.h", |
19 "offline_page_model.cc", | 22 "offline_page_model.cc", |
20 "offline_page_model.h", | 23 "offline_page_model.h", |
21 "snapshot_controller.cc", | 24 "snapshot_controller.cc", |
22 "snapshot_controller.h", | 25 "snapshot_controller.h", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 64 |
62 deps = [ | 65 deps = [ |
63 "//base", | 66 "//base", |
64 "//components/version_info", | 67 "//components/version_info", |
65 ] | 68 ] |
66 } | 69 } |
67 | 70 |
68 source_set("unit_tests") { | 71 source_set("unit_tests") { |
69 testonly = true | 72 testonly = true |
70 sources = [ | 73 sources = [ |
| 74 "client_policy_controller_unittest.cc", |
71 "offline_page_metadata_store_impl_unittest.cc", | 75 "offline_page_metadata_store_impl_unittest.cc", |
72 "offline_page_model_unittest.cc", | 76 "offline_page_model_unittest.cc", |
73 "snapshot_controller_unittest.cc", | 77 "snapshot_controller_unittest.cc", |
74 ] | 78 ] |
75 | 79 |
76 deps = [ | 80 deps = [ |
77 ":offline_pages", | 81 ":offline_pages", |
78 ":switches", | 82 ":switches", |
79 ":test_support", | 83 ":test_support", |
80 "//base", | 84 "//base", |
81 "//base/test:test_support", | 85 "//base/test:test_support", |
82 "//components/leveldb_proto", | 86 "//components/leveldb_proto", |
83 "//components/offline_pages/proto:offline_pages_proto", | 87 "//components/offline_pages/proto:offline_pages_proto", |
84 "//testing/gtest", | 88 "//testing/gtest", |
85 "//url", | 89 "//url", |
86 ] | 90 ] |
87 } | 91 } |
88 | 92 |
89 if (is_android) { | 93 if (is_android) { |
90 java_cpp_enum("offline_page_model_enums_java") { | 94 java_cpp_enum("offline_page_model_enums_java") { |
91 sources = [ | 95 sources = [ |
92 "offline_page_model.h", | 96 "offline_page_model.h", |
93 ] | 97 ] |
94 } | 98 } |
95 } | 99 } |
OLD | NEW |