| Index: webrtc/modules/audio_coding/acm2/acm_receiver_unittest_oldapi.cc
|
| diff --git a/webrtc/modules/audio_coding/acm2/acm_receiver_unittest_oldapi.cc b/webrtc/modules/audio_coding/acm2/acm_receiver_unittest_oldapi.cc
|
| index a7dd3d4484f880f2f924f85143bde4dc210cc3a2..95f8bf65713ff1c8ac7012ad7b6da72c625674d7 100644
|
| --- a/webrtc/modules/audio_coding/acm2/acm_receiver_unittest_oldapi.cc
|
| +++ b/webrtc/modules/audio_coding/acm2/acm_receiver_unittest_oldapi.cc
|
| @@ -20,7 +20,6 @@
|
| #include "webrtc/system_wrappers/include/clock.h"
|
| #include "webrtc/test/test_suite.h"
|
| #include "webrtc/test/testsupport/fileutils.h"
|
| -#include "webrtc/test/testsupport/gtest_disable.h"
|
|
|
| namespace webrtc {
|
|
|
| @@ -164,7 +163,11 @@ class AcmReceiverTestOldApi : public AudioPacketizationCallback,
|
| FrameType last_frame_type_;
|
| };
|
|
|
| -TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(AddCodecGetCodec)) {
|
| +#if defined(WEBRTC_ANDROID)
|
| +TEST_F(AcmReceiverTestOldApi, DISABLED_AddCodecGetCodec) {
|
| +#else
|
| +TEST_F(AcmReceiverTestOldApi, AddCodecGetCodec) {
|
| +#endif
|
| // Add codec.
|
| for (size_t n = 0; n < codecs_.size(); ++n) {
|
| if (n & 0x1) // Just add codecs with odd index.
|
| @@ -188,7 +191,11 @@ TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(AddCodecGetCodec)) {
|
| }
|
| }
|
|
|
| -TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(AddCodecChangePayloadType)) {
|
| +#if defined(WEBRTC_ANDROID)
|
| +TEST_F(AcmReceiverTestOldApi, DISABLED_AddCodecChangePayloadType) {
|
| +#else
|
| +TEST_F(AcmReceiverTestOldApi, AddCodecChangePayloadType) {
|
| +#endif
|
| const CodecIdInst codec1(RentACodec::CodecId::kPCMA);
|
| CodecInst codec2 = codec1.inst;
|
| ++codec2.pltype;
|
| @@ -209,7 +216,11 @@ TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(AddCodecChangePayloadType)) {
|
| EXPECT_EQ(true, CodecsEqual(codec2, test_codec));
|
| }
|
|
|
| -TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(AddCodecChangeCodecId)) {
|
| +#if defined(WEBRTC_ANDROID)
|
| +TEST_F(AcmReceiverTestOldApi, DISABLED_AddCodecChangeCodecId) {
|
| +#else
|
| +TEST_F(AcmReceiverTestOldApi, AddCodecChangeCodecId) {
|
| +#endif
|
| const CodecIdInst codec1(RentACodec::CodecId::kPCMU);
|
| CodecIdInst codec2(RentACodec::CodecId::kPCMA);
|
| codec2.inst.pltype = codec1.inst.pltype;
|
| @@ -229,7 +240,11 @@ TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(AddCodecChangeCodecId)) {
|
| EXPECT_EQ(true, CodecsEqual(codec2.inst, test_codec));
|
| }
|
|
|
| -TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(AddCodecRemoveCodec)) {
|
| +#if defined(WEBRTC_ANDROID)
|
| +TEST_F(AcmReceiverTestOldApi, DISABLED_AddCodecRemoveCodec) {
|
| +#else
|
| +TEST_F(AcmReceiverTestOldApi, AddCodecRemoveCodec) {
|
| +#endif
|
| const CodecIdInst codec(RentACodec::CodecId::kPCMA);
|
| const int payload_type = codec.inst.pltype;
|
| EXPECT_EQ(
|
| @@ -247,7 +262,11 @@ TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(AddCodecRemoveCodec)) {
|
| EXPECT_EQ(-1, receiver_->DecoderByPayloadType(payload_type, &ci));
|
| }
|
|
|
| -TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(SampleRate)) {
|
| +#if defined(WEBRTC_ANDROID)
|
| +TEST_F(AcmReceiverTestOldApi, DISABLED_SampleRate) {
|
| +#else
|
| +TEST_F(AcmReceiverTestOldApi, SampleRate) {
|
| +#endif
|
| const RentACodec::CodecId kCodecId[] = {RentACodec::CodecId::kISAC,
|
| RentACodec::CodecId::kISACSWB};
|
| AddSetOfCodecs(kCodecId);
|
| @@ -265,7 +284,11 @@ TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(SampleRate)) {
|
| }
|
| }
|
|
|
| -TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(PostdecodingVad)) {
|
| +#if defined(WEBRTC_ANDROID)
|
| +TEST_F(AcmReceiverTestOldApi, DISABLED_PostdecodingVad) {
|
| +#else
|
| +TEST_F(AcmReceiverTestOldApi, PostdecodingVad) {
|
| +#endif
|
| receiver_->EnableVad();
|
| EXPECT_TRUE(receiver_->vad_enabled());
|
| const CodecIdInst codec(RentACodec::CodecId::kPCM16Bwb);
|
| @@ -299,8 +322,11 @@ TEST_F(AcmReceiverTestOldApi, DISABLED_ON_ANDROID(PostdecodingVad)) {
|
| #define IF_ISAC_FLOAT(x) DISABLED_##x
|
| #endif
|
|
|
| -TEST_F(AcmReceiverTestOldApi,
|
| - DISABLED_ON_ANDROID(IF_ISAC_FLOAT(LastAudioCodec))) {
|
| +#if defined(WEBRTC_ANDROID)
|
| +TEST_F(AcmReceiverTestOldApi, DISABLED_LastAudioCodec) {
|
| +#else
|
| +TEST_F(AcmReceiverTestOldApi, IF_ISAC_FLOAT(LastAudioCodec)) {
|
| +#endif
|
| const RentACodec::CodecId kCodecId[] = {
|
| RentACodec::CodecId::kISAC, RentACodec::CodecId::kPCMA,
|
| RentACodec::CodecId::kISACSWB, RentACodec::CodecId::kPCM16Bswb32kHz};
|
|
|