| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 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("//mojo/public/mojo_application.gni") | |
| 6 import("//mojo/public/mojo_application_manifest.gni") | |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | |
| 8 | |
| 9 group("child") { | |
| 10 testonly = true | |
| 11 deps = [ | |
| 12 ":apptests", | |
| 13 ] | |
| 14 } | |
| 15 | |
| 16 source_set("test_native_main") { | |
| 17 sources = [ | |
| 18 "test_native_main.cc", | |
| 19 "test_native_main.h", | |
| 20 ] | |
| 21 | |
| 22 public_deps = [ | |
| 23 "//mojo/shell/runner:init", | |
| 24 ] | |
| 25 | |
| 26 deps = [ | |
| 27 "//base", | |
| 28 "//mojo/edk/system", | |
| 29 "//mojo/message_pump", | |
| 30 "//mojo/shell/public/cpp", | |
| 31 "//mojo/shell/runner/common", | |
| 32 ] | |
| 33 } | |
| 34 | |
| 35 mojom("apptest_interfaces") { | |
| 36 sources = [ | |
| 37 "test_native_service.mojom", | |
| 38 ] | |
| 39 | |
| 40 deps = [ | |
| 41 "//mojo/shell/public/interfaces", | |
| 42 ] | |
| 43 | |
| 44 import_dirs = [ "//mojo/services" ] | |
| 45 } | |
| 46 | |
| 47 mojo_native_application("apptests") { | |
| 48 output_name = "mojo_runner_child_apptest" | |
| 49 testonly = true | |
| 50 avoid_runner_cycle = true | |
| 51 | |
| 52 sources = [ | |
| 53 "native_apptest.cc", | |
| 54 ] | |
| 55 | |
| 56 deps = [ | |
| 57 ":apptest_interfaces", | |
| 58 "//base", | |
| 59 "//base/test:test_config", | |
| 60 "//mojo/shell/public/cpp:sources", | |
| 61 "//mojo/shell/public/cpp:test_support", | |
| 62 ] | |
| 63 | |
| 64 data_deps = [ | |
| 65 ":manifest", | |
| 66 ":native_target", | |
| 67 ] | |
| 68 } | |
| 69 | |
| 70 mojo_application_manifest("manifest") { | |
| 71 application_name = "mojo_runner_child_apptest" | |
| 72 source = "manifest.json" | |
| 73 } | |
| 74 | |
| 75 executable("native_target") { | |
| 76 output_name = "mojo_runner_child_apptest_native_target" | |
| 77 testonly = true | |
| 78 | |
| 79 sources = [ | |
| 80 "native_apptest_target.cc", | |
| 81 ] | |
| 82 | |
| 83 deps = [ | |
| 84 ":apptest_interfaces", | |
| 85 ":test_native_main", | |
| 86 "//base", | |
| 87 "//build/config/sanitizers:deps", | |
| 88 "//mojo/shell/public/cpp", | |
| 89 ] | |
| 90 } | |
| OLD | NEW |