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

Unified Diff: webrtc/base/socketaddress.cc

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/base/socketadapters.cc ('k') | webrtc/base/socketpool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/socketaddress.cc
diff --git a/webrtc/base/socketaddress.cc b/webrtc/base/socketaddress.cc
index c5fd798cb11a2dc6db23e0cd2079b1036b96d0fa..c39c4dae2cc2f84ee94414221b852b22ecd5c79b 100644
--- a/webrtc/base/socketaddress.cc
+++ b/webrtc/base/socketaddress.cc
@@ -28,6 +28,7 @@
#include <sstream>
#include "webrtc/base/byteorder.h"
+#include "webrtc/base/checks.h"
#include "webrtc/base/common.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/nethelpers.h"
@@ -120,7 +121,7 @@ void SocketAddress::SetResolvedIP(const IPAddress& ip) {
}
void SocketAddress::SetPort(int port) {
- ASSERT((0 <= port) && (port < 65536));
+ RTC_DCHECK((0 <= port) && (port < 65536));
port_ = static_cast<uint16_t>(port);
}
« no previous file with comments | « webrtc/base/socketadapters.cc ('k') | webrtc/base/socketpool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698