blob: 184d9e53bfb8b6a61f5934408962aa10524879d9 [file] [log] [blame]
# Copyright 2018 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.
import("//build/test/test_package.gni")
source_set("backoff") {
sources = [
"backoff.h",
"exponential_backoff.cc",
"exponential_backoff.h",
]
public_deps = [
"//src/lib/fxl",
"//zircon/public/lib/fit",
"//zircon/public/lib/zx",
]
public_configs = [ "//garnet/public:config" ]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
executable("backoff_unittests") {
testonly = true
sources = [ "exponential_backoff_unittest.cc" ]
deps = [
":backoff",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
}
unittest_package("backoff_tests") {
deps = [ ":backoff_unittests" ]
tests = [
{
name = "backoff_unittests"
environments = basic_envs
},
]
}
group("tests") {
testonly = true
deps = [ ":backoff_tests" ]
}