Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1608)

Unified Diff: webrtc/p2p/client/basicportallocator.cc

Issue 2625003003: Replace ASSERT(false) by RTC_NOTREACHED(). (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/transportcontroller.cc ('k') | webrtc/pc/mediasession.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/client/basicportallocator.cc
diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc
index b7092d43b7e404b0687815dda876391068992205..0e8dc47bd4bca3114e40012bf26c7099e7994cb4 100644
--- a/webrtc/p2p/client/basicportallocator.cc
+++ b/webrtc/p2p/client/basicportallocator.cc
@@ -455,7 +455,7 @@ void BasicPortAllocatorSession::OnMessage(rtc::Message *message) {
OnConfigStop();
break;
default:
- ASSERT(false);
+ RTC_NOTREACHED();
}
}
@@ -975,7 +975,7 @@ void BasicPortAllocatorSession::OnPortDestroyed(
return;
}
}
- ASSERT(false);
+ RTC_NOTREACHED();
}
BasicPortAllocatorSession::PortData* BasicPortAllocatorSession::FindPort(
@@ -1156,7 +1156,7 @@ void AllocationSequence::OnMessage(rtc::Message* msg) {
break;
default:
- ASSERT(false);
+ RTC_NOTREACHED();
}
if (state() == kRunning) {
@@ -1305,7 +1305,7 @@ void AllocationSequence::CreateRelayPorts() {
} else if (relay.type == RELAY_TURN) {
CreateTurnPort(relay);
} else {
- ASSERT(false);
+ RTC_NOTREACHED();
}
}
}
@@ -1448,7 +1448,7 @@ void AllocationSequence::OnPortDestroyed(PortInterface* port) {
turn_ports_.erase(it);
} else {
LOG(LS_ERROR) << "Unexpected OnPortDestroyed for nonexistent port.";
- ASSERT(false);
+ RTC_NOTREACHED();
}
}
« no previous file with comments | « webrtc/p2p/base/transportcontroller.cc ('k') | webrtc/pc/mediasession.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698