summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-23 00:16:41 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-23 00:16:41 +0000
commitf716760f7ef24e3e4ed3224df290dc90d6b9745f (patch)
treee646660af2bfda800b1cb9d118586e08bf51748f /media
parentc7dcb21179e043f0f2b6b8f14813298b107f7fc7 (diff)
downloadchromium_src-f716760f7ef24e3e4ed3224df290dc90d6b9745f.zip
chromium_src-f716760f7ef24e3e4ed3224df290dc90d6b9745f.tar.gz
chromium_src-f716760f7ef24e3e4ed3224df290dc90d6b9745f.tar.bz2
Fix sign mismatch issues.
Review URL: http://codereview.chromium.org/145025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18992 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/filters/ffmpeg_video_decoder_unittest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/media/filters/ffmpeg_video_decoder_unittest.cc b/media/filters/ffmpeg_video_decoder_unittest.cc
index 7d350e6..ea236a4 100644
--- a/media/filters/ffmpeg_video_decoder_unittest.cc
+++ b/media/filters/ffmpeg_video_decoder_unittest.cc
@@ -430,14 +430,14 @@ TEST_F(FFmpegVideoDecoderTest, OnDecode_TestStateTransition) {
EXPECT_EQ(FFmpegVideoDecoder::kNormal, mock_decoder->state_);
ASSERT_TRUE(base::TimeDelta() == mock_decoder->last_pts_.timestamp);
ASSERT_TRUE(base::TimeDelta() == mock_decoder->last_pts_.duration);
- EXPECT_EQ(1, mock_decoder->pts_queue_.size());
+ EXPECT_EQ(1u, mock_decoder->pts_queue_.size());
// Decode a second time, which should yield the first frame.
mock_decoder->OnDecode(buffer_);
EXPECT_EQ(FFmpegVideoDecoder::kNormal, mock_decoder->state_);
EXPECT_TRUE(kTestPts1.timestamp == mock_decoder->last_pts_.timestamp);
EXPECT_TRUE(kTestPts1.duration == mock_decoder->last_pts_.duration);
- EXPECT_EQ(1, mock_decoder->pts_queue_.size());
+ EXPECT_EQ(1u, mock_decoder->pts_queue_.size());
// Decode a third time, with a regular buffer. The decode will error
// out, but the state should be the same.
@@ -445,7 +445,7 @@ TEST_F(FFmpegVideoDecoderTest, OnDecode_TestStateTransition) {
EXPECT_EQ(FFmpegVideoDecoder::kNormal, mock_decoder->state_);
EXPECT_TRUE(kTestPts1.timestamp == mock_decoder->last_pts_.timestamp);
EXPECT_TRUE(kTestPts1.duration == mock_decoder->last_pts_.duration);
- EXPECT_EQ(2, mock_decoder->pts_queue_.size());
+ EXPECT_EQ(2u, mock_decoder->pts_queue_.size());
// Decode a fourth time, with an end of stream buffer. This should
// yield the second frame, and stay in flushing mode.
@@ -453,7 +453,7 @@ TEST_F(FFmpegVideoDecoderTest, OnDecode_TestStateTransition) {
EXPECT_EQ(FFmpegVideoDecoder::kFlushCodec, mock_decoder->state_);
EXPECT_TRUE(kTestPts2.timestamp == mock_decoder->last_pts_.timestamp);
EXPECT_TRUE(kTestPts2.duration == mock_decoder->last_pts_.duration);
- EXPECT_EQ(1, mock_decoder->pts_queue_.size());
+ EXPECT_EQ(1u, mock_decoder->pts_queue_.size());
// Decode a fifth time with an end of stream buffer. this should
// yield the third frame.
@@ -461,7 +461,7 @@ TEST_F(FFmpegVideoDecoderTest, OnDecode_TestStateTransition) {
EXPECT_EQ(FFmpegVideoDecoder::kFlushCodec, mock_decoder->state_);
EXPECT_TRUE(kTestPts1.timestamp == mock_decoder->last_pts_.timestamp);
EXPECT_TRUE(kTestPts1.duration == mock_decoder->last_pts_.duration);
- EXPECT_EQ(0, mock_decoder->pts_queue_.size());
+ EXPECT_EQ(0u, mock_decoder->pts_queue_.size());
// Decode a sixth time with an end of stream buffer. This should
// Move into kDecodeFinished.
@@ -469,7 +469,7 @@ TEST_F(FFmpegVideoDecoderTest, OnDecode_TestStateTransition) {
EXPECT_EQ(FFmpegVideoDecoder::kDecodeFinished, mock_decoder->state_);
EXPECT_TRUE(kTestPts1.timestamp == mock_decoder->last_pts_.timestamp);
EXPECT_TRUE(kTestPts1.duration == mock_decoder->last_pts_.duration);
- EXPECT_EQ(0, mock_decoder->pts_queue_.size());
+ EXPECT_EQ(0u, mock_decoder->pts_queue_.size());
}
TEST_F(FFmpegVideoDecoderTest, OnDecode_EnqueueVideoFrameError) {