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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 webrtc::PeerConnectionObserver* observer) OVERRIDE; | 136 webrtc::PeerConnectionObserver* observer) OVERRIDE; |
137 virtual scoped_refptr<webrtc::AudioSourceInterface> | 137 virtual scoped_refptr<webrtc::AudioSourceInterface> |
138 CreateLocalAudioSource( | 138 CreateLocalAudioSource( |
139 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; | 139 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; |
140 virtual scoped_refptr<webrtc::VideoSourceInterface> | 140 virtual scoped_refptr<webrtc::VideoSourceInterface> |
141 CreateLocalVideoSource( | 141 CreateLocalVideoSource( |
142 int video_session_id, | 142 int video_session_id, |
143 bool is_screencast, | 143 bool is_screencast, |
144 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; | 144 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; |
145 virtual bool InitializeAudioSource( | 145 virtual bool InitializeAudioSource( |
146 const StreamDeviceInfo& device_info) OVERRIDE; | 146 int render_view_id, const StreamDeviceInfo& device_info) OVERRIDE; |
147 virtual bool CreateWebAudioSource( | 147 virtual bool CreateWebAudioSource( |
148 WebKit::WebMediaStreamSource* source) OVERRIDE; | 148 WebKit::WebMediaStreamSource* source) OVERRIDE; |
149 virtual scoped_refptr<webrtc::MediaStreamInterface> | 149 virtual scoped_refptr<webrtc::MediaStreamInterface> |
150 CreateLocalMediaStream(const std::string& label) OVERRIDE; | 150 CreateLocalMediaStream(const std::string& label) OVERRIDE; |
151 virtual scoped_refptr<webrtc::VideoTrackInterface> | 151 virtual scoped_refptr<webrtc::VideoTrackInterface> |
152 CreateLocalVideoTrack(const std::string& id, | 152 CreateLocalVideoTrack(const std::string& id, |
153 webrtc::VideoSourceInterface* source) OVERRIDE; | 153 webrtc::VideoSourceInterface* source) OVERRIDE; |
154 virtual scoped_refptr<webrtc::AudioTrackInterface> | 154 virtual scoped_refptr<webrtc::AudioTrackInterface> |
155 CreateLocalAudioTrack(const std::string& id, | 155 CreateLocalAudioTrack(const std::string& id, |
156 webrtc::AudioSourceInterface* source) OVERRIDE; | 156 webrtc::AudioSourceInterface* source) OVERRIDE; |
(...skipping 16 matching lines...) Expand all Loading... |
173 bool mock_pc_factory_created_; | 173 bool mock_pc_factory_created_; |
174 scoped_refptr <MockAudioSource> last_audio_source_; | 174 scoped_refptr <MockAudioSource> last_audio_source_; |
175 scoped_refptr <MockVideoSource> last_video_source_; | 175 scoped_refptr <MockVideoSource> last_video_source_; |
176 | 176 |
177 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); | 177 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDependencyFactory); |
178 }; | 178 }; |
179 | 179 |
180 } // namespace content | 180 } // namespace content |
181 | 181 |
182 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ | 182 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DEPENDENCY_FACTORY_H_ |
OLD | NEW |