| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "platform/audio/PushPullFIFO.h" | 5 #include "platform/audio/PushPullFIFO.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include "platform/CrossThreadFunctional.h" | 9 #include "platform/CrossThreadFunctional.h" |
| 10 #include "platform/WaitableEvent.h" | 10 #include "platform/WaitableEvent.h" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // low profile CPU. | 213 // low profile CPU. |
| 214 {44100, 2, 8192, 1000, 441, 24, 128, 8}, | 214 {44100, 2, 8192, 1000, 441, 24, 128, 8}, |
| 215 | 215 |
| 216 // Test case 5 (Android-ExternalB): 5768 Pull, 128 Push. Huge callback with | 216 // Test case 5 (Android-ExternalB): 5768 Pull, 128 Push. Huge callback with |
| 217 // large jitter. Low profile CPU. | 217 // large jitter. Low profile CPU. |
| 218 {44100, 2, 8192, 1000, 5768, 120, 128, 12}, | 218 {44100, 2, 8192, 1000, 5768, 120, 128, 12}, |
| 219 | 219 |
| 220 // Test case 6 (User-specified buffer size): 960 Pull, 128 Push. Minimal | 220 // Test case 6 (User-specified buffer size): 960 Pull, 128 Push. Minimal |
| 221 // Jitter. 960 frames = 20ms at 48KHz. | 221 // Jitter. 960 frames = 20ms at 48KHz. |
| 222 {48000, 2, 8192, 1000, 960, 1, 128, 1}, | 222 {48000, 2, 8192, 1000, 960, 1, 128, 1}, |
| 223 | |
| 224 // Test case 7 (Longer test duration): 256 Pull, 128 Push. 10 seconds. | |
| 225 {48000, 2, 8192, 10000, 256, 0, 128, 1} | |
| 226 }; | 223 }; |
| 227 | 224 |
| 228 INSTANTIATE_TEST_CASE_P(PushPullFIFOSmokeTest, | 225 INSTANTIATE_TEST_CASE_P(PushPullFIFOSmokeTest, |
| 229 PushPullFIFOSmokeTest, | 226 PushPullFIFOSmokeTest, |
| 230 ::testing::ValuesIn(smoke_test_params)); | 227 ::testing::ValuesIn(smoke_test_params)); |
| 231 | 228 |
| 232 } // namespace | 229 } // namespace |
| 233 | 230 |
| 234 } // namespace blink | 231 } // namespace blink |
| OLD | NEW |