blob: 64ea59bb574d95775edb51c52849d4c8050249f5 [file] [log] [blame] [edit]
# 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/components.gni")
import("//build/go/go_library.gni")
import("//build/go/go_test.gni")
import("//build/go/toolchain.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" ]
}
fuchsia_unittest_package("fake_clock_gotests") {
manifest = "meta/fake_clock_test.cmx"
deps = [
":fake_clock_test",
"//src/lib/fake-clock/svc",
]
test_specs = {
environments = [ emu_env ]
}
}
group("examples") {
testonly = true
deps = [ ":fake_clock_gotests" ]
}