Enabling NetEQ unittest for more platforms
Removing platform limitations for NetEqDecodingTest:TestBitExactness and NetEqDecodingTest:TestNetworkStatistics. New reference files where provided in revision 6 of the resources, which allows us to enable these tests. BUG= TEST=neteq_unittests linux32/64, win32/64, mac32 Review URL: http://webrtc-codereview.appspot.com/329027 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1332 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
3905b0c45d
commit
d047b2e7f6
@ -346,7 +346,6 @@ void NetEqDecodingTest::PopulateRtpInfo(int frame_index,
|
|||||||
rtp_info->markerBit = 0;
|
rtp_info->markerBit = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(WEBRTC_LINUX) && defined(WEBRTC_ARCH_64_BITS)
|
|
||||||
TEST_F(NetEqDecodingTest, TestBitExactness) {
|
TEST_F(NetEqDecodingTest, TestBitExactness) {
|
||||||
const std::string kInputRtpFile = webrtc::test::ProjectRootPath() +
|
const std::string kInputRtpFile = webrtc::test::ProjectRootPath() +
|
||||||
"resources/neteq_universal.rtp";
|
"resources/neteq_universal.rtp";
|
||||||
@ -354,10 +353,7 @@ TEST_F(NetEqDecodingTest, TestBitExactness) {
|
|||||||
webrtc::test::ResourcePath("neteq_universal_ref", "pcm");
|
webrtc::test::ResourcePath("neteq_universal_ref", "pcm");
|
||||||
DecodeAndCompare(kInputRtpFile, kInputRefFile);
|
DecodeAndCompare(kInputRtpFile, kInputRefFile);
|
||||||
}
|
}
|
||||||
#endif // defined(WEBRTC_LINUX) && defined(WEBRTC_ARCH_64_BITS)
|
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
// TODO(hlundin): Enable this test for windows.
|
|
||||||
TEST_F(NetEqDecodingTest, TestNetworkStatistics) {
|
TEST_F(NetEqDecodingTest, TestNetworkStatistics) {
|
||||||
const std::string kInputRtpFile = webrtc::test::ProjectRootPath() +
|
const std::string kInputRtpFile = webrtc::test::ProjectRootPath() +
|
||||||
"resources/neteq_universal.rtp";
|
"resources/neteq_universal.rtp";
|
||||||
@ -367,7 +363,6 @@ TEST_F(NetEqDecodingTest, TestNetworkStatistics) {
|
|||||||
webrtc::test::ResourcePath("neteq_rtcp_stats", "dat");
|
webrtc::test::ResourcePath("neteq_rtcp_stats", "dat");
|
||||||
DecodeAndCheckStats(kInputRtpFile, kNetworkStatRefFile, kRtcpStatRefFile);
|
DecodeAndCheckStats(kInputRtpFile, kNetworkStatRefFile, kRtcpStatRefFile);
|
||||||
}
|
}
|
||||||
#endif // _WIN32
|
|
||||||
|
|
||||||
TEST_F(NetEqDecodingTest, TestFrameWaitingTimeStatistics) {
|
TEST_F(NetEqDecodingTest, TestFrameWaitingTimeStatistics) {
|
||||||
// Use fax mode to avoid time-scaling. This is to simplify the testing of
|
// Use fax mode to avoid time-scaling. This is to simplify the testing of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user