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

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

Issue 583113002: Abstract class WebTestDelegate to chromium c++ style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test_runner Created 6 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
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 fde085e6508bdfa95f809fccdb65da946871cea2..bd3dd6175f794e52e96719595a28dfa30d2559c4 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
@@ -5,7 +5,7 @@
#include "content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.h"
#include "base/logging.h"
-#include "content/shell/renderer/test_runner/WebTestDelegate.h"
+#include "content/shell/renderer/test_runner/web_test_delegate.h"
#include "third_party/WebKit/public/platform/WebRTCDataChannelHandlerClient.h"
using namespace blink;
@@ -46,7 +46,7 @@ void MockWebRTCDataChannelHandler::setClient(
WebRTCDataChannelHandlerClient* client) {
client_ = client;
if (client_)
- delegate_->postTask(new DataChannelReadyStateTask(
+ delegate_->PostTask(new DataChannelReadyStateTask(
this, client_, WebRTCDataChannelHandlerClient::ReadyStateOpen));
}
@@ -100,7 +100,7 @@ bool MockWebRTCDataChannelHandler::sendRawData(const char* data, size_t size) {
void MockWebRTCDataChannelHandler::close() {
DCHECK(client_);
- delegate_->postTask(new DataChannelReadyStateTask(
+ delegate_->PostTask(new DataChannelReadyStateTask(
this, client_, WebRTCDataChannelHandlerClient::ReadyStateClosed));
}

Powered by Google App Engine
This is Rietveld 408576698