| Index: webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc
|
| diff --git a/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc b/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc
|
| index 9289933c04ad88fec98a15deac3afb97b15dc6de..15188a97b7e9f6a1760ad4d004171ea183956ca6 100644
|
| --- a/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc
|
| +++ b/webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc
|
| @@ -14,6 +14,7 @@
|
| #include "webrtc/modules/audio_coding/codecs/opus/opus_inst.h"
|
| #include "webrtc/modules/audio_coding/neteq/tools/audio_loop.h"
|
| #include "webrtc/test/testsupport/fileutils.h"
|
| +#include "webrtc/test/testsupport/gtest_disable.h"
|
|
|
| namespace webrtc {
|
|
|
| @@ -246,7 +247,7 @@ void OpusTest::TestDtxEffect(bool dtx) {
|
| }
|
|
|
| // Test failing Create.
|
| -TEST(OpusTest, OpusCreateFail) {
|
| +TEST(OpusTest, DISABLED_ON_IOS(OpusCreateFail)) {
|
| WebRtcOpusEncInst* opus_encoder;
|
| WebRtcOpusDecInst* opus_decoder;
|
|
|
| @@ -263,14 +264,14 @@ TEST(OpusTest, OpusCreateFail) {
|
| }
|
|
|
| // Test failing Free.
|
| -TEST(OpusTest, OpusFreeFail) {
|
| +TEST(OpusTest, DISABLED_ON_IOS(OpusFreeFail)) {
|
| // Test to see that an invalid pointer is caught.
|
| EXPECT_EQ(-1, WebRtcOpus_EncoderFree(NULL));
|
| EXPECT_EQ(-1, WebRtcOpus_DecoderFree(NULL));
|
| }
|
|
|
| // Test normal Create and Free.
|
| -TEST_P(OpusTest, OpusCreateFree) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusCreateFree)) {
|
| EXPECT_EQ(0, WebRtcOpus_EncoderCreate(&opus_encoder_,
|
| channels_,
|
| application_));
|
| @@ -282,7 +283,7 @@ TEST_P(OpusTest, OpusCreateFree) {
|
| EXPECT_EQ(0, WebRtcOpus_DecoderFree(opus_decoder_));
|
| }
|
|
|
| -TEST_P(OpusTest, OpusEncodeDecode) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusEncodeDecode)) {
|
| PrepareSpeechData(channels_, 20, 20);
|
|
|
| // Create encoder memory.
|
| @@ -320,7 +321,7 @@ TEST_P(OpusTest, OpusEncodeDecode) {
|
| EXPECT_EQ(0, WebRtcOpus_DecoderFree(opus_decoder_));
|
| }
|
|
|
| -TEST_P(OpusTest, OpusSetBitRate) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusSetBitRate)) {
|
| // Test without creating encoder memory.
|
| EXPECT_EQ(-1, WebRtcOpus_SetBitRate(opus_encoder_, 60000));
|
|
|
| @@ -356,7 +357,7 @@ TEST_P(OpusTest, OpusSetComplexity) {
|
|
|
| // Encode and decode one frame, initialize the decoder and
|
| // decode once more.
|
| -TEST_P(OpusTest, OpusDecodeInit) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusDecodeInit)) {
|
| PrepareSpeechData(channels_, 20, 20);
|
|
|
| // Create encoder memory.
|
| @@ -386,7 +387,7 @@ TEST_P(OpusTest, OpusDecodeInit) {
|
| EXPECT_EQ(0, WebRtcOpus_DecoderFree(opus_decoder_));
|
| }
|
|
|
| -TEST_P(OpusTest, OpusEnableDisableFec) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusEnableDisableFec)) {
|
| // Test without creating encoder memory.
|
| EXPECT_EQ(-1, WebRtcOpus_EnableFec(opus_encoder_));
|
| EXPECT_EQ(-1, WebRtcOpus_DisableFec(opus_encoder_));
|
| @@ -403,7 +404,7 @@ TEST_P(OpusTest, OpusEnableDisableFec) {
|
| EXPECT_EQ(0, WebRtcOpus_EncoderFree(opus_encoder_));
|
| }
|
|
|
| -TEST_P(OpusTest, OpusEnableDisableDtx) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusEnableDisableDtx)) {
|
| // Test without creating encoder memory.
|
| EXPECT_EQ(-1, WebRtcOpus_EnableDtx(opus_encoder_));
|
| EXPECT_EQ(-1, WebRtcOpus_DisableDtx(opus_encoder_));
|
| @@ -437,15 +438,15 @@ TEST_P(OpusTest, OpusEnableDisableDtx) {
|
| EXPECT_EQ(0, WebRtcOpus_EncoderFree(opus_encoder_));
|
| }
|
|
|
| -TEST_P(OpusTest, OpusDtxOff) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusDtxOff)) {
|
| TestDtxEffect(false);
|
| }
|
|
|
| -TEST_P(OpusTest, OpusDtxOn) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusDtxOn)) {
|
| TestDtxEffect(true);
|
| }
|
|
|
| -TEST_P(OpusTest, OpusSetPacketLossRate) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusSetPacketLossRate)) {
|
| // Test without creating encoder memory.
|
| EXPECT_EQ(-1, WebRtcOpus_SetPacketLossRate(opus_encoder_, 50));
|
|
|
| @@ -462,7 +463,7 @@ TEST_P(OpusTest, OpusSetPacketLossRate) {
|
| EXPECT_EQ(0, WebRtcOpus_EncoderFree(opus_encoder_));
|
| }
|
|
|
| -TEST_P(OpusTest, OpusSetMaxPlaybackRate) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusSetMaxPlaybackRate)) {
|
| // Test without creating encoder memory.
|
| EXPECT_EQ(-1, WebRtcOpus_SetMaxPlaybackRate(opus_encoder_, 20000));
|
|
|
| @@ -487,7 +488,7 @@ TEST_P(OpusTest, OpusSetMaxPlaybackRate) {
|
| }
|
|
|
| // Test PLC.
|
| -TEST_P(OpusTest, OpusDecodePlc) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusDecodePlc)) {
|
| PrepareSpeechData(channels_, 20, 20);
|
|
|
| // Create encoder memory.
|
| @@ -524,7 +525,7 @@ TEST_P(OpusTest, OpusDecodePlc) {
|
| }
|
|
|
| // Duration estimation.
|
| -TEST_P(OpusTest, OpusDurationEstimation) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusDurationEstimation)) {
|
| PrepareSpeechData(channels_, 20, 20);
|
|
|
| // Create.
|
| @@ -556,7 +557,7 @@ TEST_P(OpusTest, OpusDurationEstimation) {
|
| EXPECT_EQ(0, WebRtcOpus_DecoderFree(opus_decoder_));
|
| }
|
|
|
| -TEST_P(OpusTest, OpusDecodeRepacketized) {
|
| +TEST_P(OpusTest, DISABLED_ON_IOS(OpusDecodeRepacketized)) {
|
| const int kPackets = 6;
|
|
|
| PrepareSpeechData(channels_, 20, 20 * kPackets);
|
|
|