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

Unified Diff: webrtc/voice_engine/test/auto_test/standard/external_media_test.cc

Issue 1224163002: Update audio code to use size_t more correctly, webrtc/voice_engine/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Checkpoint Created 5 years, 5 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
Index: webrtc/voice_engine/test/auto_test/standard/external_media_test.cc
diff --git a/webrtc/voice_engine/test/auto_test/standard/external_media_test.cc b/webrtc/voice_engine/test/auto_test/standard/external_media_test.cc
index f586b0e42d91a625b95f723bad8394b02ddbb8a3..b4daba5afddb8b5f3100f9443e19e2fcf8c8ab51 100644
--- a/webrtc/voice_engine/test/auto_test/standard/external_media_test.cc
+++ b/webrtc/voice_engine/test/auto_test/standard/external_media_test.cc
@@ -83,7 +83,7 @@ TEST_F(ExternalMediaTest,
ResumePlaying();
EXPECT_EQ(0, voe_xmedia_->GetAudioFrame(channel_, 0, &frame));
EXPECT_GT(frame.sample_rate_hz_, 0);
- EXPECT_GT(frame.samples_per_channel_, 0);
+ EXPECT_GT(frame.samples_per_channel_, 0U);
PausePlaying();
EXPECT_EQ(0, voe_xmedia_->SetExternalMixing(channel_, false));
ResumePlaying();
@@ -101,7 +101,7 @@ TEST_F(ExternalMediaTest,
EXPECT_EQ(0, voe_xmedia_->GetAudioFrame(channel_, f, &frame))
<< "Resampling succeeds for freq=" << f;
EXPECT_EQ(f, frame.sample_rate_hz_);
- EXPECT_EQ(f / 100, frame.samples_per_channel_);
+ EXPECT_EQ(static_cast<size_t>(f / 100), frame.samples_per_channel_);
}
PausePlaying();
EXPECT_EQ(0, voe_xmedia_->SetExternalMixing(channel_, false));

Powered by Google App Engine
This is Rietveld 408576698