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") | |
6 import("//services/service_manager/public/cpp/service.gni") | 5 import("//services/service_manager/public/cpp/service.gni") |
7 import("//services/service_manager/public/service_manifest.gni") | 6 import("//services/service_manager/public/service_manifest.gni") |
8 import("//testing/test.gni") | 7 import("//testing/test.gni") |
9 | 8 |
10 source_set("lib") { | 9 source_set("lib") { |
11 sources = [ | 10 sources = [ |
12 "ime_registrar_impl.cc", | 11 "ime_registrar_impl.cc", |
13 "ime_registrar_impl.h", | 12 "ime_registrar_impl.h", |
14 "ime_server_impl.cc", | 13 "ime_server_impl.cc", |
15 "ime_server_impl.h", | 14 "ime_server_impl.h", |
(...skipping 12 matching lines...) Expand all Loading... |
28 group("tests") { | 27 group("tests") { |
29 testonly = true | 28 testonly = true |
30 deps = [ | 29 deps = [ |
31 ":mus_ime_unittests", | 30 ":mus_ime_unittests", |
32 ] | 31 ] |
33 } | 32 } |
34 | 33 |
35 test("mus_ime_unittests") { | 34 test("mus_ime_unittests") { |
36 sources = [ | 35 sources = [ |
37 "ime_unittest.cc", | 36 "ime_unittest.cc", |
38 "run_all_unittests.cc", | |
39 ] | 37 ] |
40 | 38 |
41 deps = [ | 39 deps = [ |
42 "//base", | 40 "//base", |
43 "//base/test:test_support", | |
44 "//mojo/common", | 41 "//mojo/common", |
45 "//mojo/edk/system", | |
46 "//services/catalog:lib", | |
47 "//services/service_manager/public/cpp:service_test_support", | 42 "//services/service_manager/public/cpp:service_test_support", |
48 "//services/service_manager/public/cpp:sources", | 43 "//services/service_manager/public/cpp:sources", |
| 44 "//services/service_manager/public/cpp/test:run_all_service_tests", |
49 "//services/ui/public/interfaces", | 45 "//services/ui/public/interfaces", |
50 ] | 46 ] |
51 | 47 |
52 data_deps = [ | 48 data_deps = [ |
| 49 ":test_manifest", |
53 ":lib", | 50 ":lib", |
54 ":mus_ime_unittests_catalog_copy", | |
55 "//services/ui", | 51 "//services/ui", |
56 "//services/ui/ime/test_ime_driver", | 52 "//services/ui/ime/test_ime_driver", |
57 ] | 53 ] |
58 } | 54 } |
59 | 55 |
60 service_manifest("test_manifest") { | 56 service_manifest("test_manifest") { |
61 name = "mus_ime_unittests" | 57 name = "mus_ime_unittests" |
62 source = "test_manifest.json" | 58 source = "test_manifest.json" |
63 } | 59 } |
64 | |
65 catalog("mus_ime_unittests_catalog") { | |
66 embedded_services = [ ":test_manifest" ] | |
67 standalone_services = [ | |
68 "//services/ui:manifest", | |
69 "//services/ui/ime/test_ime_driver:manifest", | |
70 ] | |
71 } | |
72 | |
73 copy("mus_ime_unittests_catalog_copy") { | |
74 sources = get_target_outputs(":mus_ime_unittests_catalog") | |
75 outputs = [ | |
76 "${root_out_dir}/mus_ime_unittests_catalog.json", | |
77 ] | |
78 deps = [ | |
79 ":mus_ime_unittests_catalog", | |
80 ] | |
81 } | |
OLD | NEW |