| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 NOTIMPLEMENTED(); | 218 NOTIMPLEMENTED(); |
| 219 } | 219 } |
| 220 | 220 |
| 221 void MockVideoSource::Stop() { | 221 void MockVideoSource::Stop() { |
| 222 NOTIMPLEMENTED(); | 222 NOTIMPLEMENTED(); |
| 223 } | 223 } |
| 224 void MockVideoSource::Restart() { | 224 void MockVideoSource::Restart() { |
| 225 NOTIMPLEMENTED(); | 225 NOTIMPLEMENTED(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 cricket::VideoRenderer* MockVideoSource::FrameInput() { | |
| 229 return &renderer_; | |
| 230 } | |
| 231 | |
| 232 void MockVideoSource::RegisterObserver(webrtc::ObserverInterface* observer) { | 228 void MockVideoSource::RegisterObserver(webrtc::ObserverInterface* observer) { |
| 233 observers_.push_back(observer); | 229 observers_.push_back(observer); |
| 234 } | 230 } |
| 235 | 231 |
| 236 void MockVideoSource::UnregisterObserver(webrtc::ObserverInterface* observer) { | 232 void MockVideoSource::UnregisterObserver(webrtc::ObserverInterface* observer) { |
| 237 for (std::vector<ObserverInterface*>::iterator it = observers_.begin(); | 233 for (std::vector<ObserverInterface*>::iterator it = observers_.begin(); |
| 238 it != observers_.end(); ++it) { | 234 it != observers_.end(); ++it) { |
| 239 if (*it == observer) { | 235 if (*it == observer) { |
| 240 observers_.erase(it); | 236 observers_.erase(it); |
| 241 break; | 237 break; |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 return WebRtcAudioCapturer::CreateCapturer(-1, device_info, constraints, NULL, | 529 return WebRtcAudioCapturer::CreateCapturer(-1, device_info, constraints, NULL, |
| 534 audio_source); | 530 audio_source); |
| 535 } | 531 } |
| 536 | 532 |
| 537 void MockPeerConnectionDependencyFactory::StartLocalAudioTrack( | 533 void MockPeerConnectionDependencyFactory::StartLocalAudioTrack( |
| 538 WebRtcLocalAudioTrack* audio_track) { | 534 WebRtcLocalAudioTrack* audio_track) { |
| 539 audio_track->Start(); | 535 audio_track->Start(); |
| 540 } | 536 } |
| 541 | 537 |
| 542 } // namespace content | 538 } // namespace content |
| OLD | NEW |