| 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/test/gtest.h" |  | 
|   23 #include "webrtc/base/format_macros.h" |   22 #include "webrtc/base/format_macros.h" | 
|   24 #include "webrtc/engine_configurations.h" |   23 #include "webrtc/engine_configurations.h" | 
|   25 #include "webrtc/modules/audio_processing/include/audio_processing.h" |   24 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 
|   26 #include "webrtc/voice_engine/test/channel_transport/channel_transport.h" |   25 #include "webrtc/test/gtest.h" | 
|   27 #include "webrtc/test/testsupport/fileutils.h" |   26 #include "webrtc/test/testsupport/fileutils.h" | 
|   28 #include "webrtc/test/testsupport/trace_to_stderr.h" |   27 #include "webrtc/test/testsupport/trace_to_stderr.h" | 
|   29 #include "webrtc/voice_engine/include/voe_audio_processing.h" |   28 #include "webrtc/voice_engine/include/voe_audio_processing.h" | 
|   30 #include "webrtc/voice_engine/include/voe_base.h" |   29 #include "webrtc/voice_engine/include/voe_base.h" | 
|   31 #include "webrtc/voice_engine/include/voe_codec.h" |   30 #include "webrtc/voice_engine/include/voe_codec.h" | 
|   32 #include "webrtc/voice_engine/include/voe_errors.h" |   31 #include "webrtc/voice_engine/include/voe_errors.h" | 
|   33 #include "webrtc/voice_engine/include/voe_external_media.h" |   32 #include "webrtc/voice_engine/include/voe_external_media.h" | 
|   34 #include "webrtc/voice_engine/include/voe_file.h" |   33 #include "webrtc/voice_engine/include/voe_file.h" | 
|   35 #include "webrtc/voice_engine/include/voe_hardware.h" |   34 #include "webrtc/voice_engine/include/voe_hardware.h" | 
|   36 #include "webrtc/voice_engine/include/voe_neteq_stats.h" |   35 #include "webrtc/voice_engine/include/voe_neteq_stats.h" | 
|   37 #include "webrtc/voice_engine/include/voe_network.h" |   36 #include "webrtc/voice_engine/include/voe_network.h" | 
|   38 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |   37 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 
|   39 #include "webrtc/voice_engine/include/voe_video_sync.h" |   38 #include "webrtc/voice_engine/include/voe_video_sync.h" | 
|   40 #include "webrtc/voice_engine/include/voe_volume_control.h" |   39 #include "webrtc/voice_engine/include/voe_volume_control.h" | 
 |   40 #include "webrtc/voice_engine/test/channel_transport/channel_transport.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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  825  |  825  | 
|  826   printf("Delete channels \n"); |  826   printf("Delete channels \n"); | 
|  827   res = base1->DeleteChannel(chan); |  827   res = base1->DeleteChannel(chan); | 
|  828   VALIDATE; |  828   VALIDATE; | 
|  829  |  829  | 
|  830   for (int i = 0; i < kMaxNumChannels; ++i) { |  830   for (int i = 0; i < kMaxNumChannels; ++i) { | 
|  831     res = base1->DeleteChannel(channels[i]); |  831     res = base1->DeleteChannel(channels[i]); | 
|  832     VALIDATE; |  832     VALIDATE; | 
|  833   } |  833   } | 
|  834 } |  834 } | 
| OLD | NEW |