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
This commit is contained in:
henrik.lundin@webrtc.org 2015-01-30 13:04:29 +00:00
parent 05db352f56
commit a671f4b2cb

View File

@ -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_));