| 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 #ifndef WEBRTC_VOICE_ENGINE_VOE_STANDARD_TEST_H | 11 #ifndef WEBRTC_VOICE_ENGINE_VOE_STANDARD_TEST_H |
| 12 #define WEBRTC_VOICE_ENGINE_VOE_STANDARD_TEST_H | 12 #define WEBRTC_VOICE_ENGINE_VOE_STANDARD_TEST_H |
| 13 | 13 |
| 14 #include <stdio.h> | 14 #include <stdio.h> |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "gflags/gflags.h" | 17 #include "gflags/gflags.h" |
| 18 #include "webrtc/test/testsupport/fileutils.h" |
| 18 #include "webrtc/voice_engine/include/voe_audio_processing.h" | 19 #include "webrtc/voice_engine/include/voe_audio_processing.h" |
| 19 #include "webrtc/voice_engine/include/voe_base.h" | 20 #include "webrtc/voice_engine/include/voe_base.h" |
| 20 #include "webrtc/voice_engine/include/voe_errors.h" | 21 #include "webrtc/voice_engine/include/voe_errors.h" |
| 21 #include "webrtc/voice_engine/include/voe_file.h" | 22 #include "webrtc/voice_engine/include/voe_file.h" |
| 22 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 23 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
| 23 #include "webrtc/voice_engine/test/auto_test/resource_manager.h" | |
| 24 #include "webrtc/voice_engine/test/auto_test/voe_test_common.h" | 24 #include "webrtc/voice_engine/test/auto_test/voe_test_common.h" |
| 25 #include "webrtc/voice_engine/test/auto_test/voe_test_interface.h" | 25 #include "webrtc/voice_engine/test/auto_test/voe_test_interface.h" |
| 26 #ifdef WEBRTC_VOICE_ENGINE_CODEC_API | 26 #ifdef WEBRTC_VOICE_ENGINE_CODEC_API |
| 27 #include "webrtc/voice_engine/include/voe_codec.h" | 27 #include "webrtc/voice_engine/include/voe_codec.h" |
| 28 #endif | 28 #endif |
| 29 #ifdef WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API | 29 #ifdef WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API |
| 30 #include "webrtc/voice_engine/include/voe_external_media.h" | 30 #include "webrtc/voice_engine/include/voe_external_media.h" |
| 31 #endif | 31 #endif |
| 32 #ifdef WEBRTC_VOICE_ENGINE_HARDWARE_API | 32 #ifdef WEBRTC_VOICE_ENGINE_HARDWARE_API |
| 33 #include "webrtc/voice_engine/include/voe_hardware.h" | 33 #include "webrtc/voice_engine/include/voe_hardware.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 VoETestManager(); | 111 VoETestManager(); |
| 112 ~VoETestManager(); | 112 ~VoETestManager(); |
| 113 | 113 |
| 114 // Must be called after construction. | 114 // Must be called after construction. |
| 115 bool Init(); | 115 bool Init(); |
| 116 | 116 |
| 117 void GetInterfaces(); | 117 void GetInterfaces(); |
| 118 int ReleaseInterfaces(); | 118 int ReleaseInterfaces(); |
| 119 | 119 |
| 120 const char* AudioFilename() const { | 120 const char* AudioFilename() const { |
| 121 const std::string& result = resource_manager_.long_audio_file_path(); | 121 const std::string& result = |
| 122 if (result.length() == 0) { | 122 webrtc::test::ResourcePath("voice_engine/audio_long16", "pcm"); |
| 123 TEST_LOG("ERROR: Failed to open input file!"); | |
| 124 } | |
| 125 return result.c_str(); | 123 return result.c_str(); |
| 126 } | 124 } |
| 127 | 125 |
| 128 VoiceEngine* VoiceEnginePtr() const { | 126 VoiceEngine* VoiceEnginePtr() const { |
| 129 return voice_engine_; | 127 return voice_engine_; |
| 130 } | 128 } |
| 131 VoEBase* BasePtr() const { | 129 VoEBase* BasePtr() const { |
| 132 return voe_base_; | 130 return voe_base_; |
| 133 } | 131 } |
| 134 VoECodec* CodecPtr() const { | 132 VoECodec* CodecPtr() const { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 VoEFile* voe_file_; | 178 VoEFile* voe_file_; |
| 181 VoEHardware* voe_hardware_; | 179 VoEHardware* voe_hardware_; |
| 182 VoENetwork* voe_network_; | 180 VoENetwork* voe_network_; |
| 183 #ifdef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API | 181 #ifdef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API |
| 184 VoENetEqStats* voe_neteq_stats_; | 182 VoENetEqStats* voe_neteq_stats_; |
| 185 #endif | 183 #endif |
| 186 VoERTP_RTCP* voe_rtp_rtcp_; | 184 VoERTP_RTCP* voe_rtp_rtcp_; |
| 187 VoEVideoSync* voe_vsync_; | 185 VoEVideoSync* voe_vsync_; |
| 188 VoEVolumeControl* voe_volume_control_; | 186 VoEVolumeControl* voe_volume_control_; |
| 189 VoEAudioProcessing* voe_apm_; | 187 VoEAudioProcessing* voe_apm_; |
| 190 | |
| 191 ResourceManager resource_manager_; | |
| 192 }; | 188 }; |
| 193 | 189 |
| 194 } // namespace voetest | 190 } // namespace voetest |
| 195 | 191 |
| 196 #endif // WEBRTC_VOICE_ENGINE_VOE_STANDARD_TEST_H | 192 #endif // WEBRTC_VOICE_ENGINE_VOE_STANDARD_TEST_H |
| OLD | NEW |