blob: 0a518f5c55120d16f7feebc61c529d510603edd5 [file] [log] [blame]
# Copyright 2015 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/tools/bindings/mojom.gni")
static_library("arc") {
sources = [
"arc_bridge_bootstrap.cc",
"arc_bridge_bootstrap.h",
"arc_bridge_service.cc",
"arc_bridge_service.h",
"arc_bridge_service_impl.cc",
"arc_bridge_service_impl.h",
"arc_service_manager.cc",
"arc_service_manager.h",
"input/arc_input_bridge.h",
"input/arc_input_bridge_impl.cc",
"input/arc_input_bridge_impl.h",
]
deps = [
":arc_bindings",
"//base",
"//base:prefs",
"//chromeos",
"//ipc:ipc",
"//ipc/mojo:mojo",
"//third_party/mojo/src/mojo/edk/system",
"//ui/aura",
"//ui/events",
"//ui/events:dom_keycode_converter",
]
}
mojom("arc_bindings") {
sources = [
"common/arc_bridge.mojom",
]
}
static_library("arc_test_support") {
testonly = true
sources = [
"test/fake_arc_bridge_instance.cc",
"test/fake_arc_bridge_instance.h",
"test/fake_arc_bridge_service.cc",
"test/fake_arc_bridge_service.h",
]
deps = [
":arc",
":arc_bindings",
"//base",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"arc_bridge_service_unittest.cc",
]
deps = [
":arc",
":arc_bindings",
":arc_test_support",
"//base",
"//chromeos",
"//ipc/mojo:mojo",
"//mojo/public/cpp/environment:environment",
"//mojo/public/cpp/system:system",
"//testing/gtest",
"//ui/aura",
"//ui/events",
"//ui/events:dom_keycode_converter",
]
}