| 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 |
| 221 VideoTrackSourceInterface* GetSource() const override { return nullptr; } | 226 VideoTrackSourceInterface* GetSource() const override { return nullptr; } |
| 222 }; | 227 }; |
| 223 | 228 |
| 224 rtc::scoped_refptr<MediaStreamTrackInterface> CreateFakeTrack( | 229 rtc::scoped_refptr<MediaStreamTrackInterface> CreateFakeTrack( |
| 225 cricket::MediaType media_type, | 230 cricket::MediaType media_type, |
| 226 const std::string& track_id, | 231 const std::string& track_id, |
| 227 MediaStreamTrackInterface::TrackState track_state) { | 232 MediaStreamTrackInterface::TrackState track_state) { |
| 228 if (media_type == cricket::MEDIA_TYPE_AUDIO) { | 233 if (media_type == cricket::MEDIA_TYPE_AUDIO) { |
| 229 return FakeAudioTrackForStats::Create(track_id, track_state); | 234 return FakeAudioTrackForStats::Create(track_id, track_state); |
| 230 } else { | 235 } else { |
| (...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2325 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; | 2330 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; |
| 2326 }; | 2331 }; |
| 2327 | 2332 |
| 2328 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { | 2333 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { |
| 2329 collector_->VerifyThreadUsageAndResultsMerging(); | 2334 collector_->VerifyThreadUsageAndResultsMerging(); |
| 2330 } | 2335 } |
| 2331 | 2336 |
| 2332 } // namespace | 2337 } // namespace |
| 2333 | 2338 |
| 2334 } // namespace webrtc | 2339 } // namespace webrtc |
| OLD | NEW |