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

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

Issue 396193005: Converts RTCOfferOptions to constriants in the glue code for createOffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/renderer/media/mock_peer_connection_impl.h" 9 #include "content/renderer/media/mock_peer_connection_impl.h"
10 #include "content/renderer/media/webaudio_capturer_source.h" 10 #include "content/renderer/media/webaudio_capturer_source.h"
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 432
433 MockPeerConnectionDependencyFactory::MockPeerConnectionDependencyFactory() 433 MockPeerConnectionDependencyFactory::MockPeerConnectionDependencyFactory()
434 : PeerConnectionDependencyFactory(NULL), 434 : PeerConnectionDependencyFactory(NULL),
435 fail_to_create_next_audio_capturer_(false) { 435 fail_to_create_next_audio_capturer_(false) {
436 } 436 }
437 437
438 MockPeerConnectionDependencyFactory::~MockPeerConnectionDependencyFactory() {} 438 MockPeerConnectionDependencyFactory::~MockPeerConnectionDependencyFactory() {}
439 439
440 scoped_refptr<webrtc::PeerConnectionInterface> 440 scoped_refptr<webrtc::PeerConnectionInterface>
441 MockPeerConnectionDependencyFactory::CreatePeerConnection( 441 MockPeerConnectionDependencyFactory::CreatePeerConnection(
442 const webrtc::PeerConnectionInterface::IceServers& ice_servers, 442 const webrtc::PeerConnectionInterface::RTCConfiguration& config,
443 const webrtc::MediaConstraintsInterface* constraints, 443 const webrtc::MediaConstraintsInterface* constraints,
444 blink::WebFrame* frame, 444 blink::WebFrame* frame,
445 webrtc::PeerConnectionObserver* observer) { 445 webrtc::PeerConnectionObserver* observer) {
446 return new talk_base::RefCountedObject<MockPeerConnectionImpl>(this); 446 return new talk_base::RefCountedObject<MockPeerConnectionImpl>(this);
447 } 447 }
448 448
449 scoped_refptr<webrtc::AudioSourceInterface> 449 scoped_refptr<webrtc::AudioSourceInterface>
450 MockPeerConnectionDependencyFactory::CreateLocalAudioSource( 450 MockPeerConnectionDependencyFactory::CreateLocalAudioSource(
451 const webrtc::MediaConstraintsInterface* constraints) { 451 const webrtc::MediaConstraintsInterface* constraints) {
452 last_audio_source_ = 452 last_audio_source_ =
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 return WebRtcAudioCapturer::CreateCapturer(-1, device_info, 532 return WebRtcAudioCapturer::CreateCapturer(-1, device_info,
533 constraints, NULL, audio_source); 533 constraints, NULL, audio_source);
534 } 534 }
535 535
536 void MockPeerConnectionDependencyFactory::StartLocalAudioTrack( 536 void MockPeerConnectionDependencyFactory::StartLocalAudioTrack(
537 WebRtcLocalAudioTrack* audio_track) { 537 WebRtcLocalAudioTrack* audio_track) {
538 audio_track->Start(); 538 audio_track->Start();
539 } 539 }
540 540
541 } // namespace content 541 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698