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

Unified Diff: media/audio/audio_util_unittest.cc

Issue 6300001: Clang: enable -Wbool-conversions and -Wunused-variables on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, undo indent Created 9 years, 11 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 | « courgette/third_party/paged_array_unittest.cc ('k') | media/omx/omx_codec_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_util_unittest.cc
diff --git a/media/audio/audio_util_unittest.cc b/media/audio/audio_util_unittest.cc
index fde2127637ff5b2b3f7ce641048bd11d9806e566..11e10a93051766893907b939ea8ee533e3a34fbc 100644
--- a/media/audio/audio_util_unittest.cc
+++ b/media/audio/audio_util_unittest.cc
@@ -22,7 +22,7 @@ TEST(AudioUtilTest, AdjustVolume_u8) {
1, // channels.
sizeof(samples_u8[0]),
0.5f);
- EXPECT_EQ(true, result_u8);
+ EXPECT_TRUE(result_u8);
int expected_test = memcmp(samples_u8, expected_u8, sizeof(expected_u8));
EXPECT_EQ(0, expected_test);
}
@@ -35,7 +35,7 @@ TEST(AudioUtilTest, AdjustVolume_s16) {
2, // channels.
sizeof(samples_s16[0]),
0.25f);
- EXPECT_EQ(true, result_s16);
+ EXPECT_TRUE(result_s16);
int expected_test = memcmp(samples_s16, expected_s16, sizeof(expected_s16));
EXPECT_EQ(0, expected_test);
}
@@ -48,7 +48,7 @@ TEST(AudioUtilTest, AdjustVolume_s16_zero) {
2, // channels.
sizeof(samples_s16[0]),
0.0f);
- EXPECT_EQ(true, result_s16);
+ EXPECT_TRUE(result_s16);
int expected_test = memcmp(samples_s16, expected_s16, sizeof(expected_s16));
EXPECT_EQ(0, expected_test);
}
@@ -61,7 +61,7 @@ TEST(AudioUtilTest, AdjustVolume_s16_one) {
2, // channels.
sizeof(samples_s16[0]),
1.0f);
- EXPECT_EQ(true, result_s16);
+ EXPECT_TRUE(result_s16);
int expected_test = memcmp(samples_s16, expected_s16, sizeof(expected_s16));
EXPECT_EQ(0, expected_test);
}
@@ -74,7 +74,7 @@ TEST(AudioUtilTest, AdjustVolume_s32) {
4, // channels.
sizeof(samples_s32[0]),
0.25f);
- EXPECT_EQ(true, result_s32);
+ EXPECT_TRUE(result_s32);
int expected_test = memcmp(samples_s32, expected_s32, sizeof(expected_s32));
EXPECT_EQ(0, expected_test);
}
@@ -90,7 +90,7 @@ TEST(AudioUtilTest, FoldChannels_u8) {
6, // channels.
sizeof(samples_u8[0]),
1.0f);
- EXPECT_EQ(true, result_u8);
+ EXPECT_TRUE(result_u8);
int expected_test = memcmp(samples_u8, expected_u8, sizeof(expected_u8));
EXPECT_EQ(0, expected_test);
}
@@ -104,7 +104,7 @@ TEST(AudioUtilTest, FoldChannels_s16) {
6, // channels.
sizeof(samples_s16[0]),
1.00f);
- EXPECT_EQ(true, result_s16);
+ EXPECT_TRUE(result_s16);
int expected_test = memcmp(samples_s16, expected_s16, sizeof(expected_s16));
EXPECT_EQ(0, expected_test);
}
@@ -118,7 +118,7 @@ TEST(AudioUtilTest, FoldChannels_s32) {
6, // channels.
sizeof(samples_s32[0]),
1.00f);
- EXPECT_EQ(true, result_s32);
+ EXPECT_TRUE(result_s32);
int expected_test = memcmp(samples_s32, expected_s32, sizeof(expected_s32));
EXPECT_EQ(0, expected_test);
}
@@ -133,7 +133,7 @@ TEST(AudioUtilTest, FoldChannels71_s16) {
8, // channels.
sizeof(samples_s16[0]),
1.00f);
- EXPECT_EQ(true, result_s16);
+ EXPECT_TRUE(result_s16);
int expected_test = memcmp(samples_s16, expected_s16, sizeof(expected_s16));
EXPECT_EQ(0, expected_test);
}
« no previous file with comments | « courgette/third_party/paged_array_unittest.cc ('k') | media/omx/omx_codec_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698