2015-10-19 09:39:32 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright 2015 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "rtc_base/network_monitor.h"
|
2015-10-19 09:39:32 -07:00
|
|
|
|
2020-10-22 10:08:50 +02:00
|
|
|
#include "rtc_base/checks.h"
|
|
|
|
|
|
2015-10-19 09:39:32 -07:00
|
|
|
namespace rtc {
|
|
|
|
|
|
2020-09-11 17:15:30 +00:00
|
|
|
const char* NetworkPreferenceToString(NetworkPreference preference) {
|
|
|
|
|
switch (preference) {
|
|
|
|
|
case NetworkPreference::NEUTRAL:
|
|
|
|
|
return "NEUTRAL";
|
|
|
|
|
case NetworkPreference::NOT_PREFERRED:
|
|
|
|
|
return "NOT_PREFERRED";
|
|
|
|
|
}
|
2020-11-08 00:49:37 +01:00
|
|
|
RTC_CHECK_NOTREACHED();
|
2020-09-05 18:43:36 +02:00
|
|
|
}
|
2015-10-19 09:39:32 -07:00
|
|
|
|
2020-09-11 17:15:30 +00:00
|
|
|
NetworkMonitorInterface::NetworkMonitorInterface() {}
|
|
|
|
|
NetworkMonitorInterface::~NetworkMonitorInterface() {}
|
2018-04-27 14:25:37 -07:00
|
|
|
|
2015-10-19 09:39:32 -07:00
|
|
|
} // namespace rtc
|