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 source_set("reading_list") { | 5 source_set("reading_list") { |
6 sources = [ | 6 sources = [ |
7 "offline_url_utils.cc", | 7 "offline_url_utils.cc", |
8 "offline_url_utils.h", | 8 "offline_url_utils.h", |
9 "reading_list_download_service.cc", | 9 "reading_list_download_service.cc", |
10 "reading_list_download_service.h", | 10 "reading_list_download_service.h", |
11 "reading_list_download_service_factory.cc", | 11 "reading_list_download_service_factory.cc", |
12 "reading_list_download_service_factory.h", | 12 "reading_list_download_service_factory.h", |
13 "reading_list_entry.cc", | 13 "reading_list_entry.cc", |
14 "reading_list_entry.h", | 14 "reading_list_entry.h", |
15 "reading_list_model.cc", | 15 "reading_list_model.cc", |
16 "reading_list_model.h", | 16 "reading_list_model.h", |
17 "reading_list_model_bridge_observer.h", | 17 "reading_list_model_bridge_observer.h", |
18 "reading_list_model_bridge_observer.mm", | 18 "reading_list_model_bridge_observer.mm", |
19 "reading_list_model_factory.cc", | 19 "reading_list_model_factory.cc", |
20 "reading_list_model_factory.h", | 20 "reading_list_model_factory.h", |
21 "reading_list_model_impl.cc", | 21 "reading_list_model_impl.cc", |
22 "reading_list_model_impl.h", | 22 "reading_list_model_impl.h", |
23 "reading_list_model_observer.h", | 23 "reading_list_model_observer.h", |
24 "reading_list_model_storage.h", | 24 "reading_list_model_storage.h", |
25 "reading_list_model_storage_defaults.h", | |
26 "reading_list_model_storage_defaults.mm", | |
27 "reading_list_pref_names.cc", | 25 "reading_list_pref_names.cc", |
28 "reading_list_pref_names.h", | 26 "reading_list_pref_names.h", |
| 27 "reading_list_store.cc", |
| 28 "reading_list_store.h", |
| 29 "reading_list_store_delegate.h", |
29 "reading_list_web_state_observer.h", | 30 "reading_list_web_state_observer.h", |
30 "reading_list_web_state_observer.mm", | 31 "reading_list_web_state_observer.mm", |
31 "url_downloader.cc", | 32 "url_downloader.cc", |
32 "url_downloader.h", | 33 "url_downloader.h", |
33 ] | 34 ] |
34 deps = [ | 35 deps = [ |
35 "//base", | 36 "//base", |
36 "//components/keyed_service/core", | 37 "//components/keyed_service/core", |
37 "//components/keyed_service/ios", | 38 "//components/keyed_service/ios", |
38 "//components/pref_registry", | 39 "//components/pref_registry", |
39 "//components/prefs", | 40 "//components/prefs", |
| 41 "//components/sync", |
| 42 "//components/sync/protocol", |
40 "//ios/chrome/browser", | 43 "//ios/chrome/browser", |
41 "//ios/chrome/browser/browser_state", | 44 "//ios/chrome/browser/browser_state", |
| 45 "//ios/chrome/browser/reading_list/proto", |
42 "//ios/web", | 46 "//ios/web", |
43 "//net", | 47 "//net", |
44 "//url", | 48 "//url", |
45 ] | 49 ] |
46 public_deps = [ | 50 public_deps = [ |
47 "//ios/chrome/browser/dom_distiller", | 51 "//ios/chrome/browser/dom_distiller", |
48 ] | 52 ] |
49 } | 53 } |
50 | 54 |
51 source_set("unit_tests") { | 55 source_set("unit_tests") { |
52 testonly = true | 56 testonly = true |
53 sources = [ | 57 sources = [ |
54 "offline_url_utils_unittest.cc", | 58 "offline_url_utils_unittest.cc", |
55 "reading_list_entry_unittest.cc", | 59 "reading_list_entry_unittest.cc", |
56 "reading_list_model_storage_unittest.mm", | |
57 "reading_list_model_unittest.cc", | 60 "reading_list_model_unittest.cc", |
| 61 "reading_list_store_unittest.cc", |
58 "url_downloader_unittest.cc", | 62 "url_downloader_unittest.cc", |
59 ] | 63 ] |
60 deps = [ | 64 deps = [ |
61 ":reading_list", | 65 ":reading_list", |
62 "//base", | 66 "//base", |
63 "//base/test:test_support", | 67 "//base/test:test_support", |
| 68 "//components/sync:test_support_model", |
| 69 "//components/sync/protocol", |
64 "//ios/chrome/browser", | 70 "//ios/chrome/browser", |
65 "//ios/chrome/browser/dom_distiller", | 71 "//ios/chrome/browser/dom_distiller", |
| 72 "//ios/chrome/browser/reading_list/proto", |
66 "//ios/web:test_support", | 73 "//ios/web:test_support", |
67 "//testing/gtest", | 74 "//testing/gtest", |
68 "//url", | 75 "//url", |
69 ] | 76 ] |
70 } | 77 } |
OLD | NEW |