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
101
102
103
104
105
106
107
108
|
# 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("//mojo/public/mojo_application.gni")
import("//mojo/public/mojo_application_manifest.gni")
import("//mojo/public/tools/bindings/mojom.gni")
group("child") {
testonly = true
deps = [
":apptests",
":lib",
]
}
source_set("lib") {
sources = [
"runner_connection.cc",
"runner_connection.h",
]
deps = [
"//base",
"//mojo/edk/system",
"//mojo/message_pump",
"//mojo/platform_handle:platform_handle_impl",
"//mojo/shell/public/interfaces",
"//mojo/shell/runner/common",
]
}
source_set("test_native_main") {
sources = [
"test_native_main.cc",
"test_native_main.h",
]
public_deps = [
"//mojo/shell/runner:init",
]
deps = [
"//base",
"//mojo/edk/system",
"//mojo/message_pump",
"//mojo/shell/public/cpp",
"//mojo/shell/runner/child:lib",
]
}
mojom("apptest_interfaces") {
sources = [
"test_native_service.mojom",
]
deps = [
"//mojo/shell/public/interfaces",
]
import_dirs = [ "//mojo/services" ]
}
mojo_native_application("apptests") {
output_name = "mojo_runner_child_apptest"
testonly = true
avoid_runner_cycle = true
sources = [
"native_apptest.cc",
]
deps = [
":apptest_interfaces",
"//base",
"//base/test:test_config",
"//mojo/shell/public/cpp:sources",
"//mojo/shell/public/cpp:test_support",
]
data_deps = [
":manifest",
":native_target",
]
}
mojo_application_manifest("manifest") {
application_name = "mojo_runner_child_apptest"
source = "manifest.json"
}
executable("native_target") {
output_name = "mojo_runner_child_apptest_native_target"
testonly = true
sources = [
"native_apptest_target.cc",
]
deps = [
":apptest_interfaces",
":lib",
":test_native_main",
"//base",
"//build/config/sanitizers:deps",
"//mojo/shell/public/cpp",
]
}
|