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

Unified Diff: webrtc/base/httpcommon.h

Issue 2630553003: Replace left-over ASSERTs in httpcommon.h and webrtcsession.cc. (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/api/webrtcsession.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/httpcommon.h
diff --git a/webrtc/base/httpcommon.h b/webrtc/base/httpcommon.h
index 3450b58b568fa900e2e80135e28c0cdac4684d5e..896b40e6a94edd2ac5883eb627bb31c80707ca1d 100644
--- a/webrtc/base/httpcommon.h
+++ b/webrtc/base/httpcommon.h
@@ -16,6 +16,7 @@
#include <string>
#include <vector>
#include "webrtc/base/basictypes.h"
+#include "webrtc/base/checks.h"
#include "webrtc/base/common.h"
#include "webrtc/base/stringutils.h"
#include "webrtc/base/stream.h"
@@ -254,14 +255,14 @@ public:
if (val.empty()) {
path_.assign(1, static_cast<CTYPE>('/'));
} else {
- ASSERT(val[0] == static_cast<CTYPE>('/'));
+ RTC_DCHECK(val[0] == static_cast<CTYPE>('/'));
path_ = val;
}
}
const string& path() const { return path_; }
void set_query(const string& val) {
- ASSERT(val.empty() || (val[0] == static_cast<CTYPE>('?')));
+ RTC_DCHECK(val.empty() || (val[0] == static_cast<CTYPE>('?')));
query_ = val;
}
const string& query() const { return query_; }
« no previous file with comments | « webrtc/api/webrtcsession.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698