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

Unified Diff: media/cast/receiver/frame_receiver_unittest.cc

Issue 839983002: Adding "target_frame_rate" variable in lieu of "max_frame_rate" for FrameReceiverConfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/receiver/frame_receiver.cc ('k') | media/cast/test/cast_benchmarks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/frame_receiver_unittest.cc
diff --git a/media/cast/receiver/frame_receiver_unittest.cc b/media/cast/receiver/frame_receiver_unittest.cc
index 42bc4e315c8d785d7badf37a13ab743cc9f68fcf..8e4781e18e338eb3999ffd79dbc14f857853ac26 100644
--- a/media/cast/receiver/frame_receiver_unittest.cc
+++ b/media/cast/receiver/frame_receiver_unittest.cc
@@ -105,7 +105,7 @@ class FrameReceiverTest : public ::testing::Test {
config_.rtp_max_delay_ms = kPlayoutDelayMillis;
// Note: Frame rate must divide 1000 without remainder so the test code
// doesn't have to account for rounding errors.
- config_.max_frame_rate = 25;
+ config_.target_frame_rate = 25;
receiver_.reset(new FrameReceiver(
cast_environment_, config_, VIDEO_EVENT, &mock_transport_));
@@ -217,9 +217,9 @@ TEST_F(FrameReceiverTest, ReceivesFramesSkippingWhenAppropriate) {
.WillRepeatedly(testing::Return());
const uint32 rtp_advance_per_frame =
- config_.frequency / config_.max_frame_rate;
+ config_.frequency / config_.target_frame_rate;
const base::TimeDelta time_advance_per_frame =
- base::TimeDelta::FromSeconds(1) / config_.max_frame_rate;
+ base::TimeDelta::FromSeconds(1) / config_.target_frame_rate;
// Feed and process lip sync in receiver.
FeedLipSyncInfoIntoReceiver();
@@ -320,9 +320,9 @@ TEST_F(FrameReceiverTest, ReceivesFramesRefusingToSkipAny) {
.WillRepeatedly(testing::Return());
const uint32 rtp_advance_per_frame =
- config_.frequency / config_.max_frame_rate;
+ config_.frequency / config_.target_frame_rate;
const base::TimeDelta time_advance_per_frame =
- base::TimeDelta::FromSeconds(1) / config_.max_frame_rate;
+ base::TimeDelta::FromSeconds(1) / config_.target_frame_rate;
// Feed and process lip sync in receiver.
FeedLipSyncInfoIntoReceiver();
« no previous file with comments | « media/cast/receiver/frame_receiver.cc ('k') | media/cast/test/cast_benchmarks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698