| 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/shell/public/cpp/service.gni") | |
| 6 import("//services/shell/public/service_manifest.gni") | |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | |
| 8 import("//testing/test.gni") | |
| 9 | |
| 10 static_library("test_support") { | |
| 11 sources = [ | |
| 12 "test_catalog_store.cc", | |
| 13 "test_catalog_store.h", | |
| 14 ] | |
| 15 | |
| 16 deps = [ | |
| 17 "//base", | |
| 18 "//services/catalog:lib", | |
| 19 "//url", | |
| 20 ] | |
| 21 } | |
| 22 | |
| 23 source_set("unittests") { | |
| 24 testonly = true | |
| 25 sources = [ | |
| 26 "background_shell_unittest.cc", | |
| 27 ] | |
| 28 | |
| 29 deps = [ | |
| 30 ":test_service_interfaces", | |
| 31 "//base", | |
| 32 "//services/shell/background:lib", | |
| 33 "//services/shell/background:main", | |
| 34 "//services/shell/public/cpp:sources", | |
| 35 "//testing/gtest", | |
| 36 "//url", | |
| 37 ] | |
| 38 | |
| 39 data_deps = [ | |
| 40 ":background_shell_test_service", | |
| 41 ":test_manifest", | |
| 42 ] | |
| 43 } | |
| 44 | |
| 45 mojom("test_service_interfaces") { | |
| 46 sources = [ | |
| 47 "test.mojom", | |
| 48 ] | |
| 49 | |
| 50 use_new_wrapper_types = false | |
| 51 } | |
| 52 | |
| 53 service("background_shell_test_service") { | |
| 54 sources = [ | |
| 55 "test_service.cc", | |
| 56 ] | |
| 57 | |
| 58 deps = [ | |
| 59 ":test_service_interfaces", | |
| 60 "//base", | |
| 61 "//services/shell/public/cpp:sources", | |
| 62 "//services/shell/public/interfaces", | |
| 63 ] | |
| 64 | |
| 65 data_deps = [ | |
| 66 ":test_service_manifest", | |
| 67 ] | |
| 68 } | |
| 69 | |
| 70 service_manifest("test_manifest") { | |
| 71 name = "background_shell_unittest" | |
| 72 source = "test_manifest.json" | |
| 73 } | |
| 74 | |
| 75 service_manifest("test_service_manifest") { | |
| 76 name = "background_shell_test_service" | |
| 77 source = "test_service_manifest.json" | |
| 78 } | |
| OLD | NEW |