blob: 091cd420caf7e77b08f785c37950ecef0578e78d [file] [log] [blame]
# Copyright 2020 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/go/go_library.gni")
import("//build/go/go_test.gni")
import("//build/go/toolchain.gni")
import("//build/package.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
go_library("fake_clock") {
testonly = true
name = "fake_clock"
sources = [
"fake_clock.go",
"fake_clock_test.go",
]
}
go_test("fake_clock_test") {
gopackages = [ "fake_clock" ]
deps = [
":fake_clock",
"//src/lib/component",
"//src/lib/fake-clock/fidl($go_toolchain)",
]
non_go_deps = [ "//src/lib/fake-clock/lib" ]
}
test_package("fake_clock_gotests") {
deps = [ ":fake_clock_test" ]
tests = [
{
name = "fake_clock_test"
environments = [ emu_env ]
},
]
}
group("examples") {
testonly = true
deps = [ ":fake_clock_gotests" ]
}