blob: af8b864ddbc933001c80702074ae7090492dfd57 [file] [log] [blame]
# Copyright 2018 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/package.gni")
source_set("overnet") {
sources = [
"ack_frame.h",
"ack_frame.cc",
"bandwidth.h",
"bbr.h",
"bbr.cc",
"callback.h",
"datagram_stream.h",
"datagram_stream.cc",
"fork_frame.h",
"fork_frame.cc",
"linearizer.h",
"linearizer.cc",
"internal_list.h",
"manual_constructor.h",
"node_id.h",
"node_id.cc",
"optional.h",
"packet_link.h",
"packet_link.cc",
"packet_nub.h",
"packet_protocol.h",
"packet_protocol.cc",
"receive_mode.h",
"receive_mode.cc",
"reliability_and_ordering.h",
"reliability_and_ordering.cc",
"routable_message.h",
"routable_message.cc",
"router.h",
"router.cc",
"router_endpoint.h",
"router_endpoint.cc",
"routing_table.h",
"routing_table.cc",
"seq_num.h",
"seq_num.cc",
"serialization_helpers.h",
"sink.h",
"slice.h",
"slice.cc",
"status.h",
"status.cc",
"stream_id.h",
"stream_id.cc",
"timer.h",
"varint.h",
"varint.cc",
"windowed_filter.h",
]
}
source_set("test_util") {
testonly = true
sources = [
"csv_writer.h",
"test_timer.h",
"test_timer.cc",
]
deps = [
":overnet",
]
}
group("host_tests") {
deps = [
":overnet_unittests($host_toolchain)",
]
testonly = true
}
executable("overnet_unittests") {
testonly = true
sources = [
"run_all_tests.cc",
"ack_frame_test.cc",
"bbr_test.cc",
"callback_test.cc",
"datagram_stream_test.cc",
"fork_frame_test.cc",
"internal_list_fuzzer_helpers.h",
"internal_list_test.cc",
"linearizer_fuzzer_helpers.h",
"linearizer_test.cc",
"node_id_test.cc",
"optional_test.cc",
"packet_link_test.cc",
"packet_nub_test.cc",
"packet_protocol_fuzzer_helpers.h",
"packet_protocol_test.cc",
"receive_mode_fuzzer_helpers.h",
"receive_mode_test.cc",
"routable_message_test.cc",
"router_test.cc",
"router_endpoint_2node_test.cc",
"sink_test.cc",
"slice_test.cc",
"status_test.cc",
"test_timer_test.cc",
"varint_test.cc",
]
deps = [
":overnet",
":test_util",
"//third_party/googletest:gtest",
"//third_party/googletest:gmock",
]
}
package("overnet_tests") {
testonly = true
deps = [
":overnet_unittests",
]
tests = [
{
name = "overnet_unittests"
}
]
}