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

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

Issue 845993002: Adding "rtp_timebase" variable in lieu of "frequency" for FrameReceiverConfig structure. (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 8e4781e18e338eb3999ffd79dbc14f857853ac26..b08ae0a9ecae02463fc1d14ab0b44ec128be15c0 100644
--- a/media/cast/receiver/frame_receiver_unittest.cc
+++ b/media/cast/receiver/frame_receiver_unittest.cc
@@ -120,7 +120,7 @@ class FrameReceiverTest : public ::testing::Test {
void FeedLipSyncInfoIntoReceiver() {
const base::TimeTicks now = testing_clock_->NowTicks();
const int64 rtp_timestamp = (now - start_time_) *
- config_.frequency / base::TimeDelta::FromSeconds(1);
+ config_.rtp_timebase / base::TimeDelta::FromSeconds(1);
CHECK_LE(0, rtp_timestamp);
uint32 ntp_seconds;
uint32 ntp_fraction;
@@ -217,7 +217,7 @@ TEST_F(FrameReceiverTest, ReceivesFramesSkippingWhenAppropriate) {
.WillRepeatedly(testing::Return());
const uint32 rtp_advance_per_frame =
- config_.frequency / config_.target_frame_rate;
+ config_.rtp_timebase / config_.target_frame_rate;
const base::TimeDelta time_advance_per_frame =
base::TimeDelta::FromSeconds(1) / config_.target_frame_rate;
@@ -320,7 +320,7 @@ TEST_F(FrameReceiverTest, ReceivesFramesRefusingToSkipAny) {
.WillRepeatedly(testing::Return());
const uint32 rtp_advance_per_frame =
- config_.frequency / config_.target_frame_rate;
+ config_.rtp_timebase / config_.target_frame_rate;
const base::TimeDelta time_advance_per_frame =
base::TimeDelta::FromSeconds(1) / config_.target_frame_rate;
« 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