OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 return video_track; | 211 return video_track; |
212 } | 212 } |
213 | 213 |
214 FakeVideoTrackForStats(const std::string& id) | 214 FakeVideoTrackForStats(const std::string& id) |
215 : MediaStreamTrack<VideoTrackInterface>(id) { | 215 : MediaStreamTrack<VideoTrackInterface>(id) { |
216 } | 216 } |
217 | 217 |
218 std::string kind() const override { | 218 std::string kind() const override { |
219 return MediaStreamTrackInterface::kVideoKind; | 219 return MediaStreamTrackInterface::kVideoKind; |
220 } | 220 } |
221 | |
222 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, | |
223 const rtc::VideoSinkWants& wants) override{}; | |
224 void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override{}; | |
225 | |
226 VideoTrackSourceInterface* GetSource() const override { return nullptr; } | 221 VideoTrackSourceInterface* GetSource() const override { return nullptr; } |
227 }; | 222 }; |
228 | 223 |
229 rtc::scoped_refptr<MediaStreamTrackInterface> CreateFakeTrack( | 224 rtc::scoped_refptr<MediaStreamTrackInterface> CreateFakeTrack( |
230 cricket::MediaType media_type, | 225 cricket::MediaType media_type, |
231 const std::string& track_id, | 226 const std::string& track_id, |
232 MediaStreamTrackInterface::TrackState track_state) { | 227 MediaStreamTrackInterface::TrackState track_state) { |
233 if (media_type == cricket::MEDIA_TYPE_AUDIO) { | 228 if (media_type == cricket::MEDIA_TYPE_AUDIO) { |
234 return FakeAudioTrackForStats::Create(track_id, track_state); | 229 return FakeAudioTrackForStats::Create(track_id, track_state); |
235 } else { | 230 } else { |
(...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2318 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; | 2313 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; |
2319 }; | 2314 }; |
2320 | 2315 |
2321 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { | 2316 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { |
2322 collector_->VerifyThreadUsageAndResultsMerging(); | 2317 collector_->VerifyThreadUsageAndResultsMerging(); |
2323 } | 2318 } |
2324 | 2319 |
2325 } // namespace | 2320 } // namespace |
2326 | 2321 |
2327 } // namespace webrtc | 2322 } // namespace webrtc |
OLD | NEW |