123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- # 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")
- component("common") {
- output_name = "quick_pair_common"
- defines = [ "IS_QUICK_PAIR_COMMON_IMPL" ]
- sources = [
- "account_key_failure.cc",
- "account_key_failure.h",
- "constants.cc",
- "constants.h",
- "device.cc",
- "device.h",
- "fast_pair/fast_pair_decoder.cc",
- "fast_pair/fast_pair_decoder.h",
- "fast_pair/fast_pair_feature_usage_metrics_logger.cc",
- "fast_pair/fast_pair_feature_usage_metrics_logger.h",
- "fast_pair/fast_pair_http_result.cc",
- "fast_pair/fast_pair_http_result.h",
- "fast_pair/fast_pair_metrics.cc",
- "fast_pair/fast_pair_metrics.h",
- "fast_pair/fast_pair_service_data_creator.cc",
- "fast_pair/fast_pair_service_data_creator.h",
- "log_buffer.cc",
- "log_buffer.h",
- "logging.cc",
- "logging.h",
- "pair_failure.cc",
- "pair_failure.h",
- "protocol.cc",
- "protocol.h",
- "quick_pair_browser_delegate.cc",
- "quick_pair_browser_delegate.h",
- ]
- deps = [
- "//ash/constants:constants",
- "//ash/services/quick_pair/public/mojom",
- "//base",
- "//chromeos/ash/components/feature_usage",
- "//components/prefs",
- "//device/bluetooth",
- "//device/bluetooth/public/cpp",
- "//net",
- "//services/network/public/cpp",
- "//services/network/public/mojom",
- ]
- }
- static_library("test_support") {
- testonly = true
- sources = [
- "fast_pair/fast_pair_service_data_creator.cc",
- "fast_pair/fast_pair_service_data_creator.h",
- "mock_quick_pair_browser_delegate.cc",
- "mock_quick_pair_browser_delegate.h",
- "quick_pair_browser_delegate.h",
- ]
- deps = [
- "//ash/services/quick_pair/public/mojom",
- "//base/test:test_support",
- "//components/image_fetcher/core",
- "//services/network/public/cpp",
- "//testing/gtest",
- ]
- }
- source_set("unit_tests") {
- testonly = true
- sources = [
- "device_unittest.cc",
- "fast_pair/fast_pair_decoder_unittest.cc",
- "fast_pair/fast_pair_feature_usage_metrics_logger_unittest.cc",
- "log_buffer_unittest.cc",
- "logging_unittest.cc",
- ]
- deps = [
- ":common",
- ":test_support",
- "//ash/constants:constants",
- "//base/test:test_support",
- "//chromeos/ash/components/feature_usage",
- "//components/prefs:test_support",
- "//device/bluetooth",
- "//device/bluetooth:mocks",
- "//testing/gtest",
- ]
- }
|