chromium/services/service_manager/tests/shutdown/BUILD.gn

# 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("shutdown") {
  testonly = true
  sources = [ "shutdown_unittest.cc" ]

  deps = [
    ":interfaces",
    ":shutdown_client",
    ":shutdown_service",
    "//base",
    "//base/test:test_config",
    "//base/test:test_support",
    "//services/service_manager/public/cpp",
    "//services/service_manager/public/cpp/test:test_support",
    "//services/service_manager/public/mojom",
    "//testing/gtest",
  ]

  data_deps = [
    ":shutdown_client",
    ":shutdown_service",
  ]
}

mojom("interfaces") {
  testonly = true
  sources = [ "shutdown.test-mojom" ]
}

service_executable("shutdown_service") {
  testonly = true
  sources = [ "shutdown_service_app.cc" ]
  deps = [
    ":interfaces",
    "//base",
    "//services/service_manager/public/cpp",
    "//services/service_manager/public/mojom",
  ]
}

service_executable("shutdown_client") {
  testonly = true
  sources = [ "shutdown_client_app.cc" ]
  deps = [
    ":interfaces",
    "//base",
    "//services/service_manager/public/cpp",
    "//services/service_manager/public/mojom",
  ]
}