| 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 | 8 |
| 9 static_library("prefetch") { | 9 static_library("prefetch") { |
| 10 sources = [ | 10 sources = [ |
| 11 "prefetch_item.cc", |
| 12 "prefetch_item.h", |
| 11 "prefetch_request_fetcher.cc", | 13 "prefetch_request_fetcher.cc", |
| 12 "prefetch_request_fetcher.h", | 14 "prefetch_request_fetcher.h", |
| 13 "prefetch_service.h", | 15 "prefetch_service.h", |
| 14 "prefetch_service_impl.cc", | 16 "prefetch_service_impl.cc", |
| 15 "prefetch_service_impl.h", | 17 "prefetch_service_impl.h", |
| 18 "prefetch_types.h", |
| 16 ] | 19 ] |
| 17 | 20 |
| 18 deps = [ | 21 deps = [ |
| 19 "//base", | 22 "//base", |
| 20 "//components/keyed_service/core", | 23 "//components/keyed_service/core", |
| 21 "//components/offline_pages/core", | 24 "//components/offline_pages/core", |
| 22 "//net:net", | 25 "//net:net", |
| 23 "//url", | 26 "//url", |
| 24 ] | 27 ] |
| 25 } | 28 } |
| 26 | 29 |
| 27 source_set("unit_tests") { | 30 source_set("unit_tests") { |
| 28 testonly = true | 31 testonly = true |
| 29 sources = [ | 32 sources = [ |
| 30 "prefetch_request_fetcher_unittest.cc", | 33 "prefetch_request_fetcher_unittest.cc", |
| 31 "prefetch_service_impl_unittest.cc", | 34 "prefetch_service_impl_unittest.cc", |
| 32 ] | 35 ] |
| 33 | 36 |
| 34 deps = [ | 37 deps = [ |
| 35 ":prefetch", | 38 ":prefetch", |
| 36 "//components/offline_pages/core", | 39 "//components/offline_pages/core", |
| 37 "//net:test_support", | 40 "//net:test_support", |
| 38 "//testing/gmock", | 41 "//testing/gmock", |
| 39 "//testing/gtest", | 42 "//testing/gtest", |
| 40 "//url", | 43 "//url", |
| 41 ] | 44 ] |
| 42 } | 45 } |
| OLD | NEW |