| # Copyright 2022 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/test.gni") |
| |
| source_set("channel_util") { |
| testonly = true |
| sources = [ |
| "bytes.h", |
| "channel.cc", |
| "channel.h", |
| ] |
| public_deps = [ "//sdk/lib/fidl/cpp" ] |
| deps = [ "//sdk/lib/fidl" ] |
| } |
| |
| test("channel_util_test") { |
| output_name = "channel_util_test" |
| sources = [ |
| "bytes.h", |
| "bytes_tests.cc", |
| ] |
| deps = [ |
| "//sdk/lib/fidl/cpp:cpp_base", |
| "//src/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gtest", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":channel_util_test($host_toolchain)" ] |
| } |