| 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("//mojo/public/mojo_application.gni") | |
| 6 import("//mojo/public/mojo_application_manifest.gni") | |
| 7 import("//mojo/public/tools/bindings/mojom.gni") | |
| 8 import("//testing/test.gni") | |
| 9 | |
| 10 source_set("application_manager") { | |
| 11 testonly = true | |
| 12 sources = [ | |
| 13 "application_manager_unittest.cc", | |
| 14 ] | |
| 15 | |
| 16 deps = [ | |
| 17 ":interfaces", | |
| 18 ":manifest", | |
| 19 "//base", | |
| 20 "//base/test:test_config", | |
| 21 "//mojo/common:common_base", | |
| 22 "//mojo/shell/public/cpp:shell_test_support", | |
| 23 "//mojo/shell/public/cpp:sources", | |
| 24 "//mojo/shell/public/interfaces", | |
| 25 ] | |
| 26 | |
| 27 data_deps = [ | |
| 28 ":application_manager_unittest_driver", | |
| 29 ":application_manager_unittest_target", | |
| 30 ] | |
| 31 } | |
| 32 | |
| 33 mojom("interfaces") { | |
| 34 sources = [ | |
| 35 "application_manager_unittest.mojom", | |
| 36 ] | |
| 37 } | |
| 38 | |
| 39 mojo_application_manifest("manifest") { | |
| 40 application_name = "application_manager_unittest" | |
| 41 source = "application_manager_unittest_manifest.json" | |
| 42 } | |
| 43 | |
| 44 executable("application_manager_unittest_driver") { | |
| 45 testonly = true | |
| 46 | |
| 47 sources = [ | |
| 48 "driver.cc", | |
| 49 ] | |
| 50 | |
| 51 deps = [ | |
| 52 ":driver_manifest", | |
| 53 ":interfaces", | |
| 54 "//base", | |
| 55 "//mojo/edk/system", | |
| 56 "//mojo/shell/public/cpp", | |
| 57 "//mojo/shell/public/interfaces", | |
| 58 "//mojo/shell/runner:init", | |
| 59 "//mojo/shell/runner/child:test_native_main", | |
| 60 "//mojo/shell/runner/common", | |
| 61 ] | |
| 62 } | |
| 63 | |
| 64 mojo_application_manifest("driver_manifest") { | |
| 65 type = "exe" | |
| 66 application_name = "application_manager_unittest_driver" | |
| 67 source = "driver_manifest.json" | |
| 68 } | |
| 69 | |
| 70 executable("application_manager_unittest_target") { | |
| 71 testonly = true | |
| 72 | |
| 73 sources = [ | |
| 74 "target.cc", | |
| 75 ] | |
| 76 | |
| 77 deps = [ | |
| 78 ":interfaces", | |
| 79 "//base", | |
| 80 "//mojo/shell/public/cpp", | |
| 81 "//mojo/shell/runner/child:test_native_main", | |
| 82 ] | |
| 83 } | |
| OLD | NEW |