Index: content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc |
diff --git a/content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc b/content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc |
index 12601f672a1b7ae19c25cc8f8e04cdd5b03d80c5..341c95289b4b2802337be8b2e9d79cf14b38f2b3 100644 |
--- a/content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc |
+++ b/content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc |
@@ -4,11 +4,11 @@ |
#include "content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.h" |
-#include "content/shell/renderer/test_runner/WebTestDelegate.h" |
#include "content/shell/renderer/test_runner/mock_constraints.h" |
#include "content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.h" |
#include "content/shell/renderer/test_runner/mock_webrtc_dtmf_sender_handler.h" |
#include "content/shell/renderer/test_runner/test_interfaces.h" |
+#include "content/shell/renderer/test_runner/web_test_delegate.h" |
#include "third_party/WebKit/public/platform/WebMediaConstraints.h" |
#include "third_party/WebKit/public/platform/WebMediaStream.h" |
#include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
@@ -160,7 +160,7 @@ bool MockWebRTCPeerConnectionHandler::initialize( |
const WebRTCConfiguration& configuration, |
const WebMediaConstraints& constraints) { |
if (MockConstraints::VerifyConstraints(constraints)) { |
- interfaces_->GetDelegate()->postTask(new RTCPeerConnectionStateTask( |
+ interfaces_->GetDelegate()->PostTask(new RTCPeerConnectionStateTask( |
this, |
client_, |
WebRTCPeerConnectionHandlerClient::ICEConnectionStateCompleted, |
@@ -179,18 +179,18 @@ void MockWebRTCPeerConnectionHandler::createOffer( |
should_succeed == "true") { |
WebRTCSessionDescription session_description; |
session_description.initialize("offer", "local"); |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCSessionDescriptionRequestSuccededTask( |
this, request, session_description)); |
} else |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCSessionDescriptionRequestFailedTask(this, request)); |
} |
void MockWebRTCPeerConnectionHandler::createOffer( |
const WebRTCSessionDescriptionRequest& request, |
const blink::WebRTCOfferOptions& options) { |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCSessionDescriptionRequestFailedTask(this, request)); |
} |
@@ -200,11 +200,11 @@ void MockWebRTCPeerConnectionHandler::createAnswer( |
if (!remote_description_.isNull()) { |
WebRTCSessionDescription session_description; |
session_description.initialize("answer", "local"); |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCSessionDescriptionRequestSuccededTask( |
this, request, session_description)); |
} else |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCSessionDescriptionRequestFailedTask(this, request)); |
} |
@@ -213,10 +213,10 @@ void MockWebRTCPeerConnectionHandler::setLocalDescription( |
const WebRTCSessionDescription& local_description) { |
if (!local_description.isNull() && local_description.sdp() == "local") { |
local_description_ = local_description; |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCVoidRequestTask(this, request, true)); |
} else |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCVoidRequestTask(this, request, false)); |
} |
@@ -225,10 +225,10 @@ void MockWebRTCPeerConnectionHandler::setRemoteDescription( |
const WebRTCSessionDescription& remote_description) { |
if (!remote_description.isNull() && remote_description.sdp() == "remote") { |
remote_description_ = remote_description; |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCVoidRequestTask(this, request, true)); |
} else |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCVoidRequestTask(this, request, false)); |
} |
@@ -255,7 +255,7 @@ bool MockWebRTCPeerConnectionHandler::addICECandidate( |
bool MockWebRTCPeerConnectionHandler::addICECandidate( |
const WebRTCVoidRequest& request, |
const WebRTCICECandidate& ice_candidate) { |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCVoidRequestTask(this, request, true)); |
return true; |
} |
@@ -278,7 +278,7 @@ void MockWebRTCPeerConnectionHandler::getStats( |
const WebRTCStatsRequest& request) { |
WebRTCStatsResponse response = request.createResponse(); |
double current_date = |
- interfaces_->GetDelegate()->getCurrentTimeInMillisecond(); |
+ interfaces_->GetDelegate()->GetCurrentTimeInMillisecond(); |
if (request.hasSelector()) { |
// FIXME: There is no check that the fetched values are valid. |
size_t report_index = |
@@ -293,14 +293,14 @@ void MockWebRTCPeerConnectionHandler::getStats( |
response.addStatistic(report_index, "type", "video"); |
} |
} |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RTCStatsRequestSucceededTask(this, request, response)); |
} |
WebRTCDataChannelHandler* MockWebRTCPeerConnectionHandler::createDataChannel( |
const WebString& label, |
const blink::WebRTCDataChannelInit& init) { |
- interfaces_->GetDelegate()->postTask( |
+ interfaces_->GetDelegate()->PostTask( |
new RemoteDataChannelTask(this, client_, interfaces_->GetDelegate())); |
return new MockWebRTCDataChannelHandler( |