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 #include "webrtc/voice_engine/test/auto_test/voe_cpu_test.h" | 11 #include "webrtc/voice_engine/test/auto_test/voe_cpu_test.h" |
12 | 12 |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 #include <string.h> | 14 #include <string.h> |
15 #include <time.h> | 15 #include <time.h> |
16 #if defined(_WIN32) | 16 #if defined(_WIN32) |
17 #include <conio.h> | 17 #include <conio.h> |
18 #endif | 18 #endif |
19 | 19 |
20 #include "webrtc/base/scoped_ptr.h" | 20 #include "webrtc/base/scoped_ptr.h" |
21 #include "webrtc/test/channel_transport/include/channel_transport.h" | 21 #include "webrtc/test/channel_transport/channel_transport.h" |
22 #include "webrtc/voice_engine/test/auto_test/voe_test_defines.h" | 22 #include "webrtc/voice_engine/test/auto_test/voe_test_defines.h" |
23 | 23 |
24 using namespace webrtc; | 24 using namespace webrtc; |
25 using namespace test; | 25 using namespace test; |
26 | 26 |
27 namespace voetest { | 27 namespace voetest { |
28 | 28 |
29 #define CHECK(expr) \ | 29 #define CHECK(expr) \ |
30 if (expr) \ | 30 if (expr) \ |
31 { \ | 31 { \ |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 CHECK(base->StopSend(channel)); | 92 CHECK(base->StopSend(channel)); |
93 CHECK(base->StopPlayout(channel)); | 93 CHECK(base->StopPlayout(channel)); |
94 CHECK(base->StopReceive(channel)); | 94 CHECK(base->StopReceive(channel)); |
95 | 95 |
96 base->DeleteChannel(channel); | 96 base->DeleteChannel(channel); |
97 CHECK(base->Terminate()); | 97 CHECK(base->Terminate()); |
98 return 0; | 98 return 0; |
99 } | 99 } |
100 | 100 |
101 } // namespace voetest | 101 } // namespace voetest |
OLD | NEW |