blob: 85b243828edb92a715770ba4e46490ac1cbc92fb [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")
import("//build/testing/environments.gni")
group("test") {
testonly = true
deps = [
":system_time_updater_test",
":system_time_updater_test_bin",
]
}
executable("system_time_updater_test_bin") {
testonly = true
output_name = "system_time_updater_test"
sources = [
"fake_rtc_device.cc",
"fake_rtc_device.h",
"local_roughtime_server.cc",
"local_roughtime_server.h",
"settable_time_source.cc",
"settable_time_source.h",
"system_time_updater_test.cc",
]
deps = [
"//garnet/bin/network_time:lib",
"//garnet/bin/network_time:time_util_lib",
"//sdk/fidl/fuchsia.hardware.rtc",
"//sdk/fidl/fuchsia.io",
"//sdk/lib/sys/cpp",
"//sdk/lib/sys/cpp/testing:integration",
"//sdk/lib/syslog/cpp",
"//sdk/lib/syslog/cpp:backend_legacy",
"//sdk/lib/vfs/cpp",
"//src/lib/fsl",
"//src/lib/fxl",
"//src/lib/fxl/test:gtest_main",
"//third_party/boringssl",
"//third_party/googletest:gmock",
"//third_party/roughtime:client_lib",
"//third_party/roughtime:simple_server_lib",
]
# TODO(46758): Fix the leaks and remove this.
deps += [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
}
test_package("system_time_updater_test") {
deps = [ ":system_time_updater_test_bin" ]
tests = [
{
name = "system_time_updater_test"
environments = basic_envs
},
]
}