blob: 5a5b22a92a40e1e1ca09e40a3bb5aadab5f24992 [file] [log] [blame]
# Copyright 2022 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")
# This binary is in charge of wiring all the fake resources for the test.
# Everything is offered to the test component, which is a parent. The
# parent then forwards this to the child(the early boot instrumentation component).
executable("provider") {
sources = [ "provider.cc" ]
deps = [
"//sdk/fidl/fuchsia.boot:fuchsia.boot_cpp",
"//sdk/fidl/fuchsia.debugdata:fuchsia.debugdata_cpp",
"//sdk/fidl/fuchsia.io:fuchsia.io_cpp",
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/stdcompat",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//sdk/lib/vfs/cpp",
"//src/lib/fxl:fxl_cli",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/zx",
]
}
fuchsia_component("early-boot-instrumentation-provider") {
manifest = "meta/provider.cml"
deps = [ ":provider" ]
}
test("early-boot-collector-stub") {
sources = [ "collector-test.cc" ]
deps = [
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}