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

Unified Diff: webrtc/common_audio/real_fourier_unittest.cc

Issue 1172163004: Reformat existing code. There should be no functional effects. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 6 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/common_audio/real_fourier_unittest.cc
diff --git a/webrtc/common_audio/real_fourier_unittest.cc b/webrtc/common_audio/real_fourier_unittest.cc
index a66344187e1c05670a2c208a30851a39a1e1d9ce..526f762baa705cb31578b58a2f532916f09240d5 100644
--- a/webrtc/common_audio/real_fourier_unittest.cc
+++ b/webrtc/common_audio/real_fourier_unittest.cc
@@ -27,31 +27,31 @@ TEST(RealFourierStaticsTest, AllocatorAlignment) {
real = RealFourier::AllocRealBuffer(3);
ASSERT_TRUE(real.get() != nullptr);
int64_t ptr_value = reinterpret_cast<int64_t>(real.get());
- EXPECT_EQ(ptr_value % RealFourier::kFftBufferAlignment, 0);
+ EXPECT_EQ(0, ptr_value % RealFourier::kFftBufferAlignment);
}
{
RealFourier::fft_cplx_scoper cplx;
cplx = RealFourier::AllocCplxBuffer(3);
ASSERT_TRUE(cplx.get() != nullptr);
int64_t ptr_value = reinterpret_cast<int64_t>(cplx.get());
- EXPECT_EQ(ptr_value % RealFourier::kFftBufferAlignment, 0);
+ EXPECT_EQ(0, ptr_value % RealFourier::kFftBufferAlignment);
}
}
TEST(RealFourierStaticsTest, OrderComputation) {
- EXPECT_EQ(RealFourier::FftOrder(13), 4);
- EXPECT_EQ(RealFourier::FftOrder(32), 5);
- EXPECT_EQ(RealFourier::FftOrder(2), 1);
- EXPECT_EQ(RealFourier::FftOrder(1), 0);
+ EXPECT_EQ(4, RealFourier::FftOrder(13));
+ EXPECT_EQ(5, RealFourier::FftOrder(32));
+ EXPECT_EQ(1, RealFourier::FftOrder(2));
+ EXPECT_EQ(0, RealFourier::FftOrder(1));
}
TEST(RealFourierStaticsTest, ComplexLengthComputation) {
- EXPECT_EQ(RealFourier::ComplexLength(1), 2);
- EXPECT_EQ(RealFourier::ComplexLength(2), 3);
- EXPECT_EQ(RealFourier::ComplexLength(3), 5);
- EXPECT_EQ(RealFourier::ComplexLength(4), 9);
- EXPECT_EQ(RealFourier::ComplexLength(5), 17);
- EXPECT_EQ(RealFourier::ComplexLength(7), 65);
+ EXPECT_EQ(2, RealFourier::ComplexLength(1));
+ EXPECT_EQ(3, RealFourier::ComplexLength(2));
+ EXPECT_EQ(5, RealFourier::ComplexLength(3));
+ EXPECT_EQ(9, RealFourier::ComplexLength(4));
+ EXPECT_EQ(17, RealFourier::ComplexLength(5));
+ EXPECT_EQ(65, RealFourier::ComplexLength(7));
}
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698