Define cricket::DtlsTransportState in terms of webrtc::DtlsTransportState.

This is one step in getting rid of cricket::DtlsTransportState..

Bug: webrtc:12762
Change-Id: I65a6e72b587fd3dd6cdc1ce7fe201a2a9cfe936d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/218460
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33991}
This commit is contained in:
Mirko Bonadei 2021-05-11 19:54:52 +02:00 committed by WebRTC LUCI CQ
parent 917dcbab65
commit 3acdb0ac01

View File

@ -34,15 +34,17 @@ namespace cricket {
enum DtlsTransportState {
// Haven't started negotiating.
DTLS_TRANSPORT_NEW = 0,
DTLS_TRANSPORT_NEW = static_cast<int>(webrtc::DtlsTransportState::kNew),
// Have started negotiating.
DTLS_TRANSPORT_CONNECTING,
DTLS_TRANSPORT_CONNECTING =
static_cast<int>(webrtc::DtlsTransportState::kConnecting),
// Negotiated, and has a secure connection.
DTLS_TRANSPORT_CONNECTED,
DTLS_TRANSPORT_CONNECTED =
static_cast<int>(webrtc::DtlsTransportState::kConnected),
// Transport is closed.
DTLS_TRANSPORT_CLOSED,
DTLS_TRANSPORT_CLOSED = static_cast<int>(webrtc::DtlsTransportState::kClosed),
// Failed due to some error in the handshake process.
DTLS_TRANSPORT_FAILED,
DTLS_TRANSPORT_FAILED = static_cast<int>(webrtc::DtlsTransportState::kFailed),
};
webrtc::DtlsTransportState ConvertDtlsTransportState(