blob: 720fbe9aca61351be4fb31467ea4338e24dac102 [file] [log] [blame]
# Copyright 2019 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/components.gni")
import("//build/test.gni")
group("tests") {
testonly = true
deps = [
":rtc-lib-llcpp-test",
":rtc-lib-test",
]
}
test("rtc-lib-test-bin") {
output_name = "rtc-lib-test"
sources = [ "rtc_unittest.cc" ]
deps = [
"//src/devices/rtc/lib/rtc",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("rtc-lib-test") {
deps = [ ":rtc-lib-test-bin" ]
}
test("rtc-lib-llcpp-test-bin") {
output_name = "rtc-lib-llcpp-test"
sources = [ "rtc_llcpp_unittest.cc" ]
deps = [
"//sdk/fidl/fuchsia.hardware.rtc:fuchsia.hardware.rtc_cpp",
"//src/devices/rtc/lib/rtc:rtc_llcpp",
"//src/devices/testing/mock-ddk",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("rtc-lib-llcpp-test") {
deps = [ ":rtc-lib-llcpp-test-bin" ]
}