OLD | NEW |
| (Empty) |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 import("//mojo/public/mojo_application.gni") | |
6 import("//mojo/public/tools/bindings/mojom.gni") | |
7 import("//testing/test.gni") | |
8 | |
9 source_set("test_support") { | |
10 sources = [ | |
11 "test_catalog_store.cc", | |
12 "test_catalog_store.h", | |
13 ] | |
14 | |
15 deps = [ | |
16 "//base", | |
17 "//mojo/services/catalog:lib", | |
18 "//url", | |
19 ] | |
20 } | |
21 | |
22 source_set("unittests") { | |
23 testonly = true | |
24 sources = [ | |
25 "background_shell_unittest.cc", | |
26 ] | |
27 | |
28 deps = [ | |
29 ":test_app_bindings", | |
30 ":test_support", | |
31 "//base", | |
32 "//mojo/shell/background:lib", | |
33 "//mojo/shell/background:main", | |
34 "//mojo/shell/public/cpp:sources", | |
35 "//testing/gtest", | |
36 "//url", | |
37 ] | |
38 | |
39 data_deps = [ | |
40 ":test_app", | |
41 ] | |
42 } | |
43 | |
44 mojom("test_app_bindings") { | |
45 sources = [ | |
46 "test.mojom", | |
47 ] | |
48 } | |
49 | |
50 mojo_native_application("test_app") { | |
51 output_name = "background_shell_test_app" | |
52 | |
53 sources = [ | |
54 "test_service.cc", | |
55 ] | |
56 | |
57 deps = [ | |
58 ":test_app_bindings", | |
59 "//base", | |
60 "//mojo/shell/public/cpp:sources", | |
61 "//mojo/shell/public/interfaces", | |
62 ] | |
63 } | |
OLD | NEW |