| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 # GYP: //components/offline_pages/offline_pages.gypi:background_offliner | 9 # GYP: //components/offline_pages/offline_pages.gypi:background_offliner |
| 10 static_library("background_offliner") { | 10 static_library("background_offliner") { |
| 11 sources = [ | 11 sources = [ |
| 12 "offliner.h", | 12 "offliner.h", |
| 13 "request_coordinator.cc", | 13 "request_coordinator.cc", |
| 14 "request_coordinator.h", | 14 "request_coordinator.h", |
| 15 "request_queue.cc", |
| 16 "request_queue.h", |
| 17 "save_page_request.cc", |
| 18 "save_page_request.h", |
| 15 "scheduler.h", | 19 "scheduler.h", |
| 16 ] | 20 ] |
| 17 | 21 |
| 18 deps = [ | 22 deps = [ |
| 19 "//base", | 23 "//base", |
| 20 "//components/offline_pages:offline_pages", | 24 "//components/offline_pages:offline_pages", |
| 21 "//net", | 25 "//net", |
| 22 "//url", | 26 "//url", |
| 23 ] | 27 ] |
| 24 } | 28 } |
| 29 |
| 30 source_set("unit_tests") { |
| 31 testonly = true |
| 32 sources = [ |
| 33 "save_page_request_unittest.cc", |
| 34 ] |
| 35 |
| 36 deps = [ |
| 37 ":background_offliner", |
| 38 "//base", |
| 39 "//components/offline_pages:offline_pages", |
| 40 "//testing/gtest", |
| 41 "//url", |
| 42 ] |
| 43 } |
| OLD | NEW |