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/base/scoped_ptr.h" | 27 #include "webrtc/base/scoped_ptr.h" |
28 #include "webrtc/system_wrappers/interface/sleep.h" | 28 #include "webrtc/system_wrappers/include/sleep.h" |
29 #include "webrtc/test/channel_transport/include/channel_transport.h" | 29 #include "webrtc/test/channel_transport/include/channel_transport.h" |
30 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" | 30 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" |
31 #include "webrtc/voice_engine/test/auto_test/voe_test_defines.h" | 31 #include "webrtc/voice_engine/test/auto_test/voe_test_defines.h" |
32 #include "webrtc/voice_engine/voice_engine_defines.h" // defines build macros | 32 #include "webrtc/voice_engine/voice_engine_defines.h" // defines build macros |
33 | 33 |
34 using namespace webrtc; | 34 using namespace webrtc; |
35 using namespace test; | 35 using namespace test; |
36 | 36 |
37 namespace voetest { | 37 namespace voetest { |
38 | 38 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 } else { | 399 } else { |
400 // Stop playout | 400 // Stop playout |
401 base->StopPlayout(0); | 401 base->StopPlayout(0); |
402 } | 402 } |
403 // --- END --- | 403 // --- END --- |
404 | 404 |
405 return true; | 405 return true; |
406 } | 406 } |
407 | 407 |
408 } // namespace voetest | 408 } // namespace voetest |
OLD | NEW |