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

Unified Diff: content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc

Issue 316093005: test_runner: Migrate MockWebRTCPeerConnectionHandler to Chromium C++ style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 6 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
Index: content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc
diff --git a/content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc b/content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc
index 4c02b2c0a19e0262f41542a09f24a88ed6cfc4f2..f7adf77a0704e29200bff3b4de84ec36a374d172 100644
--- a/content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc
+++ b/content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.cc
@@ -4,8 +4,7 @@
#include "content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.h"
-#include <assert.h>
-
+#include "base/logging.h"
#include "content/shell/renderer/test_runner/WebTestDelegate.h"
#include "third_party/WebKit/public/platform/WebRTCDataChannelHandlerClient.h"
@@ -88,19 +87,19 @@ unsigned long MockWebRTCDataChannelHandler::bufferedAmount() {
}
bool MockWebRTCDataChannelHandler::sendStringData(const WebString& data) {
- assert(client_);
+ DCHECK(client_);
client_->didReceiveStringData(data);
return true;
}
bool MockWebRTCDataChannelHandler::sendRawData(const char* data, size_t size) {
- assert(client_);
+ DCHECK(client_);
client_->didReceiveRawData(data, size);
return true;
}
void MockWebRTCDataChannelHandler::close() {
- assert(client_);
+ DCHECK(client_);
delegate_->postTask(new DataChannelReadyStateTask(
this, client_, WebRTCDataChannelHandlerClient::ReadyStateClosed));
}

Powered by Google App Engine
This is Rietveld 408576698