# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//mojo/public/mojo_application.gni") import("//mojo/public/mojo_application_manifest.gni") import("//mojo/public/tools/bindings/mojom.gni") import("//testing/test.gni") source_set("connect") { testonly = true sources = [ "connect_unittest.cc", ] deps = [ ":interfaces", "//base", "//base/test:test_support", "//mojo/shell/public/cpp:shell_test_support", "//mojo/shell/public/cpp:sources", "//mojo/shell/public/interfaces", ] data_deps = [ ":connect_test_app", ":connect_test_class_app", ":connect_test_singleton_app", ":connect_test_driver", ":connect_test_exe", ":connect_test_package", ":manifest", ] } mojom("interfaces") { sources = [ "connect_test.mojom", ] deps = [ "//mojo/shell/public/interfaces", ] } mojo_application_manifest("manifest") { application_name = "connect_unittests" source = "connect_unittests_manifest.json" } mojo_application_manifest("connect_test_a_manifest") { application_name = "connect_test_a" source = "connect_test_app_a_manifest.json" } mojo_application_manifest("connect_test_b_manifest") { application_name = "connect_test_b" source = "connect_test_app_b_manifest.json" } mojo_native_application("connect_test_package") { testonly = true sources = [ "connect_test_package.cc", ] deps = [ ":connect_test_package_manifest", ":interfaces", "//base", "//mojo/common:common_base", "//mojo/shell/public/cpp:sources", "//mojo/shell/public/interfaces", ] } mojo_application_manifest("connect_test_package_manifest") { application_name = "connect_test_package" source = "connect_test_package_manifest.json" deps = [ ":connect_test_a_manifest", ":connect_test_b_manifest", ] packaged_applications = [ "connect_test_a", "connect_test_b", ] } mojo_native_application("connect_test_app") { testonly = true sources = [ "connect_test_app.cc", ] deps = [ ":connect_test_app_manifest", ":interfaces", "//base", "//mojo/common:common_base", "//mojo/shell/public/cpp:sources", "//mojo/shell/public/interfaces", ] } mojo_application_manifest("connect_test_app_manifest") { application_name = "connect_test_app" source = "connect_test_app_manifest.json" } mojo_native_application("connect_test_class_app") { testonly = true sources = [ "connect_test_class_app.cc", ] deps = [ ":connect_test_class_app_manifest", ":interfaces", "//base", "//mojo/common:common_base", "//mojo/shell/public/cpp:sources", "//mojo/shell/public/interfaces", ] } mojo_application_manifest("connect_test_class_app_manifest") { application_name = "connect_test_class_app" source = "connect_test_class_app_manifest.json" } mojo_native_application("connect_test_singleton_app") { testonly = true sources = [ "connect_test_singleton_app.cc", ] deps = [ ":connect_test_singleton_app_manifest", "//base", "//mojo/common:common_base", "//mojo/shell/public/cpp:sources", ] } mojo_application_manifest("connect_test_singleton_app_manifest") { application_name = "connect_test_singleton_app" source = "connect_test_singleton_app_manifest.json" } executable("connect_test_driver") { testonly = true sources = [ "connect_test_driver.cc", ] deps = [ ":interfaces", "//base", "//mojo/shell/public/cpp", "//mojo/shell/runner/child:test_native_main", "//mojo/shell/tests:util", ] data_deps = [ ":connect_test_driver_manifest", ] } mojo_application_manifest("connect_test_driver_manifest") { type = "exe" application_name = "connect_test_driver" source = "connect_test_driver_manifest.json" } executable("connect_test_exe") { testonly = true sources = [ "connect_test_exe.cc", ] deps = [ ":interfaces", "//base", "//mojo/shell/public/cpp", "//mojo/shell/runner/child:test_native_main", ] data_deps = [ ":connect_test_exe_manifest", ] } mojo_application_manifest("connect_test_exe_manifest") { type = "exe" application_name = "connect_test_exe" source = "connect_test_exe_manifest.json" }