blob: 673da7ff0023015d4a423fa3b72f51f9029bc12e [file]
# 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.
group("tests") {
testonly = true
deps = [ ":background-loop-tests" ]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
if (is_fuchsia) {
source_set("background_loop") {
sources = [ "background_loop.cc" ]
public = [ "background_loop.h" ]
deps = [
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-default",
"//sdk/lib/zircon-assert",
"//zircon/system/ulib/zx",
]
visibility = [
":*",
"//src/storage/*",
]
public_deps = [
"//sdk/lib/async",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
]
}
}
if (is_fuchsia) {
cc_test_executable("background_loop_test") {
sources = [ "background_loop_test.cc" ]
deps = [
":background_loop",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-default",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
"//zircon/system/ulib/sync:sync-cpp",
"//zircon/system/ulib/zx",
]
deps += [ "//src/sys/test_runners/gtest:death_test" ]
testonly = true
emit_tool_path = false
}
}
fuchsia_unittest_package("background-loop-tests") {
package_name = "background-loop-tests-gn"
component_name = "background-loop-tests"
deps = [ ":background_loop_test" ]
visibility = [
":*",
"//src/storage:*",
]
}