blob: 9fb3b055f9207dfc89c9d03949fcaf22dd05a75b [file] [log] [blame]
Jonas Oreland09c452e2019-11-20 08:01:021/*
2 * Copyright 2019 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#include "p2p/base/ice_controller_interface.h"
12
13#include <string>
14
Sameer Vijaykar3382c1c2022-06-02 09:29:0915#include "p2p/base/ice_switch_reason.h"
16
Jonas Oreland09c452e2019-11-20 08:01:0217namespace cricket {
18
Sameer Vijaykar2a1accd2022-06-03 09:39:3919std::string IceRecheckEvent::ToString() const {
Sameer Vijaykar3382c1c2022-06-02 09:29:0920 std::string str = IceSwitchReasonToString(reason);
Sameer Vijaykar9453e5f2022-05-31 11:38:2021 if (recheck_delay_ms) {
Sameer Vijaykar3382c1c2022-06-02 09:29:0922 str += " (after delay: " + std::to_string(recheck_delay_ms) + ")";
Sameer Vijaykar9453e5f2022-05-31 11:38:2023 }
Sameer Vijaykar3382c1c2022-06-02 09:29:0924 return str;
25}
26
Jonas Oreland09c452e2019-11-20 08:01:0227} // namespace cricket