From 51f11eb5aea3f67ae4dbaa011e320effa6ea4233 Mon Sep 17 00:00:00 2001 From: "henrik.lundin@webrtc.org" Date: Wed, 30 Jan 2013 13:00:33 +0000 Subject: [PATCH] Fixing problems in audio_decoder_unittests The tests did not work in Release mode because of the asserts. Review URL: https://webrtc-codereview.appspot.com/1062010 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3435 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../neteq4/audio_decoder_unittest.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/webrtc/modules/audio_coding/neteq4/audio_decoder_unittest.cc b/webrtc/modules/audio_coding/neteq4/audio_decoder_unittest.cc index be27a7edd..b7e328659 100644 --- a/webrtc/modules/audio_coding/neteq4/audio_decoder_unittest.cc +++ b/webrtc/modules/audio_coding/neteq4/audio_decoder_unittest.cc @@ -260,7 +260,7 @@ class AudioDecoderIlbcTest : public AudioDecoderTest { data_length_ = 10 * frame_size_; decoder_ = new AudioDecoderIlbc; assert(decoder_); - assert(WebRtcIlbcfix_EncoderCreate(&encoder_) == 0); + WebRtcIlbcfix_EncoderCreate(&encoder_); } ~AudioDecoderIlbcTest() { @@ -305,8 +305,8 @@ class AudioDecoderIsacFloatTest : public AudioDecoderTest { data_length_ = 10 * frame_size_; decoder_ = new AudioDecoderIsac; assert(decoder_); - assert(WebRtcIsac_Create(&encoder_) == 0); - assert(WebRtcIsac_SetEncSampRate(encoder_, 16000) == 0); + WebRtcIsac_Create(&encoder_); + WebRtcIsac_SetEncSampRate(encoder_, 16000); } ~AudioDecoderIsacFloatTest() { @@ -345,8 +345,8 @@ class AudioDecoderIsacSwbTest : public AudioDecoderTest { data_length_ = 10 * frame_size_; decoder_ = new AudioDecoderIsacSwb; assert(decoder_); - assert(WebRtcIsac_Create(&encoder_) == 0); - assert(WebRtcIsac_SetEncSampRate(encoder_, 32000) == 0); + WebRtcIsac_Create(&encoder_); + WebRtcIsac_SetEncSampRate(encoder_, 32000); } ~AudioDecoderIsacSwbTest() { @@ -385,7 +385,7 @@ class AudioDecoderIsacFixTest : public AudioDecoderTest { data_length_ = 10 * frame_size_; decoder_ = new AudioDecoderIsacFix; assert(decoder_); - assert(WebRtcIsacfix_Create(&encoder_) == 0); + WebRtcIsacfix_Create(&encoder_); } ~AudioDecoderIsacFixTest() { @@ -424,7 +424,7 @@ class AudioDecoderG722Test : public AudioDecoderTest { data_length_ = 10 * frame_size_; decoder_ = new AudioDecoderG722; assert(decoder_); - assert(WebRtcG722_CreateEncoder(&encoder_) == 0); + WebRtcG722_CreateEncoder(&encoder_); } ~AudioDecoderG722Test() { @@ -455,7 +455,7 @@ class AudioDecoderOpusTest : public AudioDecoderTest { data_length_ = 10 * frame_size_; decoder_ = new AudioDecoderOpus(kDecoderOpus); assert(decoder_); - assert(WebRtcOpus_EncoderCreate(&encoder_, 1) == 0); + WebRtcOpus_EncoderCreate(&encoder_, 1); } ~AudioDecoderOpusTest() {