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