| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 199       const std::string& type, | 199       const std::string& type, | 
| 200       const std::string& sdp, | 200       const std::string& sdp, | 
| 201       webrtc::SdpParseError* error) OVERRIDE; | 201       webrtc::SdpParseError* error) OVERRIDE; | 
| 202   virtual webrtc::IceCandidateInterface* CreateIceCandidate( | 202   virtual webrtc::IceCandidateInterface* CreateIceCandidate( | 
| 203       const std::string& sdp_mid, | 203       const std::string& sdp_mid, | 
| 204       int sdp_mline_index, | 204       int sdp_mline_index, | 
| 205       const std::string& sdp) OVERRIDE; | 205       const std::string& sdp) OVERRIDE; | 
| 206 | 206 | 
| 207   virtual scoped_refptr<WebRtcAudioCapturer> CreateAudioCapturer( | 207   virtual scoped_refptr<WebRtcAudioCapturer> CreateAudioCapturer( | 
| 208       int render_view_id, const StreamDeviceInfo& device_info, | 208       int render_view_id, const StreamDeviceInfo& device_info, | 
| 209       const blink::WebMediaConstraints& constraints) OVERRIDE; | 209       const blink::WebMediaConstraints& constraints, | 
|  | 210       MediaStreamAudioSource* audio_source) OVERRIDE; | 
| 210 | 211 | 
| 211   virtual void StartLocalAudioTrack( | 212   virtual void StartLocalAudioTrack( | 
| 212       WebRtcLocalAudioTrack* audio_track) OVERRIDE; | 213       WebRtcLocalAudioTrack* audio_track) OVERRIDE; | 
| 213 | 214 | 
| 214   MockAudioSource* last_audio_source() { return last_audio_source_.get(); } | 215   MockAudioSource* last_audio_source() { return last_audio_source_.get(); } | 
| 215   MockVideoSource* last_video_source() { return last_video_source_.get(); } | 216   MockVideoSource* last_video_source() { return last_video_source_.get(); } | 
| 216 | 217 | 
| 217  private: | 218  private: | 
| 218   scoped_refptr <MockAudioSource> last_audio_source_; | 219   scoped_refptr <MockAudioSource> last_audio_source_; | 
| 219   scoped_refptr <MockVideoSource> last_video_source_; | 220   scoped_refptr <MockVideoSource> last_video_source_; | 
| 220 | 221 | 
| 221   DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); | 222   DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); | 
| 222 }; | 223 }; | 
| 223 | 224 | 
| 224 }  // namespace content | 225 }  // namespace content | 
| 225 | 226 | 
| 226 #endif  // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 227 #endif  // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 
| OLD | NEW | 
|---|