| * Copyright 2020 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 "rtc_base/network_constants.h" |
| #include "rtc_base/checks.h" |
| std::string AdapterTypeToString(AdapterType type) { |
| case ADAPTER_TYPE_UNKNOWN: |
| case ADAPTER_TYPE_ETHERNET: |
| case ADAPTER_TYPE_CELLULAR: |
| case ADAPTER_TYPE_CELLULAR_2G: |
| case ADAPTER_TYPE_CELLULAR_3G: |
| case ADAPTER_TYPE_CELLULAR_4G: |
| case ADAPTER_TYPE_CELLULAR_5G: |
| case ADAPTER_TYPE_LOOPBACK: |
| RTC_NOTREACHED() << "Invalid type " << type; |