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

Side by Side Diff: components/offline_pages/core/prefetch/BUILD.gn

Issue 2889453003: [Offline Prefetech] Send GetOperationReqest to the server (Closed)
Patch Set: Created 3 years, 7 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 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 import("//third_party/protobuf/proto_library.gni") 8 import("//third_party/protobuf/proto_library.gni")
9 9
10 static_library("prefetch") { 10 static_library("prefetch") {
11 sources = [ 11 sources = [
12 "generate_page_bundle_request.cc", 12 "generate_page_bundle_request.cc",
13 "generate_page_bundle_request.h", 13 "generate_page_bundle_request.h",
14 "get_operation_request.cc",
15 "get_operation_request.h",
16 "prefetch_proto_utils.cc",
17 "prefetch_proto_utils.h",
14 "prefetch_request_fetcher.cc", 18 "prefetch_request_fetcher.cc",
15 "prefetch_request_fetcher.h", 19 "prefetch_request_fetcher.h",
16 "prefetch_service.h", 20 "prefetch_service.h",
17 "prefetch_service_impl.cc", 21 "prefetch_service_impl.cc",
18 "prefetch_service_impl.h", 22 "prefetch_service_impl.h",
19 "prefetch_types.cc", 23 "prefetch_types.cc",
20 "prefetch_types.h", 24 "prefetch_types.h",
21 "prefetch_utils.cc",
22 "prefetch_utils.h",
23 ] 25 ]
24 26
25 public_deps = [ 27 public_deps = [
26 ":proto", 28 ":proto",
27 ] 29 ]
28 deps = [ 30 deps = [
29 "//base", 31 "//base",
30 "//components/keyed_service/core", 32 "//components/keyed_service/core",
31 "//components/offline_pages/core", 33 "//components/offline_pages/core",
32 "//net:net", 34 "//net:net",
33 "//url", 35 "//url",
34 ] 36 ]
35 } 37 }
36 38
37 proto_library("proto") { 39 proto_library("proto") {
38 sources = [ 40 sources = [
39 "proto/any.proto", 41 "proto/any.proto",
40 "proto/offline_pages.proto", 42 "proto/offline_pages.proto",
41 "proto/operation.proto", 43 "proto/operation.proto",
42 "proto/status.proto", 44 "proto/status.proto",
43 "proto/timestamp.proto", 45 "proto/timestamp.proto",
44 ] 46 ]
45 } 47 }
46 48
47 source_set("unit_tests") { 49 source_set("unit_tests") {
48 testonly = true 50 testonly = true
49 sources = [ 51 sources = [
50 "generate_page_bundle_request_unittest.cc", 52 "generate_page_bundle_request_unittest.cc",
53 "get_operation_request_unittest.cc",
51 "prefetch_request_fetcher_unittest.cc", 54 "prefetch_request_fetcher_unittest.cc",
55 "prefetch_request_operation_response_unittest.cc",
52 "prefetch_request_test_base.cc", 56 "prefetch_request_test_base.cc",
53 "prefetch_request_test_base.h", 57 "prefetch_request_test_base.h",
54 "prefetch_service_impl_unittest.cc", 58 "prefetch_service_impl_unittest.cc",
55 ] 59 ]
56 60
57 deps = [ 61 deps = [
58 ":prefetch", 62 ":prefetch",
59 "//components/offline_pages/core", 63 "//components/offline_pages/core",
60 "//net:test_support", 64 "//net:test_support",
61 "//testing/gmock", 65 "//testing/gmock",
62 "//testing/gtest", 66 "//testing/gtest",
63 "//url", 67 "//url",
64 ] 68 ]
65 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698