| 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 source_set("shutdown") { | |
| 11 testonly = true | |
| 12 sources = [ | |
| 13 "shutdown_unittest.cc", | |
| 14 ] | |
| 15 | |
| 16 deps = [ | |
| 17 ":interfaces", | |
| 18 ":shutdown_client", | |
| 19 ":shutdown_service", | |
| 20 "//base", | |
| 21 "//base/test:test_config", | |
| 22 "//services/shell/public/cpp:service_test_support", | |
| 23 "//services/shell/public/cpp:sources", | |
| 24 "//services/shell/public/interfaces", | |
| 25 ] | |
| 26 | |
| 27 data_deps = [ | |
| 28 ":shutdown_client", | |
| 29 ":shutdown_service", | |
| 30 ":shutdown_unittest_manifest", | |
| 31 ] | |
| 32 } | |
| 33 | |
| 34 mojom("interfaces") { | |
| 35 sources = [ | |
| 36 "shutdown_unittest.mojom", | |
| 37 ] | |
| 38 } | |
| 39 | |
| 40 service_manifest("shutdown_unittest_manifest") { | |
| 41 name = "shutdown_unittest" | |
| 42 source = "shutdown_unittest_manifest.json" | |
| 43 } | |
| 44 | |
| 45 service_manifest("shutdown_service_manifest") { | |
| 46 name = "shutdown_service" | |
| 47 source = "shutdown_service_manifest.json" | |
| 48 } | |
| 49 | |
| 50 service("shutdown_service") { | |
| 51 testonly = true | |
| 52 sources = [ | |
| 53 "shutdown_service_app.cc", | |
| 54 ] | |
| 55 deps = [ | |
| 56 ":interfaces", | |
| 57 "//base", | |
| 58 "//services/shell/public/cpp:sources", | |
| 59 "//services/shell/public/interfaces", | |
| 60 ] | |
| 61 data_deps = [ | |
| 62 ":shutdown_service_manifest", | |
| 63 ] | |
| 64 } | |
| 65 | |
| 66 service_manifest("shutdown_client_manifest") { | |
| 67 name = "shutdown_client" | |
| 68 source = "shutdown_client_manifest.json" | |
| 69 } | |
| 70 | |
| 71 service("shutdown_client") { | |
| 72 testonly = true | |
| 73 sources = [ | |
| 74 "shutdown_client_app.cc", | |
| 75 ] | |
| 76 deps = [ | |
| 77 ":interfaces", | |
| 78 "//base", | |
| 79 "//services/shell/public/cpp:sources", | |
| 80 "//services/shell/public/interfaces", | |
| 81 ] | |
| 82 data_deps = [ | |
| 83 ":shutdown_client_manifest", | |
| 84 ] | |
| 85 } | |
| OLD | NEW |