| 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 "ime_registrar_impl.cc", | 13 "ime_registrar_impl.cc", |
| 13 "ime_registrar_impl.h", | 14 "ime_registrar_impl.h", |
| 14 "ime_server_impl.cc", | 15 "ime_server_impl.cc", |
| 15 "ime_server_impl.h", | 16 "ime_server_impl.h", |
| 16 ] | 17 ] |
| 17 | 18 |
| 18 deps = [ | 19 deps = [ |
| 19 "//base", | 20 "//base", |
| 20 "//mojo/common", | 21 "//mojo/common", |
| 21 "//mojo/public/cpp/bindings", | 22 "//mojo/public/cpp/bindings", |
| 22 "//services/service_manager/public/cpp", | 23 "//services/service_manager/public/cpp", |
| 23 "//services/tracing/public/cpp", | 24 "//services/tracing/public/cpp", |
| 24 "//services/ui/public/interfaces", | 25 "//services/ui/public/interfaces", |
| 25 ] | 26 ] |
| 26 } | 27 } |
| 27 | 28 |
| 28 group("tests") { | 29 group("tests") { |
| 29 testonly = true | 30 testonly = true |
| 30 deps = [ | 31 deps = [ |
| 31 ":mus_ime_unittests", | 32 ":mus_ime_unittests", |
| 32 ] | 33 ] |
| 33 } | 34 } |
| 34 | 35 |
| 35 test("mus_ime_unittests") { | 36 service_test("mus_ime_unittests") { |
| 36 sources = [ | 37 sources = [ |
| 37 "ime_unittest.cc", | 38 "ime_unittest.cc", |
| 38 "run_all_unittests.cc", | |
| 39 ] | 39 ] |
| 40 | 40 |
| 41 catalog = ":mus_ime_unittests_catalog" |
| 42 |
| 41 deps = [ | 43 deps = [ |
| 42 "//base", | 44 "//base", |
| 43 "//base/test:test_support", | |
| 44 "//mojo/common", | 45 "//mojo/common", |
| 45 "//mojo/edk/system", | |
| 46 "//services/catalog:lib", | |
| 47 "//services/service_manager/public/cpp:service_test_support", | 46 "//services/service_manager/public/cpp:service_test_support", |
| 48 "//services/service_manager/public/cpp:sources", | 47 "//services/service_manager/public/cpp:sources", |
| 49 "//services/ui/public/interfaces", | 48 "//services/ui/public/interfaces", |
| 50 ] | 49 ] |
| 51 | 50 |
| 52 data_deps = [ | 51 data_deps = [ |
| 53 ":lib", | 52 ":lib", |
| 54 ":mus_ime_unittests_catalog_copy", | |
| 55 "//services/ui", | 53 "//services/ui", |
| 56 "//services/ui/ime/test_ime_driver", | 54 "//services/ui/ime/test_ime_driver", |
| 57 ] | 55 ] |
| 58 } | 56 } |
| 59 | 57 |
| 60 service_manifest("test_manifest") { | 58 service_manifest("test_manifest") { |
| 61 name = "mus_ime_unittests" | 59 name = "mus_ime_unittests" |
| 62 source = "test_manifest.json" | 60 source = "test_manifest.json" |
| 63 } | 61 } |
| 64 | 62 |
| 65 catalog("mus_ime_unittests_catalog") { | 63 catalog("mus_ime_unittests_catalog") { |
| 66 embedded_services = [ ":test_manifest" ] | 64 embedded_services = [ ":test_manifest" ] |
| 67 standalone_services = [ | 65 standalone_services = [ |
| 68 "//services/ui:manifest", | 66 "//services/ui:manifest", |
| 69 "//services/ui/ime/test_ime_driver:manifest", | 67 "//services/ui/ime/test_ime_driver:manifest", |
| 70 ] | 68 ] |
| 71 } | 69 } |
| 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 |