| 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("//services/service_manager/public/tools/test/service_test.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 | 10 |
| 11 source_set("lib") { | 11 source_set("lib") { |
| 12 sources = [ | 12 sources = [ |
| 13 "clipboard_impl.cc", | 13 "clipboard_impl.cc", |
| 14 "clipboard_impl.h", | 14 "clipboard_impl.h", |
| 15 ] | 15 ] |
| 16 | 16 |
| 17 deps = [ | 17 deps = [ |
| 18 "//base", | 18 "//base", |
| 19 "//mojo/common", | 19 "//mojo/common", |
| 20 "//mojo/public/cpp/bindings", | 20 "//mojo/public/cpp/bindings", |
| 21 "//services/service_manager/public/cpp", | 21 "//services/service_manager/public/cpp", |
| 22 "//services/ui/public/interfaces", | 22 "//services/ui/public/interfaces", |
| 23 ] | 23 ] |
| 24 } | 24 } |
| 25 | 25 |
| 26 group("tests") { | 26 source_set("tests") { |
| 27 testonly = true | 27 testonly = true |
| 28 deps = [ | |
| 29 ":mus_clipboard_unittests", | |
| 30 ] | |
| 31 } | |
| 32 | 28 |
| 33 service_test("mus_clipboard_unittests") { | |
| 34 sources = [ | 29 sources = [ |
| 35 "clipboard_unittest.cc", | 30 "clipboard_unittest.cc", |
| 36 ] | 31 ] |
| 37 | 32 |
| 38 catalog = ":mus_clipboard_unittests_catalog" | |
| 39 | |
| 40 deps = [ | 33 deps = [ |
| 41 "//base", | 34 "//base", |
| 42 "//mojo/common", | 35 "//mojo/common", |
| 43 "//services/service_manager/public/cpp", | 36 "//services/service_manager/public/cpp", |
| 44 "//services/service_manager/public/cpp:service_test_support", | 37 "//services/service_manager/public/cpp:service_test_support", |
| 45 "//services/ui/public/interfaces", | 38 "//services/ui/public/interfaces", |
| 46 ] | 39 ] |
| 47 | 40 |
| 48 data_deps = [ | 41 data_deps = [ |
| 49 ":lib", | 42 ":lib", |
| 50 "//services/ui", | 43 "//services/ui", |
| 51 ] | 44 ] |
| 52 } | 45 } |
| 53 | 46 |
| 54 service_manifest("test_manifest") { | 47 service_manifest("unittest_manifest") { |
| 55 name = "mus_clipboard_unittests" | 48 name = "clipboard_unittests" |
| 56 source = "test_manifest.json" | 49 source = "test_manifest.json" |
| 57 } | 50 } |
| 58 | 51 |
| 59 catalog("mus_clipboard_unittests_catalog") { | 52 catalog("tests_catalog") { |
| 60 embedded_services = [ ":test_manifest" ] | 53 testonly = true |
| 54 embedded_services = [ ":unittest_manifest" ] |
| 61 standalone_services = [ "//services/ui:manifest" ] | 55 standalone_services = [ "//services/ui:manifest" ] |
| 62 } | 56 } |
| OLD | NEW |