mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00

This change removes the following after internal cleanup: - IceRecheckEvent::Type enum, replaced with IceSwitchReason - IceControllerEvent alias for IceRecheckEvent Bug: webrtc:14125, webrtc:14131 Change-Id: I07bfeb7fa8a9c4d4a3f940213befd6418dfd6644 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/264145 Reviewed-by: Jonas Oreland <jonaso@webrtc.org> Commit-Queue: Sameer Vijaykar <samvi@google.com> Cr-Commit-Position: refs/heads/main@{#37118}
27 lines
782 B
C++
27 lines
782 B
C++
/*
|
|
* Copyright 2019 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.
|
|
*/
|
|
|
|
#include "p2p/base/ice_controller_interface.h"
|
|
|
|
#include <string>
|
|
|
|
#include "p2p/base/ice_switch_reason.h"
|
|
|
|
namespace cricket {
|
|
|
|
std::string IceRecheckEvent::ToString() const {
|
|
std::string str = IceSwitchReasonToString(reason);
|
|
if (recheck_delay_ms) {
|
|
str += " (after delay: " + std::to_string(recheck_delay_ms) + ")";
|
|
}
|
|
return str;
|
|
}
|
|
|
|
} // namespace cricket
|