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

Side by Side Diff: content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler.cc

Issue 331143003: Cancel tasks in PeerConnectionHandler mock at stop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler .h" 5 #include "content/shell/renderer/test_runner/mock_webrtc_peer_connection_handler .h"
6 6
7 #include "content/shell/renderer/test_runner/TestInterfaces.h" 7 #include "content/shell/renderer/test_runner/TestInterfaces.h"
8 #include "content/shell/renderer/test_runner/WebTestDelegate.h" 8 #include "content/shell/renderer/test_runner/WebTestDelegate.h"
9 #include "content/shell/renderer/test_runner/mock_constraints.h" 9 #include "content/shell/renderer/test_runner/mock_constraints.h"
10 #include "content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.h" 10 #include "content/shell/renderer/test_runner/mock_webrtc_data_channel_handler.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 return new MockWebRTCDataChannelHandler(label, init, interfaces_->delegate()); 298 return new MockWebRTCDataChannelHandler(label, init, interfaces_->delegate());
299 } 299 }
300 300
301 WebRTCDTMFSenderHandler* MockWebRTCPeerConnectionHandler::createDTMFSender( 301 WebRTCDTMFSenderHandler* MockWebRTCPeerConnectionHandler::createDTMFSender(
302 const WebMediaStreamTrack& track) { 302 const WebMediaStreamTrack& track) {
303 return new MockWebRTCDTMFSenderHandler(track, interfaces_->delegate()); 303 return new MockWebRTCDTMFSenderHandler(track, interfaces_->delegate());
304 } 304 }
305 305
306 void MockWebRTCPeerConnectionHandler::stop() { 306 void MockWebRTCPeerConnectionHandler::stop() {
307 stopped_ = true; 307 stopped_ = true;
308 task_list_.revokeAll();
308 } 309 }
309 310
310 } // namespace content 311 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698