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

Unified Diff: media/cast/rtcp/rtcp_unittest.cc

Issue 25348003: Fix compilation warnings for cast_unittest on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/rtcp/rtcp_unittest.cc
diff --git a/media/cast/rtcp/rtcp_unittest.cc b/media/cast/rtcp/rtcp_unittest.cc
index 645e7a440c71136017e056750c52870fd9c6f319..9bce86a90848df2b776840aeec1b3878ae3e0d8f 100644
--- a/media/cast/rtcp/rtcp_unittest.cc
+++ b/media/cast/rtcp/rtcp_unittest.cc
@@ -337,9 +337,9 @@ TEST_F(RtcpTest, WrapAround) {
old_timestamp = 1234567890;
EXPECT_EQ(0, rtcp_peer.CheckForWrapAround(new_timestamp, old_timestamp));
new_timestamp = 123;
- old_timestamp = 4234567890;
+ old_timestamp = 4234567890u;
EXPECT_EQ(1, rtcp_peer.CheckForWrapAround(new_timestamp, old_timestamp));
- new_timestamp = 4234567890;
+ new_timestamp = 4234567890u;
old_timestamp = 123;
EXPECT_EQ(-1, rtcp_peer.CheckForWrapAround(new_timestamp, old_timestamp));
}
@@ -383,7 +383,7 @@ TEST_F(RtcpTest, RtpTimestampInSenderTime) {
rtp_timestamp_in_ticks);
// Test older rtp_timestamp with wrap.
- rtp_timestamp = 4294903296;
+ rtp_timestamp = 4294903296u;
EXPECT_TRUE(rtcp_peer.RtpTimestampInSenderTime(frequency, rtp_timestamp,
&rtp_timestamp_in_ticks));
EXPECT_EQ(input_time - base::TimeDelta::FromMilliseconds(4000),
@@ -397,7 +397,7 @@ TEST_F(RtcpTest, RtpTimestampInSenderTime) {
rtp_timestamp_in_ticks);
// Test newer rtp_timestamp with wrap.
- rtp_timestamp = 4294903296;
+ rtp_timestamp = 4294903296u;
rtcp_peer.OnReceivedLipSyncInfo(rtp_timestamp, ntp_seconds, ntp_fractions);
rtp_timestamp = 64000;
EXPECT_TRUE(rtcp_peer.RtpTimestampInSenderTime(frequency, rtp_timestamp,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698