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

Side by Side Diff: webrtc/video/receive_statistics_proxy_unittest.cc

Issue 2867703002: Reland of Delete deprecated and transitional stuff related to video frame refactoring. (Closed)
Patch Set: Rebase. Created 3 years, 7 months 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/video/overuse_frame_detector.cc ('k') | webrtc/video/video_send_stream_tests.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
11 #include "webrtc/video/receive_statistics_proxy.h" 11 #include "webrtc/video/receive_statistics_proxy.h"
12 12
13 #include <memory> 13 #include <memory>
14 14
15 #include "webrtc/api/video/i420_buffer.h"
15 #include "webrtc/api/video/video_frame.h" 16 #include "webrtc/api/video/video_frame.h"
16 #include "webrtc/api/video/video_rotation.h" 17 #include "webrtc/api/video/video_rotation.h"
17 #include "webrtc/modules/video_coding/include/video_codec_interface.h" 18 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
18 #include "webrtc/system_wrappers/include/metrics.h" 19 #include "webrtc/system_wrappers/include/metrics.h"
19 #include "webrtc/system_wrappers/include/metrics_default.h" 20 #include "webrtc/system_wrappers/include/metrics_default.h"
20 #include "webrtc/test/gtest.h" 21 #include "webrtc/test/gtest.h"
21 22
22 namespace webrtc { 23 namespace webrtc {
23 namespace { 24 namespace {
24 const int64_t kFreqOffsetProcessIntervalInMs = 40000; 25 const int64_t kFreqOffsetProcessIntervalInMs = 40000;
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 EXPECT_EQ(kDefaultFps, statistics_proxy_->GetStats().decode_frame_rate); 535 EXPECT_EQ(kDefaultFps, statistics_proxy_->GetStats().decode_frame_rate);
535 EXPECT_EQ(kDefaultFps, statistics_proxy_->GetStats().render_frame_rate); 536 EXPECT_EQ(kDefaultFps, statistics_proxy_->GetStats().render_frame_rate);
536 537
537 // FPS trackers in stats proxy have a 1000ms sliding window. 538 // FPS trackers in stats proxy have a 1000ms sliding window.
538 fake_clock_.AdvanceTimeMilliseconds(1000); 539 fake_clock_.AdvanceTimeMilliseconds(1000);
539 EXPECT_EQ(0, statistics_proxy_->GetStats().decode_frame_rate); 540 EXPECT_EQ(0, statistics_proxy_->GetStats().decode_frame_rate);
540 EXPECT_EQ(0, statistics_proxy_->GetStats().render_frame_rate); 541 EXPECT_EQ(0, statistics_proxy_->GetStats().render_frame_rate);
541 } 542 }
542 543
543 } // namespace webrtc 544 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/overuse_frame_detector.cc ('k') | webrtc/video/video_send_stream_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698