blob: c65b2f86720c7b28495e6cb004f16b1337cc5e3b [file] [log] [blame]
# 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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxb/36139. #
##########################################
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
import("//build/test.gni")
import("//build/unification/images/migrated_manifest.gni")
group("test") {
testonly = true
deps = [ ":storage_buffer_test_support" ]
}
test("storage_buffer_test_support") {
# Dependent manifests unfortunately cannot be marked as `testonly`.
# TODO(44278): Remove when converting this file to proper GN build idioms.
if (is_fuchsia) {
testonly = false
}
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
if (is_fuchsia) {
fdio_config = [ "//build/config/fuchsia:fdio_config" ]
if (configs + fdio_config - fdio_config != configs) {
configs -= fdio_config
}
}
output_name = "storage-buffer-test-support-test"
test_group = "storage"
sources = [ "array_buffer_test.cc" ]
deps = [
"//zircon/public/lib/fdio",
"//zircon/public/lib/test_support",
"//zircon/public/lib/zxtest",
]
}
migrated_manifest("storage_buffer_test_support-manifest") {
deps = [ ":storage_buffer_test_support" ]
}