blob: 0cae402b995f16e9d3233fe73fc0dca3e609744d [file] [log] [blame] [edit]
# 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 = [
"test-device.cc",
"volume.cc",
"zxcrypt.cc",
]
deps = [
"//sdk/fidl/fuchsia.device:fuchsia.device_cpp_wire",
"//sdk/fidl/fuchsia.hardware.block.volume:fuchsia.hardware.block.volume_cpp_wire",
"//sdk/fidl/fuchsia.hardware.ramdisk:fuchsia.hardware.ramdisk_cpp_wire",
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/fdio",
"//sdk/lib/syslog/cpp",
"//src/devices/testing/driver-integration-test-shim",
"//src/lib/ddk",
"//src/lib/digest",
"//src/security/lib/fcrypto",
"//src/security/lib/kms-stateless",
"//src/security/lib/zxcrypt:zxcrypt-client",
"//src/security/lib/zxcrypt:zxcrypt-fdio",
"//src/storage/fvm",
"//src/storage/gpt",
"//src/storage/lib/block_client/cpp",
"//src/storage/lib/fs_management",
"//src/storage/lib/ramdevice_client/cpp",
"//src/storage/lib/vfs/cpp",
"//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",
]
}
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"
}
}
}