| 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 "TwoWayCommunication.h" | 11 #include "TwoWayCommunication.h" |
| 12 | 12 |
| 13 #include <ctype.h> | 13 #include <ctype.h> |
| 14 #include <stdio.h> | 14 #include <stdio.h> |
| 15 #include <string.h> | 15 #include <string.h> |
| 16 | 16 |
| 17 #include <memory> | 17 #include <memory> |
| 18 | 18 |
| 19 #ifdef WIN32 | 19 #ifdef WIN32 |
| 20 #include <Windows.h> | 20 #include <Windows.h> |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" | 23 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
| 24 #include "webrtc/common_types.h" | 24 #include "webrtc/common_types.h" |
| 25 #include "webrtc/modules/audio_coding/codecs/audio_format_conversion.h" | 25 #include "webrtc/modules/audio_coding/codecs/audio_format_conversion.h" |
| 26 #include "webrtc/modules/audio_coding/test/PCMFile.h" | 26 #include "webrtc/modules/audio_coding/test/PCMFile.h" |
| 27 #include "webrtc/modules/audio_coding/test/utility.h" | 27 #include "webrtc/modules/audio_coding/test/utility.h" |
| 28 #include "webrtc/system_wrappers/include/trace.h" | |
| 29 #include "webrtc/test/gtest.h" | 28 #include "webrtc/test/gtest.h" |
| 30 #include "webrtc/test/testsupport/fileutils.h" | 29 #include "webrtc/test/testsupport/fileutils.h" |
| 31 #include "webrtc/typedefs.h" | 30 #include "webrtc/typedefs.h" |
| 32 | 31 |
| 33 namespace webrtc { | 32 namespace webrtc { |
| 34 | 33 |
| 35 #define MAX_FILE_NAME_LENGTH_BYTE 500 | 34 #define MAX_FILE_NAME_LENGTH_BYTE 500 |
| 36 | 35 |
| 37 TwoWayCommunication::TwoWayCommunication(int testMode) | 36 TwoWayCommunication::TwoWayCommunication(int testMode) |
| 38 : _acmA(AudioCodingModule::Create(1)), | 37 : _acmA(AudioCodingModule::Create(1)), |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 EXPECT_EQ(0, _acmA->InitializeReceiver()); | 300 EXPECT_EQ(0, _acmA->InitializeReceiver()); |
| 302 // Re-register codec on side A. | 301 // Re-register codec on side A. |
| 303 if (((secPassed % 7) == 6) && (msecPassed >= 990)) { | 302 if (((secPassed % 7) == 6) && (msecPassed >= 990)) { |
| 304 EXPECT_EQ(true, _acmA->RegisterReceiveCodec( | 303 EXPECT_EQ(true, _acmA->RegisterReceiveCodec( |
| 305 codecInst_B->pltype, CodecInstToSdp(*codecInst_B))); | 304 codecInst_B->pltype, CodecInstToSdp(*codecInst_B))); |
| 306 } | 305 } |
| 307 } | 306 } |
| 308 } | 307 } |
| 309 | 308 |
| 310 } // namespace webrtc | 309 } // namespace webrtc |
| OLD | NEW |