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

Unified Diff: media/cast/sender/video_encoder_unittest.cc

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 5 years 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/sender/h264_vt_encoder_unittest.cc ('k') | media/cast/sender/video_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/video_encoder_unittest.cc
diff --git a/media/cast/sender/video_encoder_unittest.cc b/media/cast/sender/video_encoder_unittest.cc
index 9624e43f3e28b31dc43aad15bc89907e127fda84..8b5179aeaf35a6814063c190b2fbab03fab33466 100644
--- a/media/cast/sender/video_encoder_unittest.cc
+++ b/media/cast/sender/video_encoder_unittest.cc
@@ -15,6 +15,7 @@
#include "media/base/video_frame.h"
#include "media/cast/cast_defines.h"
#include "media/cast/cast_environment.h"
+#include "media/cast/common/rtp_time.h"
#include "media/cast/sender/fake_video_encode_accelerator_factory.h"
#include "media/cast/sender/video_encoder.h"
#include "media/cast/sender/video_frame_factory.h"
@@ -171,14 +172,11 @@ class VideoEncoderTest
uint32_t frame_id,
uint32_t reference_frame_id) {
return video_encoder_->EncodeVideoFrame(
- video_frame,
- Now(),
+ video_frame, Now(),
base::Bind(&VideoEncoderTest::DeliverEncodedVideoFrame,
- base::Unretained(this),
- frame_id,
- reference_frame_id,
- TimeDeltaToRtpDelta(video_frame->timestamp(),
- kVideoFrequency),
+ base::Unretained(this), frame_id, reference_frame_id,
+ RtpTimeTicks::FromTimeDelta(video_frame->timestamp(),
+ kVideoFrequency),
Now()));
}
@@ -218,7 +216,7 @@ class VideoEncoderTest
// bound in the callback returned from EncodeAndCheckDelivery().
void DeliverEncodedVideoFrame(uint32_t expected_frame_id,
uint32_t expected_last_referenced_frame_id,
- uint32_t expected_rtp_timestamp,
+ RtpTimeTicks expected_rtp_timestamp,
const base::TimeTicks& expected_reference_time,
scoped_ptr<SenderEncodedFrame> encoded_frame) {
EXPECT_TRUE(cast_environment_->CurrentlyOn(CastEnvironment::MAIN));
« no previous file with comments | « media/cast/sender/h264_vt_encoder_unittest.cc ('k') | media/cast/sender/video_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698