Enable NetEQ statistics unit testing
Adding test target NetEqDecodingTest::TestNetworkStatistics. Update neteq_unittest to get files from resources folder. Update DEPS file to get resources revision 2. Review URL: http://webrtc-codereview.appspot.com/291013 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1050 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -335,13 +335,21 @@ void NetEqDecodingTest::DecodeAndCheckStats(const std::string &rtp_file,
|
||||
#if defined(WEBRTC_LINUX) && defined(WEBRTC_ARCH_64_BITS)
|
||||
TEST_F(NetEqDecodingTest, TestBitExactness) {
|
||||
const std::string kInputRtpFile = webrtc::test::ProjectRootPath() +
|
||||
"test/data/audio_coding/universal.rtp";
|
||||
"resources/neteq_universal.rtp";
|
||||
const std::string kInputRefFile = webrtc::test::ProjectRootPath() +
|
||||
"test/data/audio_coding/universal_ref.pcm";
|
||||
"resources/neteq_universal_ref_linux_64.pcm";
|
||||
DecodeAndCompare(kInputRtpFile, kInputRefFile);
|
||||
}
|
||||
#endif // defined(WEBRTC_LINUX) && defined(WEBRTC_ARCH_64_BITS)
|
||||
|
||||
//TODO(hlundin): Add test target NetEqDecodingTest::TestNetworkStatistics.
|
||||
TEST_F(NetEqDecodingTest, TestNetworkStatistics) {
|
||||
const std::string kInputRtpFile = webrtc::test::ProjectRootPath() +
|
||||
"resources/neteq_universal.rtp";
|
||||
const std::string kNetworkStatRefFile = webrtc::test::ProjectRootPath() +
|
||||
"resources/neteq_network_stats.dat";
|
||||
const std::string kRtcpStatRefFile = webrtc::test::ProjectRootPath() +
|
||||
"resources/neteq_rtcp_stats.dat";
|
||||
DecodeAndCheckStats(kInputRtpFile, kNetworkStatRefFile, kRtcpStatRefFile);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user