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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 FakeVideoTrackSourceForStats(VideoTrackSourceInterface::Stats stats) | 225 FakeVideoTrackSourceForStats(VideoTrackSourceInterface::Stats stats) |
226 : stats_(stats) { | 226 : stats_(stats) { |
227 } | 227 } |
228 | 228 |
229 MediaSourceInterface::SourceState state() const override { | 229 MediaSourceInterface::SourceState state() const override { |
230 return MediaSourceInterface::kLive; | 230 return MediaSourceInterface::kLive; |
231 } | 231 } |
232 bool remote() const override { return false; } | 232 bool remote() const override { return false; } |
233 void RegisterObserver(ObserverInterface* observer) override {} | 233 void RegisterObserver(ObserverInterface* observer) override {} |
234 void UnregisterObserver(ObserverInterface* observer) override {} | 234 void UnregisterObserver(ObserverInterface* observer) override {} |
235 void AddOrUpdateSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink, | 235 void AddOrUpdateSink(rtc::VideoSinkInterface<webrtc::VideoFrame>* sink, |
236 const rtc::VideoSinkWants& wants) override {} | 236 const rtc::VideoSinkWants& wants) override {} |
237 void RemoveSink(rtc::VideoSinkInterface<cricket::VideoFrame>* sink) override { | 237 void RemoveSink(rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override { |
238 } | 238 } |
239 bool is_screencast() const override { return false; } | 239 bool is_screencast() const override { return false; } |
240 rtc::Optional<bool> needs_denoising() const override { | 240 rtc::Optional<bool> needs_denoising() const override { |
241 return rtc::Optional<bool>(); | 241 return rtc::Optional<bool>(); |
242 } | 242 } |
243 bool GetStats(VideoTrackSourceInterface::Stats* stats) override { | 243 bool GetStats(VideoTrackSourceInterface::Stats* stats) override { |
244 *stats = stats_; | 244 *stats = stats_; |
245 return true; | 245 return true; |
246 } | 246 } |
247 | 247 |
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; | 1635 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; |
1636 }; | 1636 }; |
1637 | 1637 |
1638 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { | 1638 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { |
1639 collector_->VerifyThreadUsageAndResultsMerging(); | 1639 collector_->VerifyThreadUsageAndResultsMerging(); |
1640 } | 1640 } |
1641 | 1641 |
1642 } // namespace | 1642 } // namespace |
1643 | 1643 |
1644 } // namespace webrtc | 1644 } // namespace webrtc |
OLD | NEW |