1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_chromeos, "Quick Pair protocols (e.g. Fast Pair) are ash-chrome only")
source_set("ui") {
output_name = "quick_pair_ui"
sources = [
"actions.cc",
"actions.h",
"fast_pair/fast_pair_notification_controller.cc",
"fast_pair/fast_pair_notification_controller.h",
"fast_pair/fast_pair_presenter.h",
"fast_pair/fast_pair_presenter_impl.cc",
"fast_pair/fast_pair_presenter_impl.h",
"ui_broker.h",
"ui_broker_impl.cc",
"ui_broker_impl.h",
]
deps = [
"//ash/constants",
"//ash/public/cpp:cpp",
"//ash/quick_pair/common",
"//ash/quick_pair/proto:fastpair_proto",
"//ash/quick_pair/repository",
"//ash/resources/vector_icons",
"//ash/strings",
"//base",
"//components/cross_device/logging:logging",
"//third_party/protobuf:protobuf_lite",
"//ui/base",
"//ui/gfx",
"//ui/message_center",
"//url",
]
}
static_library("test_support") {
testonly = true
sources = [
"actions.cc",
"actions.h",
"mock_ui_broker.cc",
"mock_ui_broker.h",
"ui_broker.h",
]
deps = [
"//ash/quick_pair/common",
"//base",
"//base/test:test_support",
"//testing/gtest",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"fast_pair/fast_pair_notification_controller_unittest.cc",
"fast_pair/fast_pair_presenter_impl_unittest.cc",
"ui_broker_impl_unittest.cc",
]
deps = [
":test_support",
":ui",
"//ash:test_support",
"//ash/constants",
"//ash/public/cpp:test_support",
"//ash/quick_pair/common",
"//ash/quick_pair/common:test_support",
"//ash/quick_pair/proto:fastpair_proto",
"//ash/quick_pair/repository:repository",
"//ash/quick_pair/repository:test_support",
"//base",
"//base/test:test_support",
"//chromeos/ash/services/quick_pair",
"//chromeos/ash/services/quick_pair:test_support",
"//chromeos/ash/services/quick_pair/public/cpp",
"//components/signin/public/identity_manager",
"//components/signin/public/identity_manager:test_support",
"//testing/gtest",
"//ui/base",
"//ui/message_center",
"//ui/message_center:test_support",
]
}
|