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 <stdio.h> | 11 #include <stdio.h> |
12 #include <stdlib.h> | 12 #include <stdlib.h> |
13 #include <string.h> | 13 #include <string.h> |
14 #ifndef _WIN32 | 14 #ifndef _WIN32 |
15 #include <unistd.h> | 15 #include <unistd.h> |
16 #endif | 16 #endif |
17 | 17 |
18 #include <memory> | 18 #include <memory> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "gflags/gflags.h" | 21 #include "gflags/gflags.h" |
22 #include "webrtc/base/format_macros.h" | 22 #include "webrtc/base/format_macros.h" |
23 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 23 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
24 #include "webrtc/test/gtest.h" | 24 #include "webrtc/test/gtest.h" |
25 #include "webrtc/test/testsupport/fileutils.h" | 25 #include "webrtc/test/testsupport/fileutils.h" |
26 #include "webrtc/test/testsupport/trace_to_stderr.h" | 26 #include "webrtc/test/testsupport/trace_to_stderr.h" |
| 27 #include "webrtc/typedefs.h" |
27 #include "webrtc/voice_engine/include/voe_audio_processing.h" | 28 #include "webrtc/voice_engine/include/voe_audio_processing.h" |
28 #include "webrtc/voice_engine/include/voe_base.h" | 29 #include "webrtc/voice_engine/include/voe_base.h" |
29 #include "webrtc/voice_engine/include/voe_codec.h" | 30 #include "webrtc/voice_engine/include/voe_codec.h" |
30 #include "webrtc/voice_engine/include/voe_errors.h" | 31 #include "webrtc/voice_engine/include/voe_errors.h" |
31 #include "webrtc/voice_engine/include/voe_external_media.h" | 32 #include "webrtc/voice_engine/include/voe_external_media.h" |
32 #include "webrtc/voice_engine/include/voe_file.h" | 33 #include "webrtc/voice_engine/include/voe_file.h" |
33 #include "webrtc/voice_engine/include/voe_hardware.h" | 34 #include "webrtc/voice_engine/include/voe_hardware.h" |
34 #include "webrtc/voice_engine/include/voe_neteq_stats.h" | 35 #include "webrtc/voice_engine/include/voe_neteq_stats.h" |
35 #include "webrtc/voice_engine/include/voe_network.h" | 36 #include "webrtc/voice_engine/include/voe_network.h" |
36 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 37 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
37 #include "webrtc/voice_engine/include/voe_video_sync.h" | 38 #include "webrtc/voice_engine/include/voe_video_sync.h" |
38 #include "webrtc/voice_engine/include/voe_volume_control.h" | 39 #include "webrtc/voice_engine/include/voe_volume_control.h" |
39 #include "webrtc/voice_engine/test/channel_transport/channel_transport.h" | 40 #include "webrtc/voice_engine/test/channel_transport/channel_transport.h" |
40 #include "webrtc/voice_engine_configurations.h" | |
41 | 41 |
42 DEFINE_bool(use_log_file, false, | 42 DEFINE_bool(use_log_file, false, |
43 "Output logs to a file; by default they will be printed to stderr."); | 43 "Output logs to a file; by default they will be printed to stderr."); |
44 | 44 |
45 using namespace webrtc; | 45 using namespace webrtc; |
46 using namespace test; | 46 using namespace test; |
47 | 47 |
48 #define VALIDATE \ | 48 #define VALIDATE \ |
49 if (res != 0) { \ | 49 if (res != 0) { \ |
50 printf("*** Error at line %i \n", __LINE__); \ | 50 printf("*** Error at line %i \n", __LINE__); \ |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 | 795 |
796 printf("Delete channels \n"); | 796 printf("Delete channels \n"); |
797 res = base1->DeleteChannel(chan); | 797 res = base1->DeleteChannel(chan); |
798 VALIDATE; | 798 VALIDATE; |
799 | 799 |
800 for (int i = 0; i < kMaxNumChannels; ++i) { | 800 for (int i = 0; i < kMaxNumChannels; ++i) { |
801 res = base1->DeleteChannel(channels[i]); | 801 res = base1->DeleteChannel(channels[i]); |
802 VALIDATE; | 802 VALIDATE; |
803 } | 803 } |
804 } | 804 } |
OLD | NEW |