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
|
# Copyright 2016 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("//mojo/public/mojo_application.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//testing/test.gni")
source_set("test_support") {
sources = [
"test_catalog_store.cc",
"test_catalog_store.h",
]
deps = [
"//base",
"//mojo/services/catalog:lib",
"//url",
]
}
source_set("unittests") {
testonly = true
sources = [
"background_shell_unittest.cc",
]
deps = [
":test_app_bindings",
":test_support",
"//base",
"//mojo/shell/background:lib",
"//mojo/shell/background:main",
"//mojo/shell/public/cpp:sources",
"//testing/gtest",
"//url",
]
data_deps = [
":test_app",
]
}
mojom("test_app_bindings") {
sources = [
"test.mojom",
]
}
mojo_native_application("test_app") {
output_name = "background_shell_test_app"
sources = [
"test_service.cc",
]
deps = [
":test_app_bindings",
"//base",
"//mojo/shell/public/cpp:sources",
"//mojo/shell/public/interfaces",
]
}
|