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

Side by Side Diff: webrtc/voice_engine/test/auto_test/voe_test_defines.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
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_TEST_DEFINES_H 11 #ifndef WEBRTC_VOICE_ENGINE_VOE_TEST_DEFINES_H
12 #define WEBRTC_VOICE_ENGINE_VOE_TEST_DEFINES_H 12 #define WEBRTC_VOICE_ENGINE_VOE_TEST_DEFINES_H
13 13
14 #include "webrtc/voice_engine/test/auto_test/voe_test_common.h" 14 #include "webrtc/voice_engine/test/auto_test/voe_test_common.h"
15 15
16 // Read WEBRTC_VOICE_ENGINE_XXX_API compiler flags 16 // Read WEBRTC_VOICE_ENGINE_XXX_API compiler flags
17 #include "webrtc/voice_engine_configurations.h" 17 #include "webrtc/voice_engine_configurations.h"
18 18
19 #ifndef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API
20 #error "Deprecated"
21 #endif
22 #ifndef WEBRTC_VOICE_ENGINE_CODEC_API
23 #error "Deprecated"
24 #endif
25 #ifndef WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API
26 #error "Deprecated"
27 #endif
28 #ifndef WEBRTC_VOICE_ENGINE_FILE_API
29 #error "Deprecated"
30 #endif
31 #ifndef WEBRTC_VOICE_ENGINE_HARDWARE_API
32 #error "Deprecated"
33 #endif
34 #ifndef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
35 #error "Deprecated"
36 #endif
37 #ifndef WEBRTC_VOICE_ENGINE_RTP_RTCP_API
38 #error "Deprecated"
39 #endif
40 #ifndef WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API
41 #error "Deprecated"
42 #endif
43 #ifndef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API
44 #error "Deprecated"
45 #endif
46
47 // Select the tests to execute, list order below is same as they will be 19 // Select the tests to execute, list order below is same as they will be
48 // executed. Note that, all settings below will be overriden by sub-API 20 // executed. Note that, all settings below will be overriden by sub-API
49 // settings in voice_engine_configurations.h. 21 // settings in voice_engine_configurations.h.
50 #define _TEST_BASE_ 22 #define _TEST_BASE_
51 #define _TEST_RTP_RTCP_ 23 #define _TEST_RTP_RTCP_
52 #define _TEST_HARDWARE_ 24 #define _TEST_HARDWARE_
53 #define _TEST_CODEC_ 25 #define _TEST_CODEC_
54 #define _TEST_VOLUME_ 26 #define _TEST_VOLUME_
55 #define _TEST_AUDIO_PROCESSING_ 27 #define _TEST_AUDIO_PROCESSING_
56 #define _TEST_FILE_ 28 #define _TEST_FILE_
57 #define _TEST_NETWORK_ 29 #define _TEST_NETWORK_
58 #define _TEST_VIDEO_SYNC_ 30 #define _TEST_VIDEO_SYNC_
59 #define _TEST_NETEQ_STATS_ 31 #define _TEST_NETEQ_STATS_
60 #define _TEST_XMEDIA_ 32 #define _TEST_XMEDIA_
61 33
62 #define TESTED_AUDIO_LAYER kAudioPlatformDefault 34 #define TESTED_AUDIO_LAYER kAudioPlatformDefault
63 //#define TESTED_AUDIO_LAYER kAudioLinuxPulse 35 //#define TESTED_AUDIO_LAYER kAudioLinuxPulse
64 36
65 // #define _ENABLE_VISUAL_LEAK_DETECTOR_ // Enables VLD to find memory leaks 37 // #define _ENABLE_VISUAL_LEAK_DETECTOR_ // Enables VLD to find memory leaks
66 // #define _ENABLE_IPV6_TESTS_ // Enables IPv6 tests in network xtest 38 // #define _ENABLE_IPV6_TESTS_ // Enables IPv6 tests in network xtest
67 // #define _USE_EXTENDED_TRACE_ // Adds unique trace files for extended test 39 // #define _USE_EXTENDED_TRACE_ // Adds unique trace files for extended test
68 // #define _MEMORY_TEST_ 40 // #define _MEMORY_TEST_
69 41
70 // Enable this when running instrumentation of some kind to exclude tests 42 // Enable this when running instrumentation of some kind to exclude tests
71 // that will not pass due to slowed down execution. 43 // that will not pass due to slowed down execution.
72 // #define _INSTRUMENTATION_TESTING_ 44 // #define _INSTRUMENTATION_TESTING_
73 45
74 // Exclude (override) API tests given preprocessor settings in
75 // engine_configurations.h
76 #ifndef WEBRTC_VOICE_ENGINE_CODEC_API
77 #undef _TEST_CODEC_
78 #endif
79 #ifndef WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API
80 #undef _TEST_VOLUME_
81 #endif
82 #ifndef WEBRTC_VOICE_ENGINE_RTP_RTCP_API
83 #undef _TEST_RTP_RTCP_
84 #endif
85 #ifndef WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API
86 #undef _TEST_AUDIO_PROCESSING_
87 #endif
88 #ifndef WEBRTC_VOICE_ENGINE_FILE_API
89 #undef _TEST_FILE_
90 #endif
91 #ifndef WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API
92 #undef _TEST_VIDEO_SYNC_
93 #endif
94 #ifndef WEBRTC_VOICE_ENGINE_HARDWARE_API
95 #undef _TEST_HARDWARE_
96 #endif
97 #ifndef WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API
98 #undef _TEST_XMEDIA_
99 #endif
100 #ifndef WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
101 #undef _TEST_NETEQ_STATS_
102 #endif
103
104 // Some parts can cause problems while running Insure 46 // Some parts can cause problems while running Insure
105 #ifdef __INSURE__ 47 #ifdef __INSURE__
106 #define _INSTRUMENTATION_TESTING_ 48 #define _INSTRUMENTATION_TESTING_
107 #endif 49 #endif
108 50
109 #define MARK() TEST_LOG("."); fflush(NULL); // Add test marker 51 #define MARK() TEST_LOG("."); fflush(NULL); // Add test marker
110 #define ANL() TEST_LOG("\n") // Add New Line 52 #define ANL() TEST_LOG("\n") // Add New Line
111 #define AOK() TEST_LOG("[Test is OK]"); fflush(NULL); // Add OK 53 #define AOK() TEST_LOG("[Test is OK]"); fflush(NULL); // Add OK
112 #if defined(_WIN32) 54 #if defined(_WIN32)
113 #define PAUSE \ 55 #define PAUSE \
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 { \ 119 { \
178 TEST_LOG("\n>>> Excluding test at line: %i <<<\n\n",__LINE__); \ 120 TEST_LOG("\n>>> Excluding test at line: %i <<<\n\n",__LINE__); \
179 } 121 }
180 122
181 #define INCOMPLETE() \ 123 #define INCOMPLETE() \
182 { \ 124 { \
183 TEST_LOG("\n>>> Incomplete test at line: %i <<<\n\n",__LINE__); \ 125 TEST_LOG("\n>>> Incomplete test at line: %i <<<\n\n",__LINE__); \
184 } 126 }
185 127
186 #endif // WEBRTC_VOICE_ENGINE_VOE_TEST_DEFINES_H 128 #endif // WEBRTC_VOICE_ENGINE_VOE_TEST_DEFINES_H
OLDNEW
« no previous file with comments | « webrtc/voice_engine/test/auto_test/voe_standard_test.cc ('k') | webrtc/voice_engine/voe_audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698