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 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 public: | 138 public: |
139 explicit MockMediaStream(const std::string& label); | 139 explicit MockMediaStream(const std::string& label); |
140 | 140 |
141 virtual bool AddTrack(webrtc::AudioTrackInterface* track) OVERRIDE; | 141 virtual bool AddTrack(webrtc::AudioTrackInterface* track) OVERRIDE; |
142 virtual bool AddTrack(webrtc::VideoTrackInterface* track) OVERRIDE; | 142 virtual bool AddTrack(webrtc::VideoTrackInterface* track) OVERRIDE; |
143 virtual bool RemoveTrack(webrtc::AudioTrackInterface* track) OVERRIDE; | 143 virtual bool RemoveTrack(webrtc::AudioTrackInterface* track) OVERRIDE; |
144 virtual bool RemoveTrack(webrtc::VideoTrackInterface* track) OVERRIDE; | 144 virtual bool RemoveTrack(webrtc::VideoTrackInterface* track) OVERRIDE; |
145 virtual std::string label() const OVERRIDE; | 145 virtual std::string label() const OVERRIDE; |
146 virtual webrtc::AudioTrackVector GetAudioTracks() OVERRIDE; | 146 virtual webrtc::AudioTrackVector GetAudioTracks() OVERRIDE; |
147 virtual webrtc::VideoTrackVector GetVideoTracks() OVERRIDE; | 147 virtual webrtc::VideoTrackVector GetVideoTracks() OVERRIDE; |
148 virtual rtc::scoped_refptr<webrtc::AudioTrackInterface> | 148 virtual talk_base::scoped_refptr<webrtc::AudioTrackInterface> |
149 FindAudioTrack(const std::string& track_id) OVERRIDE; | 149 FindAudioTrack(const std::string& track_id) OVERRIDE; |
150 virtual rtc::scoped_refptr<webrtc::VideoTrackInterface> | 150 virtual talk_base::scoped_refptr<webrtc::VideoTrackInterface> |
151 FindVideoTrack(const std::string& track_id) OVERRIDE; | 151 FindVideoTrack(const std::string& track_id) OVERRIDE; |
152 virtual void RegisterObserver(webrtc::ObserverInterface* observer) OVERRIDE; | 152 virtual void RegisterObserver(webrtc::ObserverInterface* observer) OVERRIDE; |
153 virtual void UnregisterObserver(webrtc::ObserverInterface* observer) OVERRIDE; | 153 virtual void UnregisterObserver(webrtc::ObserverInterface* observer) OVERRIDE; |
154 | 154 |
155 protected: | 155 protected: |
156 virtual ~MockMediaStream(); | 156 virtual ~MockMediaStream(); |
157 | 157 |
158 private: | 158 private: |
159 void NotifyObservers(); | 159 void NotifyObservers(); |
160 | 160 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 bool fail_to_create_next_audio_capturer_; | 225 bool fail_to_create_next_audio_capturer_; |
226 scoped_refptr <MockAudioSource> last_audio_source_; | 226 scoped_refptr <MockAudioSource> last_audio_source_; |
227 scoped_refptr <MockVideoSource> last_video_source_; | 227 scoped_refptr <MockVideoSource> last_video_source_; |
228 | 228 |
229 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory); | 229 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory); |
230 }; | 230 }; |
231 | 231 |
232 } // namespace content | 232 } // namespace content |
233 | 233 |
234 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY
_H_ | 234 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY
_H_ |
OLD | NEW |