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

Unified Diff: webrtc/common_audio/audio_ring_buffer_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/audio_ring_buffer_unittest.cc
diff --git a/webrtc/common_audio/audio_ring_buffer_unittest.cc b/webrtc/common_audio/audio_ring_buffer_unittest.cc
index cc1922c69a0f5bd64d1bdd4d7130d81201198375..65d7136de1aeeae05fd76b0136daa87fa3bc03b8 100644
--- a/webrtc/common_audio/audio_ring_buffer_unittest.cc
+++ b/webrtc/common_audio/audio_ring_buffer_unittest.cc
@@ -48,12 +48,14 @@ void ReadAndWriteTest(const ChannelBuffer<float>& input,
}
// Write and read the last bit.
- if (input_pos < total_frames)
+ if (input_pos < total_frames) {
buf.Write(input.Slice(slice.get(), static_cast<int>(input_pos)),
num_channels, total_frames - input_pos);
- if (buf.ReadFramesAvailable())
+ }
+ if (buf.ReadFramesAvailable()) {
buf.Read(output->Slice(slice.get(), static_cast<int>(output_pos)),
num_channels, buf.ReadFramesAvailable());
+ }
EXPECT_EQ(0u, buf.ReadFramesAvailable());
}

Powered by Google App Engine
This is Rietveld 408576698