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

Unified Diff: media/cast/net/cast_transport_sender_impl_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: 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
Index: media/cast/net/cast_transport_sender_impl_unittest.cc
diff --git a/media/cast/net/cast_transport_sender_impl_unittest.cc b/media/cast/net/cast_transport_sender_impl_unittest.cc
index fecf820f55ae4188be15393632a15c855f32e561..3b3e03f5d16667cd5b0ee03fd87eb9e5ce003fbd 100644
--- a/media/cast/net/cast_transport_sender_impl_unittest.cc
+++ b/media/cast/net/cast_transport_sender_impl_unittest.cc
@@ -185,7 +185,7 @@ TEST_F(CastTransportSenderImplTest, NacksCancelRetransmits) {
// A fake frame that will be decomposed into 4 packets.
EncodedFrame fake_frame;
fake_frame.frame_id = 1;
- fake_frame.rtp_timestamp = 1;
+ fake_frame.rtp_timestamp = RtpTimeTicks().Expand(UINT32_C(1));
fake_frame.dependency = EncodedFrame::KEY;
fake_frame.data.resize(5000, ' ');
@@ -234,7 +234,7 @@ TEST_F(CastTransportSenderImplTest, CancelRetransmits) {
// A fake frame that will be decomposed into 4 packets.
EncodedFrame fake_frame;
fake_frame.frame_id = 1;
- fake_frame.rtp_timestamp = 1;
+ fake_frame.rtp_timestamp = RtpTimeTicks().Expand(UINT32_C(1));
fake_frame.dependency = EncodedFrame::KEY;
fake_frame.data.resize(5000, ' ');
@@ -277,7 +277,7 @@ TEST_F(CastTransportSenderImplTest, Kickstart) {
// A fake frame that will be decomposed into 4 packets.
EncodedFrame fake_frame;
fake_frame.frame_id = 1;
- fake_frame.rtp_timestamp = 1;
+ fake_frame.rtp_timestamp = RtpTimeTicks().Expand(UINT32_C(1));
fake_frame.dependency = EncodedFrame::KEY;
fake_frame.data.resize(5000, ' ');

Powered by Google App Engine
This is Rietveld 408576698