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

Side by Side Diff: content/renderer/media/webrtc/mock_peer_connection_dependency_factory.cc

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 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
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/renderer/media/webrtc/mock_peer_connection_dependency_factory. h" 5 #include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory. h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 signaling_thread_("MockPCFactory WebRtc Signaling Thread") { 322 signaling_thread_("MockPCFactory WebRtc Signaling Thread") {
323 EnsureWebRtcAudioDeviceImpl(); 323 EnsureWebRtcAudioDeviceImpl();
324 CHECK(signaling_thread_.Start()); 324 CHECK(signaling_thread_.Start());
325 } 325 }
326 326
327 MockPeerConnectionDependencyFactory::~MockPeerConnectionDependencyFactory() {} 327 MockPeerConnectionDependencyFactory::~MockPeerConnectionDependencyFactory() {}
328 328
329 scoped_refptr<webrtc::PeerConnectionInterface> 329 scoped_refptr<webrtc::PeerConnectionInterface>
330 MockPeerConnectionDependencyFactory::CreatePeerConnection( 330 MockPeerConnectionDependencyFactory::CreatePeerConnection(
331 const webrtc::PeerConnectionInterface::RTCConfiguration& config, 331 const webrtc::PeerConnectionInterface::RTCConfiguration& config,
332 blink::WebFrame* frame, 332 blink::WebLocalFrame* frame,
333 webrtc::PeerConnectionObserver* observer) { 333 webrtc::PeerConnectionObserver* observer) {
334 return new rtc::RefCountedObject<MockPeerConnectionImpl>(this, observer); 334 return new rtc::RefCountedObject<MockPeerConnectionImpl>(this, observer);
335 } 335 }
336 336
337 scoped_refptr<webrtc::VideoTrackSourceInterface> 337 scoped_refptr<webrtc::VideoTrackSourceInterface>
338 MockPeerConnectionDependencyFactory::CreateVideoTrackSourceProxy( 338 MockPeerConnectionDependencyFactory::CreateVideoTrackSourceProxy(
339 webrtc::VideoTrackSourceInterface* source) { 339 webrtc::VideoTrackSourceInterface* source) {
340 return nullptr; 340 return nullptr;
341 } 341 }
342 scoped_refptr<webrtc::MediaStreamInterface> 342 scoped_refptr<webrtc::MediaStreamInterface>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 MockPeerConnectionDependencyFactory::GetWebRtcSignalingThread() const { 377 MockPeerConnectionDependencyFactory::GetWebRtcSignalingThread() const {
378 return signaling_thread_.task_runner(); 378 return signaling_thread_.task_runner();
379 } 379 }
380 380
381 void MockPeerConnectionDependencyFactory::SetFailToCreateSessionDescription( 381 void MockPeerConnectionDependencyFactory::SetFailToCreateSessionDescription(
382 bool fail) { 382 bool fail) {
383 fail_to_create_session_description_ = fail; 383 fail_to_create_session_description_ = fail;
384 } 384 }
385 385
386 } // namespace content 386 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698