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 #ifdef WIN32 | 17 #ifdef WIN32 |
18 #include <Windows.h> | 18 #include <Windows.h> |
19 #endif | 19 #endif |
20 | 20 |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "webrtc/engine_configurations.h" | 22 #include "webrtc/engine_configurations.h" |
23 #include "webrtc/common_types.h" | 23 #include "webrtc/common_types.h" |
24 #include "webrtc/modules/audio_coding/main/test/PCMFile.h" | 24 #include "webrtc/modules/audio_coding/test/PCMFile.h" |
25 #include "webrtc/modules/audio_coding/main/test/utility.h" | 25 #include "webrtc/modules/audio_coding/test/utility.h" |
26 #include "webrtc/system_wrappers/include/trace.h" | 26 #include "webrtc/system_wrappers/include/trace.h" |
27 #include "webrtc/test/testsupport/fileutils.h" | 27 #include "webrtc/test/testsupport/fileutils.h" |
28 | 28 |
29 namespace webrtc { | 29 namespace webrtc { |
30 | 30 |
31 #define MAX_FILE_NAME_LENGTH_BYTE 500 | 31 #define MAX_FILE_NAME_LENGTH_BYTE 500 |
32 | 32 |
33 TwoWayCommunication::TwoWayCommunication(int testMode) | 33 TwoWayCommunication::TwoWayCommunication(int testMode) |
34 : _acmA(AudioCodingModule::Create(1)), | 34 : _acmA(AudioCodingModule::Create(1)), |
35 _acmRefA(AudioCodingModule::Create(3)), | 35 _acmRefA(AudioCodingModule::Create(3)), |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 if (((secPassed % 7) == 6) && (msecPassed == 0)) | 290 if (((secPassed % 7) == 6) && (msecPassed == 0)) |
291 EXPECT_EQ(0, _acmA->InitializeReceiver()); | 291 EXPECT_EQ(0, _acmA->InitializeReceiver()); |
292 // Re-register codec on side A. | 292 // Re-register codec on side A. |
293 if (((secPassed % 7) == 6) && (msecPassed >= 990)) { | 293 if (((secPassed % 7) == 6) && (msecPassed >= 990)) { |
294 EXPECT_EQ(0, _acmA->RegisterReceiveCodec(*codecInst_B)); | 294 EXPECT_EQ(0, _acmA->RegisterReceiveCodec(*codecInst_B)); |
295 } | 295 } |
296 } | 296 } |
297 } | 297 } |
298 | 298 |
299 } // namespace webrtc | 299 } // namespace webrtc |
OLD | NEW |