| # 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. | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":storage-buffer-tests-pkg" ] | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| cc_test_executable("storage_buffer") { | |
| sources = [ | |
| "array_buffer_test.cc", | |
| "block_buffer_view_test.cc", | |
| "blocking_ring_buffer_test.cc", | |
| "mapped_vmo_test.cc", | |
| "owned_vmoid_test.cc", | |
| "resizeable_vmo_buffer_test.cc", | |
| "ring_buffer_test.cc", | |
| "vmo_bitmap_storage_test.cc", | |
| "vmo_buffer_test.cc", | |
| "vmoid_registry_test.cc", | |
| ] | |
| configs -= [ "//build/config/fuchsia:fdio_config" ] | |
| deps = [ | |
| "//sdk/lib/fdio", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/lib/testing/predicates", | |
| "//src/storage/lib/buffer", | |
| "//third_party/googletest:gtest", | |
| "//zircon/system/ulib/bitmap", | |
| ] | |
| testonly = true | |
| emit_tool_path = false | |
| deps += [ "//third_party/googletest:gmock" ] | |
| } | |
| renamed_binary("storage_buffer_packaged") { | |
| testonly = true | |
| source = "$root_out_dir/storage_buffer" | |
| source_deps = [ ":storage_buffer" ] | |
| dest = "test/storage_buffer" | |
| } | |
| fuchsia_component_manifest("storage-buffer-tests-manifest") { | |
| testonly = true | |
| component_name = "storage-buffer-tests" | |
| manifest = "meta/storage-buffer-tests.cml" | |
| } | |
| fuchsia_test_component("storage-buffer-tests-component") { | |
| cm_label = ":storage-buffer-tests-manifest" | |
| deps = [ ":storage_buffer_packaged" ] | |
| } | |
| fuchsia_test_package("storage-buffer-tests-pkg") { | |
| package_name = "storage-buffer-tests-gn" | |
| test_components = [ ":storage-buffer-tests-component" ] | |
| test_specs = { | |
| log_settings = { | |
| max_severity = "ERROR" | |
| } | |
| } | |
| } |