From a671f4b2cb7532fa2a09beb5eb91659958799ee8 Mon Sep 17 00:00:00 2001 From: "henrik.lundin@webrtc.org" Date: Fri, 30 Jan 2015 13:04:29 +0000 Subject: [PATCH] Fixing a VoE test to set correct rate for iSAC The test was relying on that the code accepted an invalid rate. Now the test passes a correct rate instead. COAUTHOR=kwiberg@webrtc.org R=henrika@webrtc.org Review URL: https://webrtc-codereview.appspot.com/33179004 Cr-Commit-Position: refs/heads/master@{#8217} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8217 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../test/auto_test/standard/codec_before_streaming_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc b/webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc index 66c00d459a..a733b12705 100644 --- a/webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc +++ b/webrtc/voice_engine/test/auto_test/standard/codec_before_streaming_test.cc @@ -47,6 +47,7 @@ TEST_F(CodecBeforeStreamingTest, GetRecPayloadTypeRecognizesISAC) { TEST_F(CodecBeforeStreamingTest, SetRecPayloadTypeCanChangeISACPayloadType) { strcpy(codec_instance_.plname, "ISAC"); + codec_instance_.rate = 32000; codec_instance_.pltype = 123; EXPECT_EQ(0, voe_codec_->SetRecPayloadType(channel_, codec_instance_));