[go: nahoru, domu]

blob: 7bc08f8d107132358e598ec5837af303c67651d8 [file] [log] [blame]
# Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/libfuzzer/fuzzer_test.gni")
import("//testing/test.gni")
static_library("arc") {
sources = [
"intent_helper/arc_intent_helper_bridge.cc",
"intent_helper/arc_intent_helper_bridge.h",
"intent_helper/arc_intent_helper_observer.h",
"intent_helper/control_camera_app_delegate.h",
"intent_helper/custom_tab.cc",
"intent_helper/custom_tab.h",
"intent_helper/intent_constants.cc",
"intent_helper/intent_constants.h",
"intent_helper/intent_filter.cc",
"intent_helper/intent_filter.h",
"intent_helper/open_url_delegate.h",
]
# Enable VLOG(1).
defines = [ "ENABLED_VLOG_LEVEL=1" ]
deps = [
"//ash/components/arc",
"//ash/public/cpp",
"//components/arc/common",
"//components/arc/common:arc_intent_helper_constants",
"//components/exo",
"//components/google/core/common",
"//components/url_formatter",
]
}
static_library("arc_test_support") {
testonly = true
sources = [
"test/fake_intent_helper_host.cc",
"test/fake_intent_helper_host.h",
"test/fake_intent_helper_instance.cc",
"test/fake_intent_helper_instance.h",
]
deps = [
"//ash/components/arc/mojom",
"//ash/components/arc/session:connection_holder",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"intent_helper/arc_intent_helper_bridge_unittest.cc",
"intent_helper/custom_tab_unittest.cc",
]
deps = [
":arc",
":arc_test_support",
"//ash/components/arc/mojom",
"//ash/components/arc/session",
"//base/test:test_support",
"//components/arc/common:arc_intent_helper_constants",
"//testing/gmock",
"//testing/gtest",
"//ui/aura:test_support",
"//ui/views",
"//ui/views:test_support",
]
}