| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "media/base/audio_hardware_config.h" | 6 #include "media/base/audio_hardware_config.h" |
| 7 #include "media/audio/audio_parameters.h" | 7 #include "media/base/audio_parameters.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 static const int kOutputBufferSize = 2048; | 12 static const int kOutputBufferSize = 2048; |
| 13 static const int kOutputSampleRate = 48000; | 13 static const int kOutputSampleRate = 48000; |
| 14 static const ChannelLayout kOutputChannelLayout = CHANNEL_LAYOUT_STEREO; | 14 static const ChannelLayout kOutputChannelLayout = CHANNEL_LAYOUT_STEREO; |
| 15 static const int kInputSampleRate = 44100; | 15 static const int kInputSampleRate = 44100; |
| 16 static const ChannelLayout kInputChannelLayout = CHANNEL_LAYOUT_STEREO; | 16 static const ChannelLayout kInputChannelLayout = CHANNEL_LAYOUT_STEREO; |
| 17 | 17 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 kOutputChannelLayout, | 120 kOutputChannelLayout, |
| 121 i, | 121 i, |
| 122 16, | 122 16, |
| 123 32)); | 123 32)); |
| 124 EXPECT_EQ(2 * (i / 100), fake_config.GetHighLatencyBufferSize()); | 124 EXPECT_EQ(2 * (i / 100), fake_config.GetHighLatencyBufferSize()); |
| 125 } | 125 } |
| 126 #endif // defined(OS_WIN) | 126 #endif // defined(OS_WIN) |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace content | 129 } // namespace content |
| OLD | NEW |