|  | # 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/test.gni") | 
|  | import("//build/testing/bootfs_test.gni") | 
|  |  | 
|  | test("kernel-unittests") { | 
|  | output_name = "kernel-unittests-test" | 
|  | sources = [ "kernel-unittests.cc" ] | 
|  | deps = [ | 
|  | "//sdk/fidl/fuchsia.kernel:fuchsia.kernel_c", | 
|  | "//sdk/lib/fdio", | 
|  | "//zircon/system/ulib/zx", | 
|  | "//zircon/system/ulib/zxtest", | 
|  | ] | 
|  |  | 
|  | # TODO(fxbug.dev/95833): This target uses the deprecated C bindings. | 
|  | # Consider switching to the C++ bindings. See linked bug for details. | 
|  | configs += [ "//build/c:fidl-deprecated-c-bindings" ] | 
|  | } | 
|  |  | 
|  | bootfs_test("kernel-unittests-bootfs-test") { | 
|  | name = "kernel-unittests-test" | 
|  | deps = [ ":kernel-unittests" ] | 
|  | } |