This is merely a container of components that have their lifetime bound to when the socket is connected. If the socket gets disconnected or restarted, this object (and everything it holds) will be released. Bug: webrtc:12614 Change-Id: Ibd75760b7bf7efe9c26c4eb7cee62de8bba5410c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/214340 Commit-Queue: Victor Boivie <boivie@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33869}
117 lines
2.7 KiB
Plaintext
117 lines
2.7 KiB
Plaintext
# 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")
|
|
|
|
rtc_source_set("context") {
|
|
sources = [ "context.h" ]
|
|
deps = [
|
|
"../common:internal_types",
|
|
"../packet:sctp_packet",
|
|
"../public:socket",
|
|
"../public:types",
|
|
]
|
|
}
|
|
|
|
rtc_library("heartbeat_handler") {
|
|
deps = [
|
|
":context",
|
|
"../../../api:array_view",
|
|
"../../../rtc_base",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../public:types",
|
|
]
|
|
sources = [
|
|
"heartbeat_handler.cc",
|
|
"heartbeat_handler.h",
|
|
]
|
|
}
|
|
|
|
rtc_library("stream_reset_handler") {
|
|
deps = [
|
|
":context",
|
|
"../../../api:array_view",
|
|
"../../../rtc_base",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../public:types",
|
|
]
|
|
sources = [
|
|
"stream_reset_handler.cc",
|
|
"stream_reset_handler.h",
|
|
]
|
|
}
|
|
|
|
rtc_library("transmission_control_block") {
|
|
deps = [
|
|
":context",
|
|
":heartbeat_handler",
|
|
":stream_reset_handler",
|
|
"../../../api:array_view",
|
|
"../../../rtc_base",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../common:sequence_numbers",
|
|
"../packet:sctp_packet",
|
|
"../public:socket",
|
|
"../public:types",
|
|
"../rx:data_tracker",
|
|
"../rx:reassembly_queue",
|
|
"../timer:timer",
|
|
"../tx:retransmission_error_counter",
|
|
"../tx:retransmission_queue",
|
|
"../tx:retransmission_timeout",
|
|
"../tx:send_queue",
|
|
]
|
|
sources = [
|
|
"capabilities.h",
|
|
"transmission_control_block.cc",
|
|
"transmission_control_block.h",
|
|
]
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("mock_callbacks") {
|
|
testonly = true
|
|
sources = [ "mock_dcsctp_socket_callbacks.h" ]
|
|
deps = [ "../public:socket" ]
|
|
}
|
|
|
|
rtc_source_set("mock_context") {
|
|
testonly = true
|
|
sources = [ "mock_context.h" ]
|
|
deps = [
|
|
":context",
|
|
":mock_callbacks",
|
|
"../common:internal_types",
|
|
"../packet:sctp_packet",
|
|
"../public:socket",
|
|
"../public:types",
|
|
]
|
|
}
|
|
|
|
rtc_library("dcsctp_socket_unittests") {
|
|
testonly = true
|
|
|
|
deps = [
|
|
":heartbeat_handler",
|
|
":stream_reset_handler",
|
|
"../../../api:array_view",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:gunit_helpers",
|
|
"../../../rtc_base:rtc_base_approved",
|
|
"../../../test:test_support",
|
|
]
|
|
sources = [
|
|
"heartbeat_handler_test.cc",
|
|
"stream_reset_handler_test.cc",
|
|
]
|
|
}
|
|
}
|