| # 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.h", |
| "device.cc", |
| "device.h", |
| "fast_pair/fast_pair_decoder.cc", |
| "fast_pair/fast_pair_decoder.h", |
| "log_buffer.cc", |
| "log_buffer.h", |
| "logging.cc", |
| "logging.h", |
| "pair_failure.cc", |
| "pair_failure.h", |
| "protocol.cc", |
| "protocol.h", |
| ] |
| |
| deps = [ "//base" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ |
| "fast_pair/fast_pair_decoder_unittest.cc", |
| "logging_unittest.cc", |
| ] |
| |
| deps = [ |
| ":common", |
| "//base/test:test_support", |
| "//testing/gtest", |
| ] |
| } |