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

Unified Diff: chrome/browser/media/cast_transport_host_filter_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 | « chrome/browser/media/cast_transport_host_filter.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/cast_transport_host_filter_unittest.cc
diff --git a/chrome/browser/media/cast_transport_host_filter_unittest.cc b/chrome/browser/media/cast_transport_host_filter_unittest.cc
index e2da614e7698d64ba254ac1f8f43e22b1209c0fb..32bda7393812940fb4cee7957bdd6f918635cdfa 100644
--- a/chrome/browser/media/cast_transport_host_filter_unittest.cc
+++ b/chrome/browser/media/cast_transport_host_filter_unittest.cc
@@ -108,8 +108,9 @@ TEST_F(CastTransportHostFilterTest, SimpleMessages) {
audio_frame.dependency = media::cast::EncodedFrame::KEY;
audio_frame.frame_id = 1;
audio_frame.referenced_frame_id = 1;
- audio_frame.rtp_timestamp = 47;
const int kSamples = 47;
+ audio_frame.rtp_timestamp = media::cast::RtpTimeTicks() +
+ media::cast::RtpTimeDelta::FromTicks(kSamples);
const int kBytesPerSample = 2;
const int kChannels = 2;
audio_frame.data = std::string(kSamples * kBytesPerSample * kChannels, 'q');
@@ -128,7 +129,8 @@ TEST_F(CastTransportHostFilterTest, SimpleMessages) {
FakeSend(insert_video_frame);
CastHostMsg_SendSenderReport rtcp_msg(
- kChannelId, 1, base::TimeTicks(), 2);
+ kChannelId, 1, base::TimeTicks(),
+ media::cast::RtpTimeTicks().Expand(UINT32_C(2)));
FakeSend(rtcp_msg);
std::vector<uint32_t> frame_ids;
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698