OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//services/catalog/public/tools/catalog.gni") | 5 import("//services/catalog/public/tools/catalog.gni") |
6 import("//services/service_manager/public/cpp/service.gni") | 6 import("//services/service_manager/public/cpp/service.gni") |
7 import("//services/service_manager/public/service_manifest.gni") | 7 import("//services/service_manager/public/service_manifest.gni") |
| 8 import("//services/service_manager/public/tools/test/service_test.gni") |
8 import("//testing/test.gni") | 9 import("//testing/test.gni") |
9 | 10 |
10 source_set("lib") { | 11 source_set("lib") { |
11 sources = [ | 12 sources = [ |
12 "mus_demo.cc", | 13 "mus_demo.cc", |
13 "mus_demo.h", | 14 "mus_demo.h", |
14 ] | 15 ] |
15 | 16 |
16 public_deps = [ | 17 public_deps = [ |
17 "//services/service_manager/public/cpp:sources", | 18 "//services/service_manager/public/cpp:sources", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 service_manifest("manifest") { | 51 service_manifest("manifest") { |
51 name = "mus_demo" | 52 name = "mus_demo" |
52 source = "manifest.json" | 53 source = "manifest.json" |
53 } | 54 } |
54 | 55 |
55 service_manifest("test_manifest") { | 56 service_manifest("test_manifest") { |
56 name = "mus_demo_unittests" | 57 name = "mus_demo_unittests" |
57 source = "test_manifest.json" | 58 source = "test_manifest.json" |
58 } | 59 } |
59 | 60 |
60 test("mus_demo_unittests") { | 61 service_test("mus_demo_unittests") { |
61 testonly = true | 62 testonly = true |
62 | 63 |
63 sources = [ | 64 sources = [ |
64 "mus_demo_unittests.cc", | 65 "mus_demo_unittests.cc", |
65 "run_all_unittests.cc", | |
66 ] | 66 ] |
67 | 67 |
| 68 catalog = ":mus_demo_unittests_catalog" |
| 69 |
68 deps = [ | 70 deps = [ |
69 ":demo", | 71 ":demo", |
70 "//base", | 72 "//base", |
71 "//base/test:test_support", | |
72 "//mojo/edk/system", | |
73 "//services/catalog:lib", | |
74 "//services/service_manager/public/cpp", | 73 "//services/service_manager/public/cpp", |
75 "//services/service_manager/public/cpp:service_test_support", | 74 "//services/service_manager/public/cpp:service_test_support", |
76 "//services/ui/public/interfaces", | 75 "//services/ui/public/interfaces", |
77 "//testing/gtest", | 76 "//testing/gtest", |
78 ] | 77 ] |
79 | 78 |
80 data_deps = [ | 79 data_deps = [ |
81 ":mus_demo", | 80 ":mus_demo", |
82 ":mus_demo_unittests_catalog_copy", | |
83 ] | 81 ] |
84 } | 82 } |
85 | 83 |
86 group("demo") { | 84 group("demo") { |
87 deps = [ | 85 deps = [ |
88 ":mus_demo", | 86 ":mus_demo", |
89 ] | 87 ] |
90 } | 88 } |
91 | 89 |
92 catalog("mus_demo_unittests_catalog") { | 90 catalog("mus_demo_unittests_catalog") { |
93 embedded_services = [ ":test_manifest" ] | 91 embedded_services = [ ":test_manifest" ] |
94 | 92 |
95 standalone_services = [ | 93 standalone_services = [ |
96 ":manifest", | 94 ":manifest", |
97 "//services/ui:manifest", | 95 "//services/ui:manifest", |
98 ] | 96 ] |
99 } | 97 } |
100 | |
101 copy("mus_demo_unittests_catalog_copy") { | |
102 sources = get_target_outputs(":mus_demo_unittests_catalog") | |
103 outputs = [ | |
104 "${root_out_dir}/mus_demo_unittests_catalog.json", | |
105 ] | |
106 deps = [ | |
107 ":mus_demo_unittests_catalog", | |
108 ] | |
109 } | |
OLD | NEW |