OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import("//third_party/protobuf/proto_library.gni") | 8 import("//third_party/protobuf/proto_library.gni") |
9 | 9 |
10 static_library("prefetch") { | 10 static_library("prefetch") { |
11 sources = [ | 11 sources = [ |
12 "generate_page_bundle_request.cc", | 12 "generate_page_bundle_request.cc", |
13 "generate_page_bundle_request.h", | 13 "generate_page_bundle_request.h", |
14 "get_operation_request.cc", | 14 "get_operation_request.cc", |
15 "get_operation_request.h", | 15 "get_operation_request.h", |
16 "prefetch_dispatcher.h", | 16 "prefetch_dispatcher.h", |
17 "prefetch_dispatcher_impl.cc", | 17 "prefetch_dispatcher_impl.cc", |
18 "prefetch_dispatcher_impl.h", | 18 "prefetch_dispatcher_impl.h", |
| 19 "prefetch_gcm_app_handler.cc", |
| 20 "prefetch_gcm_app_handler.h", |
| 21 "prefetch_gcm_handler.h", |
19 "prefetch_item.cc", | 22 "prefetch_item.cc", |
20 "prefetch_item.h", | 23 "prefetch_item.h", |
21 "prefetch_proto_utils.cc", | 24 "prefetch_proto_utils.cc", |
22 "prefetch_proto_utils.h", | 25 "prefetch_proto_utils.h", |
23 "prefetch_request_fetcher.cc", | 26 "prefetch_request_fetcher.cc", |
24 "prefetch_request_fetcher.h", | 27 "prefetch_request_fetcher.h", |
25 "prefetch_service.h", | 28 "prefetch_service.h", |
26 "prefetch_service_impl.cc", | 29 "prefetch_service_impl.cc", |
27 "prefetch_service_impl.h", | 30 "prefetch_service_impl.h", |
28 "prefetch_types.cc", | 31 "prefetch_types.cc", |
29 "prefetch_types.h", | 32 "prefetch_types.h", |
| 33 "suggested_articles_observer.cc", |
| 34 "suggested_articles_observer.h", |
30 ] | 35 ] |
31 | 36 |
32 public_deps = [ | 37 public_deps = [ |
33 ":proto", | 38 ":proto", |
34 ] | 39 ] |
35 deps = [ | 40 deps = [ |
36 "//base", | 41 "//base", |
| 42 "//components/gcm_driver", |
| 43 "//components/gcm_driver/common", |
37 "//components/keyed_service/core", | 44 "//components/keyed_service/core", |
| 45 "//components/ntp_snippets", |
38 "//components/offline_pages/core", | 46 "//components/offline_pages/core", |
| 47 "//components/offline_pages/core:switches", |
39 "//net:net", | 48 "//net:net", |
40 "//url", | 49 "//url", |
41 ] | 50 ] |
42 } | 51 } |
43 | 52 |
44 proto_library("proto") { | 53 proto_library("proto") { |
45 sources = [ | 54 sources = [ |
46 "proto/any.proto", | 55 "proto/any.proto", |
47 "proto/offline_pages.proto", | 56 "proto/offline_pages.proto", |
48 "proto/operation.proto", | 57 "proto/operation.proto", |
49 "proto/status.proto", | 58 "proto/status.proto", |
50 "proto/timestamp.proto", | 59 "proto/timestamp.proto", |
51 ] | 60 ] |
52 } | 61 } |
53 | 62 |
54 source_set("unit_tests") { | 63 source_set("unit_tests") { |
55 testonly = true | 64 testonly = true |
56 sources = [ | 65 sources = [ |
57 "generate_page_bundle_request_unittest.cc", | 66 "generate_page_bundle_request_unittest.cc", |
58 "get_operation_request_unittest.cc", | 67 "get_operation_request_unittest.cc", |
59 "prefetch_dispatcher_impl_unittest.cc", | 68 "prefetch_dispatcher_impl_unittest.cc", |
60 "prefetch_item_unittest.cc", | 69 "prefetch_item_unittest.cc", |
61 "prefetch_request_fetcher_unittest.cc", | 70 "prefetch_request_fetcher_unittest.cc", |
62 "prefetch_request_operation_response_unittest.cc", | 71 "prefetch_request_operation_response_unittest.cc", |
63 "prefetch_request_test_base.cc", | 72 "prefetch_request_test_base.cc", |
64 "prefetch_request_test_base.h", | 73 "prefetch_request_test_base.h", |
| 74 "suggested_articles_observer_unittest.cc", |
65 ] | 75 ] |
66 | 76 |
67 deps = [ | 77 deps = [ |
68 ":prefetch", | 78 ":prefetch", |
69 "//components/offline_pages/core", | 79 "//components/offline_pages/core", |
| 80 "//components/offline_pages/core:test_support", |
70 "//net:test_support", | 81 "//net:test_support", |
71 "//testing/gmock", | 82 "//testing/gmock", |
72 "//testing/gtest", | 83 "//testing/gtest", |
73 "//url", | 84 "//url", |
74 ] | 85 ] |
75 } | 86 } |
OLD | NEW |