blob: 3a4dcce9f86e9d4836e60e667c25262cc61d7059 [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.
import("//build/cpp/sdk_source_set.gni")
import("//build/test.gni")
import("//build/test/test_package.gni")
group("streams") {
testonly = true
deps = [ ":streams-encoder" ]
}
group("tests") {
testonly = true
deps = [ ":streams-cpp-tests" ]
}
sdk_source_set("streams-encoder") {
category = "internal"
sdk_name = "streams_encoder"
sources = [
"encode.cc",
"encode.h",
]
public_deps = [
"//sdk/fidl/fuchsia.diagnostics.stream:fuchsia.diagnostics.stream",
"//zircon/public/lib/zx",
]
deps = []
}
test("streams-encoder-test") {
testonly = true
sources = [ "streams_encoder_unittest.cc" ]
deps = [
":streams-encoder",
"//third_party/googletest:gtest",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
test_package("streams-cpp-tests") {
tests = [
{
name = "streams-encoder-test"
},
]
deps = [ ":streams-encoder-test" ]
}