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

Unified Diff: webrtc/base/winping.cc

Issue 2325623002: webrtc/base: Use RTC_DCHECK() instead of assert() (Closed)
Patch Set: Created 4 years, 3 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/virtualsocketserver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/winping.cc
diff --git a/webrtc/base/winping.cc b/webrtc/base/winping.cc
index be436c3cb06147d3d6609e7b30d6f86f9b02094b..1b0fa5d82fabd88bf17346ba3f5053b902e07da4 100644
--- a/webrtc/base/winping.cc
+++ b/webrtc/base/winping.cc
@@ -10,12 +10,12 @@
#include "webrtc/base/winping.h"
-#include <assert.h>
#include <Iphlpapi.h>
#include <algorithm>
#include "webrtc/base/byteorder.h"
+#include "webrtc/base/checks.h"
#include "webrtc/base/common.h"
#include "webrtc/base/ipaddress.h"
#include "webrtc/base/logging.h"
@@ -218,7 +218,7 @@ WinPing::PingResult WinPing::Ping(IPAddress ip,
return PING_INVALID_PARAMS;
}
- assert(IsValid());
+ RTC_DCHECK(IsValid());
IP_OPTION_INFORMATION ipopt;
memset(&ipopt, 0, sizeof(ipopt));
« no previous file with comments | « webrtc/base/virtualsocketserver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698