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_TEST_COMMON_H_ | 11 #ifndef WEBRTC_VOICE_ENGINE_VOE_TEST_COMMON_H_ |
12 #define WEBRTC_VOICE_ENGINE_VOE_TEST_COMMON_H_ | 12 #define WEBRTC_VOICE_ENGINE_VOE_TEST_COMMON_H_ |
13 | 13 |
14 #ifdef WEBRTC_ANDROID | 14 #ifdef WEBRTC_ANDROID |
15 #include <android/log.h> | 15 #include <android/log.h> |
16 #define ANDROID_LOG_TAG "VoiceEngine Auto Test" | 16 #define ANDROID_LOG_TAG "VoiceEngine Auto Test" |
17 #define TEST_LOG(...) \ | 17 #define TEST_LOG(...) \ |
18 __android_log_print(ANDROID_LOG_DEBUG, ANDROID_LOG_TAG, __VA_ARGS__) | 18 __android_log_print(ANDROID_LOG_DEBUG, ANDROID_LOG_TAG, __VA_ARGS__) |
19 #define TEST_LOG_ERROR(...) \ | 19 #define TEST_LOG_ERROR(...) \ |
20 __android_log_print(ANDROID_LOG_ERROR, ANDROID_LOG_TAG, __VA_ARGS__) | 20 __android_log_print(ANDROID_LOG_ERROR, ANDROID_LOG_TAG, __VA_ARGS__) |
21 #define TEST_LOG_FLUSH | 21 #define TEST_LOG_FLUSH |
22 #else | 22 #else |
23 #define TEST_LOG printf | 23 #define TEST_LOG printf |
24 #define TEST_LOG_ERROR printf | 24 #define TEST_LOG_ERROR printf |
25 #define TEST_LOG_FLUSH fflush(NULL) | 25 #define TEST_LOG_FLUSH fflush(NULL) |
26 #endif | 26 #endif |
27 | 27 |
28 // Read WEBRTC_VOICE_ENGINE_XXX_API compiler flags | |
29 #include "webrtc/voice_engine_configurations.h" | |
30 | |
31 // Time in ms to test each packet size for each codec | 28 // Time in ms to test each packet size for each codec |
32 #define CODEC_TEST_TIME 400 | 29 #define CODEC_TEST_TIME 400 |
33 | 30 |
34 #endif // WEBRTC_VOICE_ENGINE_VOE_TEST_COMMON_H_ | 31 #endif // WEBRTC_VOICE_ENGINE_VOE_TEST_COMMON_H_ |
OLD | NEW |