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()); |
} |