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:
parent
eaf2bd916b
commit
46e636a3f5
@ -153,8 +153,8 @@ TEST_F(ViENetworkTest, ReceiveBWEPacket_NoExtension) {
|
|||||||
}
|
}
|
||||||
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
|
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
|
||||||
unsigned int bandwidth = 0;
|
unsigned int bandwidth = 0;
|
||||||
EXPECT_EQ(-1, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
|
EXPECT_EQ(0, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
|
||||||
&bandwidth));
|
&bandwidth));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(ViENetworkTest, ReceiveBWEPacket_TOF) {
|
TEST_F(ViENetworkTest, ReceiveBWEPacket_TOF) {
|
||||||
@ -173,8 +173,8 @@ TEST_F(ViENetworkTest, ReceiveBWEPacket_TOF) {
|
|||||||
}
|
}
|
||||||
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
|
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
|
||||||
unsigned int bandwidth = 0;
|
unsigned int bandwidth = 0;
|
||||||
EXPECT_EQ(-1, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
|
EXPECT_EQ(0, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
|
||||||
&bandwidth));
|
&bandwidth));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(ViENetworkTest, ReceiveBWEPacket_AST) {
|
TEST_F(ViENetworkTest, ReceiveBWEPacket_AST) {
|
||||||
@ -220,7 +220,7 @@ TEST_F(ViENetworkTest, ReceiveBWEPacket_AST_DisabledReceive) {
|
|||||||
ReceiveASTPacketsForBWE();
|
ReceiveASTPacketsForBWE();
|
||||||
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
|
EXPECT_FALSE(transport.FindREMBFor(kSsrc1, 0.0));
|
||||||
unsigned int bandwidth = 0;
|
unsigned int bandwidth = 0;
|
||||||
EXPECT_EQ(-1, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
|
EXPECT_EQ(0, vie_.rtp_rtcp->GetEstimatedReceiveBandwidth(channel_,
|
||||||
&bandwidth));
|
&bandwidth));
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user