OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 // Some ideas of improvements: | 11 // Some ideas of improvements: |
12 // Break out common init and maybe terminate to separate function(s). | 12 // Break out common init and maybe terminate to separate function(s). |
13 // How much trace should we have enabled? | 13 // How much trace should we have enabled? |
14 // API error counter, to print info and return -1 if any error. | 14 // API error counter, to print info and return -1 if any error. |
15 | 15 |
16 #include <assert.h> | 16 #include <assert.h> |
17 #include <stdio.h> | 17 #include <stdio.h> |
18 #include <stdlib.h> | 18 #include <stdlib.h> |
19 #include <string.h> | 19 #include <string.h> |
20 #include <time.h> | 20 #include <time.h> |
21 #if defined(_WIN32) | 21 #if defined(_WIN32) |
22 #include <conio.h> | 22 #include <conio.h> |
23 #endif | 23 #endif |
24 | 24 |
25 #include "webrtc/voice_engine/test/auto_test/voe_stress_test.h" | 25 #include "webrtc/voice_engine/test/auto_test/voe_stress_test.h" |
26 | 26 |
27 #include "webrtc/system_wrappers/include/sleep.h" | 27 #include "webrtc/system_wrappers/include/sleep.h" |
28 #include "webrtc/test/channel_transport/channel_transport.h" | 28 #include "webrtc/voice_engine/test/channel_transport/channel_transport.h" |
29 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" | 29 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" |
30 #include "webrtc/voice_engine/test/auto_test/voe_test_defines.h" | 30 #include "webrtc/voice_engine/test/auto_test/voe_test_defines.h" |
31 #include "webrtc/voice_engine/voice_engine_defines.h" // defines build macros | 31 #include "webrtc/voice_engine/voice_engine_defines.h" // defines build macros |
32 | 32 |
33 using namespace webrtc; | 33 using namespace webrtc; |
34 using namespace test; | 34 using namespace test; |
35 | 35 |
36 namespace voetest { | 36 namespace voetest { |
37 | 37 |
38 #define VALIDATE_STRESS(expr) \ | 38 #define VALIDATE_STRESS(expr) \ |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 } else { | 398 } else { |
399 // Stop playout | 399 // Stop playout |
400 base->StopPlayout(0); | 400 base->StopPlayout(0); |
401 } | 401 } |
402 // --- END --- | 402 // --- END --- |
403 | 403 |
404 return true; | 404 return true; |
405 } | 405 } |
406 | 406 |
407 } // namespace voetest | 407 } // namespace voetest |
OLD | NEW |