| OLD | NEW |
| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 MockVideoSource::~MockVideoSource() {} | 201 MockVideoSource::~MockVideoSource() {} |
| 202 | 202 |
| 203 void MockVideoSource::SetVideoCapturer(cricket::VideoCapturer* capturer) { | 203 void MockVideoSource::SetVideoCapturer(cricket::VideoCapturer* capturer) { |
| 204 capturer_.reset(capturer); | 204 capturer_.reset(capturer); |
| 205 } | 205 } |
| 206 | 206 |
| 207 cricket::VideoCapturer* MockVideoSource::GetVideoCapturer() { | 207 cricket::VideoCapturer* MockVideoSource::GetVideoCapturer() { |
| 208 return capturer_.get(); | 208 return capturer_.get(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 void MockVideoSource::AddSink(cricket::VideoRenderer* output) { | 211 void MockVideoSource::AddSink( |
| 212 rtc::VideoSinkInterface<cricket::VideoFrame>* output) { |
| 212 NOTIMPLEMENTED(); | 213 NOTIMPLEMENTED(); |
| 213 } | 214 } |
| 214 | 215 |
| 215 void MockVideoSource::RemoveSink(cricket::VideoRenderer* output) { | 216 void MockVideoSource::RemoveSink( |
| 217 rtc::VideoSinkInterface<cricket::VideoFrame>* output) { |
| 216 NOTIMPLEMENTED(); | 218 NOTIMPLEMENTED(); |
| 217 } | 219 } |
| 218 | 220 |
| 219 void MockVideoSource::Stop() { | 221 void MockVideoSource::Stop() { |
| 220 NOTIMPLEMENTED(); | 222 NOTIMPLEMENTED(); |
| 221 } | 223 } |
| 222 void MockVideoSource::Restart() { | 224 void MockVideoSource::Restart() { |
| 223 NOTIMPLEMENTED(); | 225 NOTIMPLEMENTED(); |
| 224 } | 226 } |
| 225 | 227 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 return WebRtcAudioCapturer::CreateCapturer(-1, device_info, constraints, NULL, | 533 return WebRtcAudioCapturer::CreateCapturer(-1, device_info, constraints, NULL, |
| 532 audio_source); | 534 audio_source); |
| 533 } | 535 } |
| 534 | 536 |
| 535 void MockPeerConnectionDependencyFactory::StartLocalAudioTrack( | 537 void MockPeerConnectionDependencyFactory::StartLocalAudioTrack( |
| 536 WebRtcLocalAudioTrack* audio_track) { | 538 WebRtcLocalAudioTrack* audio_track) { |
| 537 audio_track->Start(); | 539 audio_track->Start(); |
| 538 } | 540 } |
| 539 | 541 |
| 540 } // namespace content | 542 } // namespace content |
| OLD | NEW |