Index: webrtc/modules/audio_device/android/audio_manager_unittest.cc |
diff --git a/webrtc/modules/audio_device/android/audio_manager_unittest.cc b/webrtc/modules/audio_device/android/audio_manager_unittest.cc |
index f790e6a6bc4e9d4c35d868c91635e10e37c0a0ca..a5af8b068397c84ef7dd38fad2b50751ee4a6a10 100644 |
--- a/webrtc/modules/audio_device/android/audio_manager_unittest.cc |
+++ b/webrtc/modules/audio_device/android/audio_manager_unittest.cc |
@@ -110,10 +110,10 @@ TEST_F(AudioManagerTest, AudioParametersWithDefaultConstruction) { |
EXPECT_EQ(0, params.sample_rate()); |
EXPECT_EQ(0, params.channels()); |
EXPECT_EQ(0, params.frames_per_buffer()); |
- EXPECT_EQ(0, params.frames_per_10ms_buffer()); |
+ EXPECT_EQ(0U, params.frames_per_10ms_buffer()); |
EXPECT_EQ(0, params.GetBytesPerFrame()); |
EXPECT_EQ(0, params.GetBytesPerBuffer()); |
- EXPECT_EQ(0, params.GetBytesPer10msBuffer()); |
+ EXPECT_EQ(0U, params.GetBytesPer10msBuffer()); |
EXPECT_EQ(0.0f, params.GetBufferSizeInMilliseconds()); |
} |
@@ -122,7 +122,7 @@ TEST_F(AudioManagerTest, AudioParametersWithNonDefaultConstruction) { |
const int kSampleRate = 48000; |
const int kChannels = 1; |
const int kFramesPerBuffer = 480; |
- const int kFramesPer10msBuffer = 480; |
+ const size_t kFramesPer10msBuffer = 480; |
const int kBytesPerFrame = 2; |
const float kBufferSizeInMs = 10.0f; |
AudioParameters params(kSampleRate, kChannels, kFramesPerBuffer); |
@@ -130,7 +130,8 @@ TEST_F(AudioManagerTest, AudioParametersWithNonDefaultConstruction) { |
EXPECT_EQ(kSampleRate, params.sample_rate()); |
EXPECT_EQ(kChannels, params.channels()); |
EXPECT_EQ(kFramesPerBuffer, params.frames_per_buffer()); |
- EXPECT_EQ(kSampleRate / 100, params.frames_per_10ms_buffer()); |
+ EXPECT_EQ(static_cast<size_t>(kSampleRate / 100), |
+ params.frames_per_10ms_buffer()); |
EXPECT_EQ(kBytesPerFrame, params.GetBytesPerFrame()); |
EXPECT_EQ(kBytesPerFrame * kFramesPerBuffer, params.GetBytesPerBuffer()); |
EXPECT_EQ(kBytesPerFrame * kFramesPer10msBuffer, |