123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- # Copyright 2021 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("//build/config/chromeos/ui_mode.gni")
- assert(is_chromeos_ash,
- "Quick Pair protocols (e.g. Fast Pair) are ash-chrome only")
- source_set("message_stream") {
- sources = [
- "message_stream.cc",
- "message_stream.h",
- "message_stream_lookup.h",
- "message_stream_lookup_impl.cc",
- "message_stream_lookup_impl.h",
- ]
- deps = [
- "//ash/quick_pair/common",
- "//ash/services/quick_pair",
- "//ash/services/quick_pair/public/cpp",
- "//ash/services/quick_pair/public/mojom",
- "//base",
- "//device/bluetooth",
- "//net",
- ]
- }
- static_library("test_support") {
- testonly = true
- sources = [
- "fake_bluetooth_socket.cc",
- "fake_bluetooth_socket.h",
- "fake_message_stream_lookup.cc",
- "fake_message_stream_lookup.h",
- "message_stream.cc",
- "message_stream.h",
- "message_stream_lookup.h",
- ]
- deps = [
- "//ash/quick_pair/common",
- "//ash/services/quick_pair",
- "//ash/services/quick_pair/public/cpp",
- "//ash/services/quick_pair/public/mojom",
- "//base",
- "//base/test:test_support",
- "//device/bluetooth",
- "//device/bluetooth:mocks",
- "//testing/gtest",
- ]
- }
- source_set("unit_tests") {
- testonly = true
- sources = [
- "message_stream_lookup_impl_unittest.cc",
- "message_stream_unittest.cc",
- ]
- deps = [
- ":message_stream",
- ":test_support",
- "//ash/quick_pair/common",
- "//ash/services/quick_pair",
- "//ash/services/quick_pair:test_support",
- "//base",
- "//base/test:test_support",
- "//device/bluetooth",
- "//device/bluetooth:mocks",
- "//mojo/public/cpp/bindings",
- "//net",
- "//testing/gtest",
- ]
- }
|