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

Unified Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_utils_unittest.cc

Issue 1242943008: Remove C++11 calls from intelligibility_utils (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed merge conflict 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
« no previous file with comments | « webrtc/modules/audio_processing/intelligibility/intelligibility_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/intelligibility/intelligibility_utils_unittest.cc
diff --git a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils_unittest.cc b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils_unittest.cc
index ca5567cdedb2d3f6bffdce5c192fff727432e5cd..9caa2eb0a158b6c0c54cdb00864bf5a3344df3c3 100644
--- a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils_unittest.cc
+++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils_unittest.cc
@@ -48,20 +48,12 @@ TEST(IntelligibilityUtilsTest, TestUpdateFactor) {
EXPECT_EQ(3, intelligibility::UpdateFactor(2, 4, 1));
}
-// Tests cplxfinite, cplxnormal, and zerofudge.
+// Tests zerofudge.
TEST(IntelligibilityUtilsTest, TestCplx) {
complex<float> t0(1.f, 0.f);
- EXPECT_TRUE(intelligibility::cplxfinite(t0));
- EXPECT_FALSE(intelligibility::cplxnormal(t0));
t0 = intelligibility::zerofudge(t0);
EXPECT_NE(t0.imag(), 0.f);
EXPECT_NE(t0.real(), 0.f);
- const complex<float> t1(1.f, std::sqrt(-1.f));
- EXPECT_FALSE(intelligibility::cplxfinite(t1));
- EXPECT_FALSE(intelligibility::cplxnormal(t1));
- const complex<float> t2(1.f, 1.f);
- EXPECT_TRUE(intelligibility::cplxfinite(t2));
- EXPECT_TRUE(intelligibility::cplxnormal(t2));
}
// Tests NewMean and AddToMean.
« no previous file with comments | « webrtc/modules/audio_processing/intelligibility/intelligibility_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698