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("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 import("//mojo/public/mojo_application_manifest.gni") | 6 import("//mojo/public/mojo_application_manifest.gni") |
| 7 import("//testing/test.gni") |
7 | 8 |
8 mojo_native_application("mus_demo") { | 9 mojo_native_application("mus_demo") { |
9 sources = [ | 10 sources = [ |
10 "main.cc", | 11 "main.cc", |
11 "mus_demo.cc", | 12 "mus_demo.cc", |
12 "mus_demo.h", | 13 "mus_demo.h", |
13 ] | 14 ] |
14 | 15 |
15 deps = [ | 16 deps = [ |
16 "//base", | 17 "//base", |
(...skipping 11 matching lines...) Expand all Loading... |
28 ":manifest", | 29 ":manifest", |
29 "//services/ui", | 30 "//services/ui", |
30 ] | 31 ] |
31 } | 32 } |
32 | 33 |
33 mojo_application_manifest("manifest") { | 34 mojo_application_manifest("manifest") { |
34 application_name = "mus_demo" | 35 application_name = "mus_demo" |
35 source = "manifest.json" | 36 source = "manifest.json" |
36 } | 37 } |
37 | 38 |
| 39 mojo_application_manifest("test_manifest") { |
| 40 type = "exe" |
| 41 application_name = "mus_demo_unittests" |
| 42 source = "test_manifest.json" |
| 43 } |
| 44 |
| 45 test("mus_demo_unittests") { |
| 46 testonly = true |
| 47 |
| 48 sources = [ |
| 49 "mus_demo_unittests.cc", |
| 50 ] |
| 51 |
| 52 deps = [ |
| 53 ":demo", |
| 54 "//base", |
| 55 "//services/shell/public/cpp", |
| 56 "//services/shell/public/cpp:service_test_support", |
| 57 "//services/ui/common:run_all_shelltests", |
| 58 "//services/ui/public/interfaces", |
| 59 "//testing/gtest", |
| 60 ] |
| 61 |
| 62 data_deps = [ |
| 63 ":test_manifest", |
| 64 ] |
| 65 } |
| 66 |
38 group("demo") { | 67 group("demo") { |
39 deps = [ | 68 deps = [ |
40 ":mus_demo", | 69 ":mus_demo", |
41 ] | 70 ] |
42 } | 71 } |
OLD | NEW |