OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stdint.h> |
| 6 |
5 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
6 #include "media/base/audio_buffer.h" | 8 #include "media/base/audio_buffer.h" |
7 #include "media/base/audio_buffer_converter.h" | 9 #include "media/base/audio_buffer_converter.h" |
8 #include "media/base/sinc_resampler.h" | 10 #include "media/base/sinc_resampler.h" |
9 #include "media/base/test_helpers.h" | 11 #include "media/base/test_helpers.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
12 | 14 |
13 namespace media { | 15 namespace media { |
14 | 16 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 239 |
238 // Since the input buffer size is a multiple of the input request size there | 240 // Since the input buffer size is a multiple of the input request size there |
239 // should never be any frames remaining at this point. | 241 // should never be any frames remaining at this point. |
240 ASSERT_EQ(kInputFrameSize % | 242 ASSERT_EQ(kInputFrameSize % |
241 audio_buffer_converter_->input_buffer_size_for_testing(), | 243 audio_buffer_converter_->input_buffer_size_for_testing(), |
242 0); | 244 0); |
243 EXPECT_EQ(0, audio_buffer_converter_->input_frames_left_for_testing()); | 245 EXPECT_EQ(0, audio_buffer_converter_->input_frames_left_for_testing()); |
244 } | 246 } |
245 | 247 |
246 } // namespace media | 248 } // namespace media |
OLD | NEW |