1# Copyright 2023 The Pigweed Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); you may not 4# use this file except in compliance with the License. You may obtain a copy of 5# the License at 6# 7# https://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12# License for the specific language governing permissions and limitations under 13# the License. 14 15load("//pw_unit_test:pw_cc_test.bzl", "pw_cc_test") 16 17cc_library( 18 name = "metrics_lib", 19 srcs = [ 20 "metrics.cc", 21 ], 22 hdrs = [ 23 "metrics.h", 24 ], 25 includes = ["."], 26 deps = [ 27 "//pw_assert", 28 "//pw_bytes", 29 "//pw_containers", 30 "//pw_status", 31 "//pw_string", 32 ], 33) 34 35pw_cc_test( 36 name = "metrics_unittest", 37 srcs = ["metrics_unittest.cc"], 38 deps = [":metrics_lib"], 39) 40 41# DOCSTAG: [pwfuzzer_examples_fuzztest-bazel] 42pw_cc_test( 43 name = "metrics_fuzztest", 44 srcs = ["metrics_fuzztest.cc"], 45 deps = [ 46 ":metrics_lib", 47 "//pw_fuzzer:fuzztest", # <- Added! 48 "//pw_unit_test", 49 ], 50) 51# DOCSTAG: [pwfuzzer_examples_fuzztest-bazel] 52