| # Copyright 2026 The Fuchsia Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| load("//build/bazel/rules/cc:fx_cc_test_binary.bzl", "fx_cc_test_binary") | |
| load("//build/bazel/rules/testing:fx_unittest_package.bzl", "fx_unittest_package") | |
| package(default_applicable_licenses = ["//:license"]) | |
| fx_cc_test_binary( | |
| name = "test", | |
| srcs = [ | |
| "clocktree-test.cc", | |
| "testclock.cc", | |
| "testclock.h", | |
| ], | |
| # clocktree headers are under ../include. | |
| copts = [ | |
| "-Isrc/devices/clock/lib/clocktree/include", | |
| ], | |
| tags = ["manual"], | |
| deps = [ | |
| "//sdk/lib/fdio", | |
| "//src/devices/clock/lib/clocktree", | |
| "//zircon/system/ulib/fbl", | |
| "//zircon/system/ulib/zx", | |
| "//zircon/system/ulib/zxtest", | |
| ], | |
| ) | |
| fx_unittest_package( | |
| name = "clocktree_test", | |
| unit_tests = [":test"], | |
| visibility = [ | |
| "//src/devices:__pkg__", | |
| "//src/devices/clock/lib:__pkg__", | |
| ], | |
| ) |