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

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

Issue 566833002: Update WebTask in chromium c++ style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolved build error 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_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 52236d9a95222dce0ab94a67cd52dbf8686f29ac..12601f672a1b7ae19c25cc8f8e04cdd5b03d80c5 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
@@ -34,7 +34,7 @@ class RTCSessionDescriptionRequestSuccededTask
request_(request),
result_(result) {}
- virtual void runIfValid() OVERRIDE { request_.requestSucceeded(result_); }
+ virtual void RunIfValid() OVERRIDE { request_.requestSucceeded(result_); }
private:
WebRTCSessionDescriptionRequest request_;
@@ -50,7 +50,7 @@ class RTCSessionDescriptionRequestFailedTask
: WebMethodTask<MockWebRTCPeerConnectionHandler>(object),
request_(request) {}
- virtual void runIfValid() OVERRIDE { request_.requestFailed("TEST_ERROR"); }
+ virtual void RunIfValid() OVERRIDE { request_.requestFailed("TEST_ERROR"); }
private:
WebRTCSessionDescriptionRequest request_;
@@ -66,7 +66,7 @@ class RTCStatsRequestSucceededTask
request_(request),
response_(response) {}
- virtual void runIfValid() OVERRIDE { request_.requestSucceeded(response_); }
+ virtual void RunIfValid() OVERRIDE { request_.requestSucceeded(response_); }
private:
blink::WebRTCStatsRequest request_;
@@ -83,7 +83,7 @@ class RTCVoidRequestTask
request_(request),
succeeded_(succeeded) {}
- virtual void runIfValid() OVERRIDE {
+ virtual void RunIfValid() OVERRIDE {
if (succeeded_)
request_.requestSucceeded();
else
@@ -108,7 +108,7 @@ class RTCPeerConnectionStateTask
connection_state_(connection_state),
gathering_state_(gathering_state) {}
- virtual void runIfValid() OVERRIDE {
+ virtual void RunIfValid() OVERRIDE {
client_->didChangeICEGatheringState(gathering_state_);
client_->didChangeICEConnectionState(connection_state_);
}
@@ -129,7 +129,7 @@ class RemoteDataChannelTask
client_(client),
delegate_(delegate) {}
- virtual void runIfValid() OVERRIDE {
+ virtual void RunIfValid() OVERRIDE {
WebRTCDataChannelInit init;
WebRTCDataChannelHandler* remote_data_channel =
new MockWebRTCDataChannelHandler(
@@ -314,7 +314,7 @@ WebRTCDTMFSenderHandler* MockWebRTCPeerConnectionHandler::createDTMFSender(
void MockWebRTCPeerConnectionHandler::stop() {
stopped_ = true;
- task_list_.revokeAll();
+ task_list_.RevokeAll();
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698