Fix failing test introduced with r6111.

Test was assuming that getting the receive estimate of a stream which hasn't received packets would return an error, new behavior is to return 0.

TBR=wu@webrtc.org
BUG=crbug/371714

Review URL: https://webrtc-codereview.appspot.com/21419004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6114 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2014-05-12 23:17:29 +00:00
parent eaf2bd916b
commit 46e636a3f5

View File

@ -153,8 +153,8 @@ TEST_F(ViENetworkTest, ReceiveBWEPacket_NoExtension) {
}
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
unsigned int bandwidth = 0;
EXPECT_EQ(-1, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
&bandwidth));
EXPECT_EQ(0, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
&bandwidth));
}
TEST_F(ViENetworkTest, ReceiveBWEPacket_TOF) {
@ -173,8 +173,8 @@ TEST_F(ViENetworkTest, ReceiveBWEPacket_TOF) {
}
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
unsigned int bandwidth = 0;
EXPECT_EQ(-1, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
&bandwidth));
EXPECT_EQ(0, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
&bandwidth));
}
TEST_F(ViENetworkTest, ReceiveBWEPacket_AST) {
@ -220,7 +220,7 @@ TEST_F(ViENetworkTest, ReceiveBWEPacket_AST_DisabledReceive) {
ReceiveASTPacketsForBWE();
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
unsigned int bandwidth = 0;
EXPECT_EQ(-1, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
&bandwidth));
EXPECT_EQ(0, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
&bandwidth));
}
} // namespace