Files
nearby/fastpair/dataparser/BUILD
T
Nick Bourdakos a08a42077c PR #2404: Add license header to all source files
Imported from GitHub PR https://github.com/google/nearby/pull/2404

Copybara import of the project:

--
a6fbb3c396321c0b9012b787323f5f2ff652fd8f by Nick Bourdakos <bourdakos1@gmail.com>:

Add license header to all source files

Merging this change closes #2404

PiperOrigin-RevId: 623540004
2024-04-10 10:40:38 -07:00

94 lines
2.4 KiB
Python

# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
licenses(["notice"])
cc_library(
name = "dataparser",
srcs = [
"fast_pair_data_parser.cc",
],
hdrs = [
"fast_pair_data_parser.h",
],
visibility = [
"//fastpair:__subpackages__",
],
deps = [
":decoder",
"//fastpair/common",
"//fastpair/crypto",
"//internal/base:bluetooth_address",
"//internal/platform:base",
"//internal/platform:types",
"@com_google_absl//absl/functional:any_invocable",
"@com_google_absl//absl/strings",
],
)
cc_library(
name = "decoder",
srcs = [
"fast_pair_decoder.cc",
],
hdrs = [
"fast_pair_decoder.h",
],
visibility = [
"//fastpair:__subpackages__",
],
deps = [
"@com_google_absl//absl/strings",
],
)
cc_test(
name = "fast_pair_data_parser_test",
size = "small",
srcs = [
"fast_pair_data_parser_test.cc",
],
shard_count = 16,
deps = [
":dataparser",
"//fastpair/common",
"//fastpair/crypto",
"//fastpair/testing",
"//internal/platform:types",
"//internal/platform/implementation/g3", # build_cleaner: keep
"@boringssl//:crypto",
"@com_github_protobuf_matchers//protobuf-matchers",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/time",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "fast_pair_decoder_test",
size = "small",
srcs = [
"fast_pair_decoder_test.cc",
],
shard_count = 16,
deps = [
":decoder",
"//fastpair/testing",
"//internal/platform/implementation/g3", # build_cleaner: keep
"@com_github_protobuf_matchers//protobuf-matchers",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest_main",
],
)