Index: webrtc/modules/utility/source/file_player_unittests.cc |
diff --git a/webrtc/modules/utility/source/file_player_unittests.cc b/webrtc/modules/utility/source/file_player_unittests.cc |
index 754e1242d3e5fdd77afdd86c7158065c3de6d4ca..0d48dbb6a6be7e6b2f43949008f474080b5f1b13 100644 |
--- a/webrtc/modules/utility/source/file_player_unittests.cc |
+++ b/webrtc/modules/utility/source/file_player_unittests.cc |
@@ -20,7 +20,6 @@ |
#include "webrtc/base/md5digest.h" |
#include "webrtc/base/stringencode.h" |
#include "webrtc/test/testsupport/fileutils.h" |
-#include "webrtc/test/testsupport/gtest_disable.h" |
DEFINE_bool(file_player_output, false, "Generate reference files."); |
@@ -82,7 +81,11 @@ class FilePlayerTest : public ::testing::Test { |
FILE* output_file_; |
}; |
-TEST_F(FilePlayerTest, DISABLED_ON_IOS(PlayWavPcmuFile)) { |
+#if defined(WEBRTC_IOS) |
+TEST_F(FilePlayerTest, DISABLED_PlayWavPcmuFile) { |
+#else |
+TEST_F(FilePlayerTest, PlayWavPcmuFile) { |
+#endif |
const std::string kFileName = |
test::ResourcePath("utility/encapsulated_pcmu_8khz", "wav"); |
// The file is longer than this, but keeping the output shorter limits the |
@@ -93,7 +96,11 @@ TEST_F(FilePlayerTest, DISABLED_ON_IOS(PlayWavPcmuFile)) { |
PlayFileAndCheck(kFileName, kRefChecksum, kOutputLengthMs); |
} |
-TEST_F(FilePlayerTest, DISABLED_ON_IOS(PlayWavPcm16File)) { |
+#if defined(WEBRTC_IOS) |
+TEST_F(FilePlayerTest, DISABLED_PlayWavPcm16File) { |
+#else |
+TEST_F(FilePlayerTest, PlayWavPcm16File) { |
+#endif |
const std::string kFileName = |
test::ResourcePath("utility/encapsulated_pcm16b_8khz", "wav"); |
// The file is longer than this, but keeping the output shorter limits the |