1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_android) {
import("//build/config/android/rules.gni")
}
# GYP: //components/offline_pages.gypi:offline_pages
static_library("offline_pages") {
sources = [
"offline_page_archiver.h",
"offline_page_item.cc",
"offline_page_item.h",
"offline_page_metadata_store.cc",
"offline_page_metadata_store.h",
"offline_page_metadata_store_impl.cc",
"offline_page_metadata_store_impl.h",
"offline_page_model.cc",
"offline_page_model.h",
]
deps = [
":switches",
"//base",
"//components/bookmarks/browser",
"//components/keyed_service/core",
"//components/leveldb_proto",
"//components/offline_pages/proto:offline_pages_proto",
"//net",
"//third_party/leveldatabase",
"//url",
]
}
static_library("test_support") {
testonly = true
sources = [
"offline_page_test_archiver.cc",
"offline_page_test_archiver.h",
"offline_page_test_store.cc",
"offline_page_test_store.h",
]
deps = [
":offline_pages",
":switches",
"//base",
"//testing/gtest",
"//url",
]
}
source_set("switches") {
sources = [
"offline_page_feature.cc",
"offline_page_feature.h",
"offline_page_switches.cc",
"offline_page_switches.h",
]
deps = [
"//base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"offline_page_metadata_store_impl_unittest.cc",
"offline_page_model_unittest.cc",
]
deps = [
":offline_pages",
":test_support",
"//base",
"//base/test:test_support",
"//components/bookmarks/browser",
"//components/bookmarks/test",
"//components/leveldb_proto",
"//components/offline_pages/proto:offline_pages_proto",
"//testing/gtest",
"//url",
]
}
if (is_android) {
java_cpp_enum("offline_page_feature_enums_java") {
sources = [
"offline_page_feature.h",
]
}
java_cpp_enum("offline_page_model_enums_java") {
sources = [
"offline_page_model.h",
]
}
}
|