OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <unistd.h> | 5 #include <unistd.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "base/test/test_timeouts.h" | 10 #include "base/test/test_timeouts.h" |
11 #include "base/time.h" | 11 #include "base/time/time.h" |
12 #include "media/audio/cras/audio_manager_cras.h" | 12 #include "media/audio/cras/audio_manager_cras.h" |
13 #include "media/audio/cras/cras_input.h" | 13 #include "media/audio/cras/cras_input.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using testing::_; | 17 using testing::_; |
18 using testing::AtLeast; | 18 using testing::AtLeast; |
19 using testing::Ge; | 19 using testing::Ge; |
20 using testing::InvokeWithoutArgs; | 20 using testing::InvokeWithoutArgs; |
21 using testing::StrictMock; | 21 using testing::StrictMock; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 AudioParameters params_stereo(kTestFormat, | 203 AudioParameters params_stereo(kTestFormat, |
204 CHANNEL_LAYOUT_STEREO, | 204 CHANNEL_LAYOUT_STEREO, |
205 rates[i], | 205 rates[i], |
206 kTestBitsPerSample, | 206 kTestBitsPerSample, |
207 kTestFramesPerPacket); | 207 kTestFramesPerPacket); |
208 CaptureSomeFrames(params_stereo, kTestCaptureDurationMs); | 208 CaptureSomeFrames(params_stereo, kTestCaptureDurationMs); |
209 } | 209 } |
210 } | 210 } |
211 | 211 |
212 } // namespace media | 212 } // namespace media |
OLD | NEW |