2021-03-25 13:11:03 +01:00
|
|
|
# Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
rtc_test("dcsctp_unittests") {
|
|
|
|
|
testonly = true
|
|
|
|
|
deps = [
|
|
|
|
|
"../../test:test_main",
|
2021-03-30 10:03:51 +02:00
|
|
|
"common:dcsctp_common_unittests",
|
2021-04-11 19:56:19 +02:00
|
|
|
"fuzzers:dcsctp_fuzzers_unittests",
|
2021-03-25 13:11:03 +01:00
|
|
|
"packet:dcsctp_packet_unittests",
|
2021-04-01 08:23:54 +02:00
|
|
|
"public:dcsctp_public_unittests",
|
2021-04-01 23:36:03 +02:00
|
|
|
"rx:dcsctp_rx_unittests",
|
2021-04-06 19:55:51 +02:00
|
|
|
"socket:dcsctp_socket_unittests",
|
2021-03-30 22:54:41 +02:00
|
|
|
"timer:dcsctp_timer_unittests",
|
dcsctp: Add Send Queue
When the client asks for a message to be sent, it's put in the
SendQueue, which is available even when the socket is not yet connected.
When the socket is connected, those messages will be sent on the wire,
possibly fragmented if the message is large enough to not fit inside a
single packet. When the message has been fully sent, it's removed from
the send queue (but it will be in the RetransmissionQueue - which is
added in a follow-up change, until the message has been ACKed).
The Send Queue is a FIFO queue in this iteration, and in SCTP, that's
called a "First Come, First Served" queue, or FCFS. In follow-up work,
the queue and the actual scheduling algorithm which decides which
message that is sent, when there are messages in multiple streams, will
likely be decoupled. But in this iteration, they're in the same class.
Bug: webrtc:12614
Change-Id: Iec1183e625499a21e402e4f2a5ebcf989bc5c3ec
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/214044
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Victor Boivie <boivie@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33798}
2021-04-04 00:15:47 +02:00
|
|
|
"tx:dcsctp_tx_unittests",
|
2021-03-25 13:11:03 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|