Index: webrtc/modules/audio_coding/test/target_delay_unittest.cc |
diff --git a/webrtc/modules/audio_coding/test/target_delay_unittest.cc b/webrtc/modules/audio_coding/test/target_delay_unittest.cc |
index d7c0411c92ba7570fd154cdc54bb5280877157de..97471bb56680591cae97d90c0fd0ee734e1dec1a 100644 |
--- a/webrtc/modules/audio_coding/test/target_delay_unittest.cc |
+++ b/webrtc/modules/audio_coding/test/target_delay_unittest.cc |
@@ -17,7 +17,6 @@ |
#include "webrtc/modules/include/module_common_types.h" |
#include "webrtc/system_wrappers/include/sleep.h" |
#include "webrtc/test/testsupport/fileutils.h" |
-#include "webrtc/test/testsupport/gtest_disable.h" |
namespace webrtc { |
@@ -199,23 +198,50 @@ class TargetDelayTest : public ::testing::Test { |
uint8_t payload_[kPayloadLenBytes]; |
}; |
-TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(OutOfRangeInput)) { |
+#if defined(WEBRTC_ANDROID) |
+#define MAYBE_OutOfRangeInput DISABLED_OutOfRangeInput |
+#else |
+#define MAYBE_OutOfRangeInput OutOfRangeInput |
+#endif |
+TEST_F(TargetDelayTest, MAYBE_OutOfRangeInput) { |
OutOfRangeInput(); |
} |
-TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(NoTargetDelayBufferSizeChanges)) { |
+#if defined(WEBRTC_ANDROID) |
+#define MAYBE_NoTargetDelayBufferSizeChanges \ |
+ DISABLED_NoTargetDelayBufferSizeChanges |
+#else |
+#define MAYBE_NoTargetDelayBufferSizeChanges NoTargetDelayBufferSizeChanges |
+#endif |
+TEST_F(TargetDelayTest, MAYBE_NoTargetDelayBufferSizeChanges) { |
NoTargetDelayBufferSizeChanges(); |
} |
-TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(WithTargetDelayBufferNotChanging)) { |
+#if defined(WEBRTC_ANDROID) |
+#define MAYBE_WithTargetDelayBufferNotChanging \ |
+ DISABLED_WithTargetDelayBufferNotChanging |
+#else |
+#define MAYBE_WithTargetDelayBufferNotChanging WithTargetDelayBufferNotChanging |
+#endif |
+TEST_F(TargetDelayTest, MAYBE_WithTargetDelayBufferNotChanging) { |
WithTargetDelayBufferNotChanging(); |
} |
-TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(RequiredDelayAtCorrectRange)) { |
+#if defined(WEBRTC_ANDROID) |
+#define MAYBE_RequiredDelayAtCorrectRange DISABLED_RequiredDelayAtCorrectRange |
+#else |
+#define MAYBE_RequiredDelayAtCorrectRange RequiredDelayAtCorrectRange |
+#endif |
+TEST_F(TargetDelayTest, MAYBE_RequiredDelayAtCorrectRange) { |
RequiredDelayAtCorrectRange(); |
} |
-TEST_F(TargetDelayTest, DISABLED_ON_ANDROID(TargetDelayBufferMinMax)) { |
+#if defined(WEBRTC_ANDROID) |
+#define MAYBE_TargetDelayBufferMinMax DISABLED_TargetDelayBufferMinMax |
+#else |
+#define MAYBE_TargetDelayBufferMinMax TargetDelayBufferMinMax |
+#endif |
+TEST_F(TargetDelayTest, MAYBE_TargetDelayBufferMinMax) { |
TargetDelayBufferMinMax(); |
} |