blob: 3e70f5a458a70a43becd9341a67cefd786c85fa0 [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")
test("zxcrypt") {
output_name = "zxcrypt-test"
sources = [
"main.c",
"test-device.cc",
"volume.cc",
"zxcrypt.cc",
]
deps = [
"//sdk/fidl/fuchsia.device:fuchsia.device_llcpp",
"//sdk/fidl/fuchsia.hardware.ramdisk:fuchsia.hardware.ramdisk_c",
"//sdk/lib/fdio",
"//src/devices/testing/driver-integration-test-shim",
"//src/lib/ddk",
"//src/lib/digest",
"//src/lib/storage/block_client/cpp",
"//src/lib/storage/fs_management",
"//src/lib/storage/ramdevice_client/cpp",
"//src/lib/storage/vfs/cpp",
"//src/security/fcrypto",
"//src/security/kms-stateless",
"//src/security/zxcrypt:zxcrypt-client",
"//src/security/zxcrypt:zxcrypt-fdio",
"//src/storage/fvm",
"//src/storage/gpt",
"//third_party/boringssl",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fdio-caller",
"//zircon/system/ulib/fzl",
"//zircon/system/ulib/pretty",
"//zircon/system/ulib/zircon-internal",
"//zircon/system/ulib/zx",
"//zircon/system/ulib/zxtest",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
# 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" ]
}
fuchsia_unittest_package("zxcrypt-test") {
deps = [
":zxcrypt",
"//src/devices/block/drivers/core",
"//src/devices/block/drivers/ramdisk",
"//src/devices/block/drivers/zxcrypt",
"//src/devices/bus/drivers/platform",
"//src/storage/fvm/driver",
]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}