Index: webrtc/base/network.cc |
diff --git a/webrtc/base/network.cc b/webrtc/base/network.cc |
index 1eb62893226fdaa48980a7a64e81248ce8f4958a..1092a04ca2cfc8ac281b7b7c96ad562636d6b744 100644 |
--- a/webrtc/base/network.cc |
+++ b/webrtc/base/network.cc |
@@ -266,7 +266,7 @@ void NetworkManagerBase::MergeNetworkList(const NetworkList& new_networks, |
if (current_list.ips[0].family() == AF_INET) { |
stats->ipv4_network_count++; |
} else { |
- ASSERT(current_list.ips[0].family() == AF_INET6); |
+ RTC_DCHECK(current_list.ips[0].family() == AF_INET6); |
stats->ipv6_network_count++; |
} |
} |
@@ -302,7 +302,7 @@ void NetworkManagerBase::MergeNetworkList(const NetworkList& new_networks, |
if (!existing_net->active()) { |
*changed = true; |
} |
- ASSERT(net->active()); |
+ RTC_DCHECK(net->active()); |
if (existing_net != net) { |
delete net; |
} |
@@ -740,7 +740,7 @@ void BasicNetworkManager::StartUpdating() { |
} |
void BasicNetworkManager::StopUpdating() { |
- ASSERT(Thread::Current() == thread_); |
+ RTC_DCHECK(Thread::Current() == thread_); |
if (!start_count_) |
return; |
@@ -826,9 +826,9 @@ AdapterType BasicNetworkManager::GetAdapterTypeFromName( |
} |
IPAddress BasicNetworkManager::QueryDefaultLocalAddress(int family) const { |
- ASSERT(thread_ == Thread::Current()); |
- ASSERT(thread_->socketserver() != nullptr); |
- ASSERT(family == AF_INET || family == AF_INET6); |
+ RTC_DCHECK(thread_ == Thread::Current()); |
+ RTC_DCHECK(thread_->socketserver() != nullptr); |
+ RTC_DCHECK(family == AF_INET || family == AF_INET6); |
std::unique_ptr<AsyncSocket> socket( |
thread_->socketserver()->CreateAsyncSocket(family, SOCK_DGRAM)); |
@@ -855,7 +855,7 @@ void BasicNetworkManager::UpdateNetworksOnce() { |
if (!start_count_) |
return; |
- ASSERT(Thread::Current() == thread_); |
+ RTC_DCHECK(Thread::Current() == thread_); |
NetworkList list; |
if (!CreateNetworks(false, &list)) { |