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

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

Issue 2620303003: Replace ASSERT by RTC_DCHECK in all non-test code. (Closed)
Patch Set: Address final nits. 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/turnserver.cc ('k') | webrtc/p2p/client/basicportallocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/client/basicportallocator.h
diff --git a/webrtc/p2p/client/basicportallocator.h b/webrtc/p2p/client/basicportallocator.h
index d705fc528e0da50b34a3e597da4ff31f96e5bcf7..cd178f965e6617151abea8879d7153b5f257c215 100644
--- a/webrtc/p2p/client/basicportallocator.h
+++ b/webrtc/p2p/client/basicportallocator.h
@@ -16,6 +16,7 @@
#include <vector>
#include "webrtc/p2p/base/portallocator.h"
+#include "webrtc/base/checks.h"
#include "webrtc/base/messagequeue.h"
#include "webrtc/base/network.h"
#include "webrtc/base/thread.h"
@@ -154,7 +155,7 @@ class BasicPortAllocatorSession : public PortAllocatorSession,
}
void set_has_pairable_candidate(bool has_pairable_candidate) {
if (has_pairable_candidate) {
- ASSERT(state_ == STATE_INPROGRESS);
+ RTC_DCHECK(state_ == STATE_INPROGRESS);
}
has_pairable_candidate_ = has_pairable_candidate;
}
@@ -162,7 +163,7 @@ class BasicPortAllocatorSession : public PortAllocatorSession,
state_ = STATE_COMPLETE;
}
void set_error() {
- ASSERT(state_ == STATE_INPROGRESS);
+ RTC_DCHECK(state_ == STATE_INPROGRESS);
state_ = STATE_ERROR;
}
« no previous file with comments | « webrtc/p2p/base/turnserver.cc ('k') | webrtc/p2p/client/basicportallocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698