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