Replace left-over ASSERTs in httpcommon.h and webrtcsession.cc.
BUG=webrtc:6424 Review-Url: https://codereview.webrtc.org/2630553003 Cr-Commit-Position: refs/heads/master@{#16055}
This commit is contained in:
parent
363a29157a
commit
a9dd4a1b11
@ -2374,7 +2374,7 @@ void WebRtcSession::DestroyTransport(const std::string& transport_name,
|
||||
}
|
||||
|
||||
void WebRtcSession::DestroyRtcpTransport_n(const std::string& transport_name) {
|
||||
ASSERT(network_thread()->IsCurrent());
|
||||
RTC_DCHECK(network_thread()->IsCurrent());
|
||||
transport_controller_->DestroyTransportChannel_n(
|
||||
transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTCP);
|
||||
}
|
||||
|
||||
@ -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_; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user