Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: webrtc/voice_engine/test/auto_test/voe_standard_test.h

Issue 2549443002: Remove API-related #defines from voice_engine_configurations.h (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/voice_engine/test/auto_test/voe_standard_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/test/testsupport/fileutils.h"
19 #include "webrtc/voice_engine/include/voe_audio_processing.h" 19 #include "webrtc/voice_engine/include/voe_audio_processing.h"
20 #include "webrtc/voice_engine/include/voe_base.h" 20 #include "webrtc/voice_engine/include/voe_base.h"
21 #include "webrtc/voice_engine/include/voe_errors.h" 21 #include "webrtc/voice_engine/include/voe_errors.h"
22 #include "webrtc/voice_engine/include/voe_file.h" 22 #include "webrtc/voice_engine/include/voe_file.h"
23 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" 23 #include "webrtc/voice_engine/include/voe_rtp_rtcp.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
27 #include "webrtc/voice_engine/include/voe_codec.h" 26 #include "webrtc/voice_engine/include/voe_codec.h"
28 #endif
29 #ifdef WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API
30 #include "webrtc/voice_engine/include/voe_external_media.h" 27 #include "webrtc/voice_engine/include/voe_external_media.h"
31 #endif
32 #ifdef WEBRTC_VOICE_ENGINE_HARDWARE_API
33 #include "webrtc/voice_engine/include/voe_hardware.h" 28 #include "webrtc/voice_engine/include/voe_hardware.h"
34 #endif
35 #include "webrtc/voice_engine/include/voe_network.h" 29 #include "webrtc/voice_engine/include/voe_network.h"
36 #ifdef WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API
37 #include "webrtc/voice_engine/include/voe_video_sync.h" 30 #include "webrtc/voice_engine/include/voe_video_sync.h"
38 #endif
39 #ifdef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API
40 #include "webrtc/voice_engine/include/voe_volume_control.h" 31 #include "webrtc/voice_engine/include/voe_volume_control.h"
41 #endif
42 32
43 #ifndef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API
44 #error "Deprecated"
45 #endif
46 #ifndef WEBRTC_VOICE_ENGINE_CODEC_API
47 #error "Deprecated"
48 #endif
49 #ifndef WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API
50 #error "Deprecated"
51 #endif
52 #ifndef WEBRTC_VOICE_ENGINE_FILE_API
53 #error "Deprecated"
54 #endif
55 #ifndef WEBRTC_VOICE_ENGINE_HARDWARE_API
56 #error "Deprecated"
57 #endif
58 #ifndef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
59 #error "Deprecated"
60 #endif
61 #ifndef WEBRTC_VOICE_ENGINE_RTP_RTCP_API
62 #error "Deprecated"
63 #endif
64 #ifndef WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API
65 #error "Deprecated"
66 #endif
67 #ifndef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API
68 #error "Deprecated"
69 #endif
70
71 #ifdef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
72 namespace webrtc { 33 namespace webrtc {
73 class VoENetEqStats; 34 class VoENetEqStats;
74 } 35 }
75 #endif
76 36
77 #if defined(WEBRTC_ANDROID) 37 #if defined(WEBRTC_ANDROID)
78 extern char mobileLogMsg[640]; 38 extern char mobileLogMsg[640];
79 #endif 39 #endif
80 40
81 DECLARE_bool(include_timing_dependent_tests); 41 DECLARE_bool(include_timing_dependent_tests);
82 42
83 namespace voetest { 43 namespace voetest {
84 44
85 class SubAPIManager { 45 class SubAPIManager {
86 public: 46 public:
87 SubAPIManager() 47 SubAPIManager()
88 : _base(true), 48 : _base(true),
89 _codec(false), 49 _codec(false),
90 _externalMedia(false), 50 _externalMedia(false),
91 _file(false), 51 _file(false),
92 _hardware(false), 52 _hardware(false),
93 _netEqStats(false), 53 _netEqStats(false),
94 _network(false), 54 _network(false),
95 _rtp_rtcp(false), 55 _rtp_rtcp(false),
96 _videoSync(false), 56 _videoSync(false),
97 _volumeControl(false), 57 _volumeControl(false),
98 _apm(false) { 58 _apm(false) {
99 #ifdef WEBRTC_VOICE_ENGINE_CODEC_API
100 _codec = true; 59 _codec = true;
101 #endif
102 #ifdef WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API
103 _externalMedia = true; 60 _externalMedia = true;
104 #endif
105 #ifdef WEBRTC_VOICE_ENGINE_FILE_API
106 _file = true; 61 _file = true;
107 #endif
108 #ifdef WEBRTC_VOICE_ENGINE_HARDWARE_API
109 _hardware = true; 62 _hardware = true;
110 #endif
111 #ifdef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
112 _netEqStats = true; 63 _netEqStats = true;
113 #endif
114 _network = true; 64 _network = true;
115 #ifdef WEBRTC_VOICE_ENGINE_RTP_RTCP_API
116 _rtp_rtcp = true; 65 _rtp_rtcp = true;
117 #endif
118 #ifdef WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API
119 _videoSync = true; 66 _videoSync = true;
120 #endif
121 #ifdef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API
122 _volumeControl = true; 67 _volumeControl = true;
123 #endif
124 #ifdef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API
125 _apm = true; 68 _apm = true;
126 #endif
127 } 69 }
128 70
129 void DisplayStatus() const; 71 void DisplayStatus() const;
130 72
131 private: 73 private:
132 bool _base, _codec; 74 bool _base, _codec;
133 bool _externalMedia, _file, _hardware; 75 bool _externalMedia, _file, _hardware;
134 bool _netEqStats, _network, _rtp_rtcp, _videoSync, _volumeControl, _apm; 76 bool _netEqStats, _network, _rtp_rtcp, _videoSync, _volumeControl, _apm;
135 }; 77 };
136 78
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 125 }
184 126
185 VoEVideoSync* VideoSyncPtr() const { 127 VoEVideoSync* VideoSyncPtr() const {
186 return voe_vsync_; 128 return voe_vsync_;
187 } 129 }
188 130
189 VoEExternalMedia* ExternalMediaPtr() const { 131 VoEExternalMedia* ExternalMediaPtr() const {
190 return voe_xmedia_; 132 return voe_xmedia_;
191 } 133 }
192 134
193 #ifdef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
194 VoENetEqStats* NetEqStatsPtr() const { 135 VoENetEqStats* NetEqStatsPtr() const {
195 return voe_neteq_stats_; 136 return voe_neteq_stats_;
196 } 137 }
197 #endif
198 138
199 private: 139 private:
200 bool initialized_; 140 bool initialized_;
201 141
202 VoiceEngine* voice_engine_; 142 VoiceEngine* voice_engine_;
203 VoEBase* voe_base_; 143 VoEBase* voe_base_;
204 VoECodec* voe_codec_; 144 VoECodec* voe_codec_;
205 VoEExternalMedia* voe_xmedia_; 145 VoEExternalMedia* voe_xmedia_;
206 VoEFile* voe_file_; 146 VoEFile* voe_file_;
207 VoEHardware* voe_hardware_; 147 VoEHardware* voe_hardware_;
208 VoENetwork* voe_network_; 148 VoENetwork* voe_network_;
209 #ifdef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
210 VoENetEqStats* voe_neteq_stats_; 149 VoENetEqStats* voe_neteq_stats_;
211 #endif
212 VoERTP_RTCP* voe_rtp_rtcp_; 150 VoERTP_RTCP* voe_rtp_rtcp_;
213 VoEVideoSync* voe_vsync_; 151 VoEVideoSync* voe_vsync_;
214 VoEVolumeControl* voe_volume_control_; 152 VoEVolumeControl* voe_volume_control_;
215 VoEAudioProcessing* voe_apm_; 153 VoEAudioProcessing* voe_apm_;
216 }; 154 };
217 155
218 } // namespace voetest 156 } // namespace voetest
219 157
220 #endif // WEBRTC_VOICE_ENGINE_VOE_STANDARD_TEST_H 158 #endif // WEBRTC_VOICE_ENGINE_VOE_STANDARD_TEST_H
OLDNEW
« no previous file with comments | « no previous file | webrtc/voice_engine/test/auto_test/voe_standard_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698