# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
import("//services/service_manager/public/cpp/service_executable.gni")
import("//testing/test.gni")
source_set("connect") {
testonly = true
sources = [ "connect_unittest.cc" ]
deps = [
":interfaces",
"//base",
"//base/test:test_support",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp/test:test_support",
"//services/service_manager/public/mojom",
"//services/service_manager/tests:util",
"//testing/gtest",
]
data_deps = [
":connect_test_app",
":connect_test_class_app",
":connect_test_exe",
":connect_test_package",
":connect_test_singleton_app",
]
}
mojom("interfaces") {
testonly = true
sources = [ "connect.test-mojom" ]
deps = [
"//mojo/public/mojom/base",
"//services/service_manager/public/mojom",
]
}
service_executable("connect_test_package") {
testonly = true
sources = [ "connect_test_package.cc" ]
deps = [
":interfaces",
"//base",
"//mojo/public/cpp/system",
"//services/service_manager/public/cpp",
"//services/service_manager/public/mojom",
]
}
service_executable("connect_test_app") {
testonly = true
sources = [ "connect_test_app.cc" ]
deps = [
":interfaces",
"//base",
"//mojo/public/cpp/system",
"//services/service_manager/public/cpp",
"//services/service_manager/public/mojom",
]
}
service_executable("connect_test_class_app") {
testonly = true
sources = [ "connect_test_class_app.cc" ]
deps = [
":interfaces",
"//base",
"//mojo/public/cpp/system",
"//services/service_manager/public/cpp",
"//services/service_manager/public/mojom",
]
}
service_executable("connect_test_singleton_app") {
testonly = true
sources = [ "connect_test_singleton_app.cc" ]
deps = [
"//base",
"//mojo/public/cpp/system",
"//services/service_manager/public/cpp",
]
}
executable("connect_test_exe") {
testonly = true
sources = [ "connect_test_exe.cc" ]
deps = [
":interfaces",
"//base",
"//build/win:default_exe_manifest",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp/service_executable:main",
]
}