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
|
# 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.
import("//testing/test.gni")
import("//mojo/mojo_application_package.gni")
mojo_native_application("resource_provider") {
sources = [
"main.cc",
"resource_provider_app.cc",
"resource_provider_app.h",
]
deps = [
":lib",
"//base",
"//components/resource_provider/public/interfaces",
"//mojo/application",
"//mojo/environment:chromium",
"//url",
]
}
source_set("lib") {
sources = [
"file_utils.cc",
"file_utils.h",
"resource_provider_impl.cc",
"resource_provider_impl.h",
]
deps = [
"//base",
"//components/resource_provider/public/interfaces",
"//mojo/common:common_base",
"//mojo/platform_handle",
"//url",
]
}
test("tests") {
output_name = "resource_provider_unittests"
sources = [
"file_utils_unittest.cc",
]
deps = [
":lib",
"//base",
"//base/test:test_config",
"//components/resource_provider/public/interfaces",
"//mojo/environment:chromium",
"//testing/gtest",
"//third_party/mojo/src/mojo/edk/test:run_all_unittests",
"//url",
]
}
mojo_application_package("apptests") {
output_name = "resource_provider_apptests"
testonly = true
sources = [
"resource_provider_apptest.cc",
]
resources = [
"//components/test/data/resource_provider/sample",
"//components/test/data/resource_provider/dir",
]
deps = [
"//base",
"//base/test:test_config",
"//components/resource_provider/public/interfaces",
"//mojo/application",
"//mojo/application:test_support",
"//mojo/common",
"//mojo/platform_handle",
"//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
]
}
|