blob: 01d59f5b48b9c081c78f37fdf3a3d05d95c49dc7 [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/cpp/sdk_source_set.gni")
import("//build/test.gni")
sdk_source_set("cpp") {
category = "internal"
public = [
"circular_deque.h",
"vector_buffer.h",
]
public_deps = [ "//zircon/third_party/ulib/safemath" ]
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
test("containers_cpp_unittests") {
testonly = true
output_name = "containers_cpp_unittests"
sources = [
"circular_deque_unittest.cc",
"vector_buffer_unittest.cc",
]
deps = [
":cpp",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
fuchsia_unittest_package("containers_cpp_tests") {
deps = [ ":containers_cpp_unittests" ]
}
group("tests") {
testonly = true
deps = [ ":containers_cpp_tests" ]
}