OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//services/service_manager/public/cpp/service.gni") |
| 6 import("//services/service_manager/public/service_manifest.gni") |
| 7 import("//services/service_manager/public/tools/test/service_test.gni") |
| 8 import("//testing/test.gni") |
| 9 |
| 10 service("test") { |
| 11 sources = [ |
| 12 "service_impl.cc", |
| 13 "service_impl.h", |
| 14 "service_main.cc", |
| 15 ] |
| 16 |
| 17 deps = [ |
| 18 "//mojo/public/cpp/system", |
| 19 "//services/service_manager/public/cpp", |
| 20 "//services/test/public/interfaces", |
| 21 ] |
| 22 } |
| 23 |
| 24 service_manifest("manifest") { |
| 25 name = "test" |
| 26 source = "service_manifest.json" |
| 27 } |
| 28 |
| 29 source_set("tests") { |
| 30 testonly = true |
| 31 |
| 32 sources = [ |
| 33 "service_unittest.cc", |
| 34 ] |
| 35 |
| 36 deps = [ |
| 37 ":test", |
| 38 "//base/test:test_support", |
| 39 "//services/service_manager/public/cpp", |
| 40 "//services/service_manager/public/cpp:service_test_support", |
| 41 "//services/test/public/interfaces", |
| 42 "//testing/gmock", |
| 43 "//testing/gtest", |
| 44 ] |
| 45 |
| 46 data_deps = [ |
| 47 ":test", |
| 48 ] |
| 49 } |
| 50 |
| 51 service_manifest("unittest_manifest") { |
| 52 name = "test_unittests" |
| 53 source = "service_unittest_manifest.json" |
| 54 } |
| 55 |
| 56 catalog("tests_catalog") { |
| 57 embedded_services = [ ":unittest_manifest" ] |
| 58 standalone_services = [ ":manifest" ] |
| 59 } |
OLD | NEW |