| 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 "prefetch_gcm_app_handler.cc", |
| 15 "prefetch_gcm_app_handler.h", |
| 14 "prefetch_item.cc", | 16 "prefetch_item.cc", |
| 15 "prefetch_item.h", | 17 "prefetch_item.h", |
| 16 "prefetch_request_fetcher.cc", | 18 "prefetch_request_fetcher.cc", |
| 17 "prefetch_request_fetcher.h", | 19 "prefetch_request_fetcher.h", |
| 18 "prefetch_service.h", | 20 "prefetch_service.h", |
| 19 "prefetch_service_impl.cc", | 21 "prefetch_service_impl.cc", |
| 20 "prefetch_service_impl.h", | 22 "prefetch_service_impl.h", |
| 21 "prefetch_types.cc", | 23 "prefetch_types.cc", |
| 22 "prefetch_types.h", | 24 "prefetch_types.h", |
| 23 "prefetch_utils.cc", | 25 "prefetch_utils.cc", |
| 24 "prefetch_utils.h", | 26 "prefetch_utils.h", |
| 27 "suggested_articles_observer.cc", |
| 28 "suggested_articles_observer.h", |
| 25 ] | 29 ] |
| 26 | 30 |
| 27 public_deps = [ | 31 public_deps = [ |
| 28 ":proto", | 32 ":proto", |
| 29 ] | 33 ] |
| 30 deps = [ | 34 deps = [ |
| 31 "//base", | 35 "//base", |
| 36 "//components/gcm_driver", |
| 37 "//components/gcm_driver/common", |
| 32 "//components/keyed_service/core", | 38 "//components/keyed_service/core", |
| 39 "//components/ntp_snippets", |
| 33 "//components/offline_pages/core", | 40 "//components/offline_pages/core", |
| 41 "//components/offline_pages/core:switches", |
| 34 "//net:net", | 42 "//net:net", |
| 35 "//url", | 43 "//url", |
| 36 ] | 44 ] |
| 37 } | 45 } |
| 38 | 46 |
| 39 proto_library("proto") { | 47 proto_library("proto") { |
| 40 sources = [ | 48 sources = [ |
| 41 "proto/any.proto", | 49 "proto/any.proto", |
| 42 "proto/offline_pages.proto", | 50 "proto/offline_pages.proto", |
| 43 "proto/operation.proto", | 51 "proto/operation.proto", |
| 44 "proto/status.proto", | 52 "proto/status.proto", |
| 45 "proto/timestamp.proto", | 53 "proto/timestamp.proto", |
| 46 ] | 54 ] |
| 47 } | 55 } |
| 48 | 56 |
| 49 source_set("unit_tests") { | 57 source_set("unit_tests") { |
| 50 testonly = true | 58 testonly = true |
| 51 sources = [ | 59 sources = [ |
| 52 "generate_page_bundle_request_unittest.cc", | 60 "generate_page_bundle_request_unittest.cc", |
| 53 "prefetch_item_unittest.cc", | 61 "prefetch_item_unittest.cc", |
| 54 "prefetch_request_fetcher_unittest.cc", | 62 "prefetch_request_fetcher_unittest.cc", |
| 55 "prefetch_request_test_base.cc", | 63 "prefetch_request_test_base.cc", |
| 56 "prefetch_request_test_base.h", | 64 "prefetch_request_test_base.h", |
| 57 "prefetch_service_impl_unittest.cc", | 65 "prefetch_service_impl_unittest.cc", |
| 66 "suggested_articles_observer_unittest.cc", |
| 58 ] | 67 ] |
| 59 | 68 |
| 60 deps = [ | 69 deps = [ |
| 61 ":prefetch", | 70 ":prefetch", |
| 62 "//components/offline_pages/core", | 71 "//components/offline_pages/core", |
| 72 "//components/offline_pages/core:test_support", |
| 63 "//net:test_support", | 73 "//net:test_support", |
| 64 "//testing/gmock", | 74 "//testing/gmock", |
| 65 "//testing/gtest", | 75 "//testing/gtest", |
| 66 "//url", | 76 "//url", |
| 67 ] | 77 ] |
| 68 } | 78 } |
| OLD | NEW |