blob: 064c9a554c134409830cb02f984394379ad188c6 [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.
##########################################
# 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/test/test_package.gni")
test("namespace") {
output_name = "namespace-test"
configs += [ "//build/unification/config:zircon-migrated" ]
sources = [ "namespace-test.cc" ]
deps = [
"//sdk/lib/fdio",
"//zircon/public/lib/fbl",
"//zircon/public/lib/zx",
"//zircon/public/lib/zxtest",
]
# TODO(47453): Fix the leaks and remove this.
deps += [ "//build/config/sanitizers:suppress-lsan.DO-NOT-USE-THIS" ]
}
unittest_package("namespace-package") {
package_name = "namespace"
deps = [ ":namespace" ]
tests = [
{
name = "namespace-test"
},
]
}