Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: webrtc/api/rtcstatscollector_unittest.cc

Issue 2487633002: Reland of Delete all use of cricket::VideoFrame and cricket::WebRtcVideoFrame. (Closed)
Patch Set: Rebase, and update rtcstatscollector_unittest.cc. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/mediastreamtrackproxy.h ('k') | webrtc/api/videocapturertracksource_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/api/mediastreamtrackproxy.h ('k') | webrtc/api/videocapturertracksource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698