| 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("shell") { | |
| 11 testonly = true | |
| 12 sources = [ | |
| 13 "shell_unittest.cc", | |
| 14 ] | |
| 15 | |
| 16 deps = [ | |
| 17 ":interfaces", | |
| 18 "//base", | |
| 19 "//base/test:test_config", | |
| 20 "//mojo/common:common_base", | |
| 21 "//services/shell/public/cpp:service_test_support", | |
| 22 "//services/shell/public/cpp:sources", | |
| 23 "//services/shell/public/interfaces", | |
| 24 ] | |
| 25 | |
| 26 data_deps = [ | |
| 27 ":manifest", | |
| 28 ":shell_unittest_driver", | |
| 29 ":shell_unittest_target", | |
| 30 ] | |
| 31 } | |
| 32 | |
| 33 mojom("interfaces") { | |
| 34 sources = [ | |
| 35 "shell_unittest.mojom", | |
| 36 ] | |
| 37 | |
| 38 deps = [ | |
| 39 "//services/shell/public/interfaces", | |
| 40 ] | |
| 41 } | |
| 42 | |
| 43 service_manifest("manifest") { | |
| 44 name = "shell_unittest" | |
| 45 source = "shell_unittest_manifest.json" | |
| 46 } | |
| 47 | |
| 48 executable("shell_unittest_driver") { | |
| 49 testonly = true | |
| 50 | |
| 51 sources = [ | |
| 52 "driver.cc", | |
| 53 ] | |
| 54 | |
| 55 deps = [ | |
| 56 ":interfaces", | |
| 57 "//base", | |
| 58 "//build/win:default_exe_manifest", | |
| 59 "//mojo/edk/system", | |
| 60 "//services/shell/public/cpp", | |
| 61 "//services/shell/public/interfaces", | |
| 62 "//services/shell/runner:init", | |
| 63 "//services/shell/runner/child:test_native_main", | |
| 64 "//services/shell/runner/common", | |
| 65 ] | |
| 66 | |
| 67 data_deps = [ | |
| 68 ":driver_manifest", | |
| 69 ] | |
| 70 } | |
| 71 | |
| 72 service_manifest("driver_manifest") { | |
| 73 type = "exe" | |
| 74 name = "shell_unittest_driver" | |
| 75 source = "driver_manifest.json" | |
| 76 } | |
| 77 | |
| 78 executable("shell_unittest_target") { | |
| 79 testonly = true | |
| 80 | |
| 81 sources = [ | |
| 82 "target.cc", | |
| 83 ] | |
| 84 | |
| 85 deps = [ | |
| 86 ":interfaces", | |
| 87 "//base", | |
| 88 "//build/win:default_exe_manifest", | |
| 89 "//services/shell/public/cpp", | |
| 90 "//services/shell/runner/child:test_native_main", | |
| 91 ] | |
| 92 | |
| 93 data_deps = [ | |
| 94 ":target_manifest", | |
| 95 ] | |
| 96 } | |
| 97 | |
| 98 service_manifest("target_manifest") { | |
| 99 type = "exe" | |
| 100 name = "shell_unittest_target" | |
| 101 source = "target_manifest.json" | |
| 102 } | |
| OLD | NEW |