Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: components/offline_pages/background/BUILD.gn

Issue 2020833002: Add the request picker and a unit test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR feedback per Dimich and DougArnett Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "offliner_factory.h", 13 "offliner_factory.h",
14 "offliner_policy.h", 14 "offliner_policy.h",
15 "request_coordinator.cc", 15 "request_coordinator.cc",
16 "request_coordinator.h", 16 "request_coordinator.h",
17 "request_picker.cc",
18 "request_picker.h",
17 "request_queue.cc", 19 "request_queue.cc",
18 "request_queue.h", 20 "request_queue.h",
19 "request_queue_in_memory_store.cc", 21 "request_queue_in_memory_store.cc",
20 "request_queue_in_memory_store.h", 22 "request_queue_in_memory_store.h",
21 "request_queue_store.h", 23 "request_queue_store.h",
22 "save_page_request.cc", 24 "save_page_request.cc",
23 "save_page_request.h", 25 "save_page_request.h",
24 "scheduler.h", 26 "scheduler.h",
25 ] 27 ]
26 28
27 deps = [ 29 deps = [
28 "//base", 30 "//base",
29 "//components/keyed_service/core", 31 "//components/keyed_service/core",
30 "//components/offline_pages:offline_pages", 32 "//components/offline_pages:offline_pages",
31 "//net", 33 "//net",
32 "//url", 34 "//url",
33 ] 35 ]
34 } 36 }
35 37
36 source_set("unit_tests") { 38 source_set("unit_tests") {
37 testonly = true 39 testonly = true
38 sources = [ 40 sources = [
39 "request_coordinator_unittest.cc", 41 "request_coordinator_unittest.cc",
42 "request_picker_unittest.cc",
40 "request_queue_in_memory_store_unittest.cc", 43 "request_queue_in_memory_store_unittest.cc",
41 "request_queue_unittest.cc", 44 "request_queue_unittest.cc",
42 "save_page_request_unittest.cc", 45 "save_page_request_unittest.cc",
43 ] 46 ]
44 47
45 deps = [ 48 deps = [
46 ":background_offliner", 49 ":background_offliner",
47 "//base", 50 "//base",
48 "//base/test:test_support", 51 "//base/test:test_support",
49 "//components/offline_pages:offline_pages", 52 "//components/offline_pages:offline_pages",
50 "//testing/gtest", 53 "//testing/gtest",
51 "//url", 54 "//url",
52 ] 55 ]
53 } 56 }
OLDNEW
« no previous file with comments | « components/offline_pages.gypi ('k') | components/offline_pages/background/request_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698