| 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_standard_test.h" | 11 #include "webrtc/voice_engine/test/auto_test/voe_standard_test.h" |
| 12 | 12 |
| 13 #include <assert.h> | 13 #include <assert.h> |
| 14 #include <stdio.h> | 14 #include <stdio.h> |
| 15 #include <string.h> | 15 #include <string.h> |
| 16 | 16 |
| 17 #include "webrtc/system_wrappers/include/event_wrapper.h" | 17 #include "webrtc/system_wrappers/include/event_wrapper.h" |
| 18 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
| 19 #include "webrtc/voice_engine/include/voe_neteq_stats.h" | |
| 20 #include "webrtc/voice_engine/test/auto_test/automated_mode.h" | 19 #include "webrtc/voice_engine/test/auto_test/automated_mode.h" |
| 21 #include "webrtc/voice_engine/test/auto_test/voe_test_defines.h" | 20 #include "webrtc/voice_engine/test/auto_test/voe_test_defines.h" |
| 22 #include "webrtc/voice_engine/voice_engine_defines.h" | 21 #include "webrtc/voice_engine/voice_engine_defines.h" |
| 23 | 22 |
| 24 DEFINE_bool(include_timing_dependent_tests, true, | 23 DEFINE_bool(include_timing_dependent_tests, true, |
| 25 "If true, we will include tests / parts of tests that are known " | 24 "If true, we will include tests / parts of tests that are known " |
| 26 "to break in slow execution environments (such as valgrind)."); | 25 "to break in slow execution environments (such as valgrind)."); |
| 27 DEFINE_bool(automated, false, | 26 DEFINE_bool(automated, false, |
| 28 "If true, we'll run the automated tests we have in noninteractive " | 27 "If true, we'll run the automated tests we have in noninteractive " |
| 29 "mode."); | 28 "mode."); |
| 30 | 29 |
| 31 using namespace webrtc; | 30 using namespace webrtc; |
| 32 | 31 |
| 33 namespace voetest { | 32 namespace voetest { |
| 34 | 33 |
| 35 int dummy = 0; // Dummy used in different functions to avoid warnings | 34 int dummy = 0; // Dummy used in different functions to avoid warnings |
| 36 | 35 |
| 37 void SubAPIManager::DisplayStatus() const { | 36 void SubAPIManager::DisplayStatus() const { |
| 38 TEST_LOG("Supported sub APIs:\n\n"); | 37 TEST_LOG("Supported sub APIs:\n\n"); |
| 39 if (_base) | 38 if (_base) |
| 40 TEST_LOG(" Base\n"); | 39 TEST_LOG(" Base\n"); |
| 41 if (_codec) | 40 if (_codec) |
| 42 TEST_LOG(" Codec\n"); | 41 TEST_LOG(" Codec\n"); |
| 43 if (_file) | 42 if (_file) |
| 44 TEST_LOG(" File\n"); | 43 TEST_LOG(" File\n"); |
| 45 if (_hardware) | 44 if (_hardware) |
| 46 TEST_LOG(" Hardware\n"); | 45 TEST_LOG(" Hardware\n"); |
| 47 if (_netEqStats) | |
| 48 TEST_LOG(" NetEqStats\n"); | |
| 49 if (_network) | 46 if (_network) |
| 50 TEST_LOG(" Network\n"); | 47 TEST_LOG(" Network\n"); |
| 51 if (_rtp_rtcp) | 48 if (_rtp_rtcp) |
| 52 TEST_LOG(" RTP_RTCP\n"); | 49 TEST_LOG(" RTP_RTCP\n"); |
| 53 if (_apm) | 50 if (_apm) |
| 54 TEST_LOG(" AudioProcessing\n"); | 51 TEST_LOG(" AudioProcessing\n"); |
| 55 ANL(); | 52 ANL(); |
| 56 TEST_LOG("Excluded sub APIs:\n\n"); | 53 TEST_LOG("Excluded sub APIs:\n\n"); |
| 57 if (!_base) | 54 if (!_base) |
| 58 TEST_LOG(" Base\n"); | 55 TEST_LOG(" Base\n"); |
| 59 if (!_codec) | 56 if (!_codec) |
| 60 TEST_LOG(" Codec\n"); | 57 TEST_LOG(" Codec\n"); |
| 61 if (!_file) | 58 if (!_file) |
| 62 TEST_LOG(" File\n"); | 59 TEST_LOG(" File\n"); |
| 63 if (!_hardware) | 60 if (!_hardware) |
| 64 TEST_LOG(" Hardware\n"); | 61 TEST_LOG(" Hardware\n"); |
| 65 if (!_netEqStats) | |
| 66 TEST_LOG(" NetEqStats\n"); | |
| 67 if (!_network) | 62 if (!_network) |
| 68 TEST_LOG(" Network\n"); | 63 TEST_LOG(" Network\n"); |
| 69 if (!_rtp_rtcp) | 64 if (!_rtp_rtcp) |
| 70 TEST_LOG(" RTP_RTCP\n"); | 65 TEST_LOG(" RTP_RTCP\n"); |
| 71 if (!_apm) | 66 if (!_apm) |
| 72 TEST_LOG(" AudioProcessing\n"); | 67 TEST_LOG(" AudioProcessing\n"); |
| 73 ANL(); | 68 ANL(); |
| 74 } | 69 } |
| 75 } // namespace voetest | 70 } // namespace voetest |
| 76 | 71 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 google::AllowCommandLineReparsing(); | 111 google::AllowCommandLineReparsing(); |
| 117 google::ParseCommandLineFlags(&argc, &argv, true); | 112 google::ParseCommandLineFlags(&argc, &argv, true); |
| 118 | 113 |
| 119 if (FLAGS_automated) { | 114 if (FLAGS_automated) { |
| 120 return RunInAutomatedMode(); | 115 return RunInAutomatedMode(); |
| 121 } | 116 } |
| 122 | 117 |
| 123 return RunInManualMode(); | 118 return RunInManualMode(); |
| 124 } | 119 } |
| 125 #endif //#if !defined(WEBRTC_IOS) | 120 #endif //#if !defined(WEBRTC_IOS) |
| OLD | NEW |