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 #ifndef TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_ | 10 #ifndef TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_ |
(...skipping 18 matching lines...) Expand all Loading... |
29 #else | 29 #else |
30 #define DISABLED_ON_MAC(test) test | 30 #define DISABLED_ON_MAC(test) test |
31 #endif | 31 #endif |
32 | 32 |
33 #ifdef _WIN32 | 33 #ifdef _WIN32 |
34 #define DISABLED_ON_WIN(test) DISABLED_##test | 34 #define DISABLED_ON_WIN(test) DISABLED_##test |
35 #else | 35 #else |
36 #define DISABLED_ON_WIN(test) test | 36 #define DISABLED_ON_WIN(test) test |
37 #endif | 37 #endif |
38 | 38 |
| 39 // Using some extra magic here to be able to chain Android and iOS macros. |
| 40 // http://stackoverflow.com/questions/8231966/why-do-i-need-double-layer-of-indi
rection-for-macros |
39 #ifdef WEBRTC_ANDROID | 41 #ifdef WEBRTC_ANDROID |
40 #define DISABLED_ON_ANDROID(test) DISABLED_##test | 42 #define DISABLED_ON_ANDROID_HIDDEN(test) DISABLED_##test |
| 43 #define DISABLED_ON_ANDROID(test) DISABLED_ON_ANDROID_HIDDEN(test) |
41 #else | 44 #else |
42 #define DISABLED_ON_ANDROID(test) test | 45 #define DISABLED_ON_ANDROID_HIDDEN(test) test |
| 46 #define DISABLED_ON_ANDROID(test) DISABLED_ON_ANDROID_HIDDEN(test) |
| 47 #endif |
| 48 |
| 49 #ifdef WEBRTC_IOS |
| 50 #define DISABLED_ON_IOS_HIDDEN(test) DISABLED_##test |
| 51 #define DISABLED_ON_IOS(test) DISABLED_ON_IOS_HIDDEN(test) |
| 52 #else |
| 53 #define DISABLED_ON_IOS_HIDDEN(test) test |
| 54 #define DISABLED_ON_IOS(test) DISABLED_ON_IOS_HIDDEN(test) |
43 #endif | 55 #endif |
44 | 56 |
45 #endif // TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_ | 57 #endif // TEST_TESTSUPPORT_INCLUDE_GTEST_DISABLE_H_ |
OLD | NEW |