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:
2
DEPS
2
DEPS
@@ -14,7 +14,7 @@ vars = {
|
|||||||
|
|
||||||
# External resources like video and audio files used for testing purposes.
|
# External resources like video and audio files used for testing purposes.
|
||||||
# Downloaded on demand when needed.
|
# Downloaded on demand when needed.
|
||||||
"webrtc_resources_revision": "1",
|
"webrtc_resources_revision": "2",
|
||||||
}
|
}
|
||||||
|
|
||||||
# NOTE: Prefer revision numbers to tags for svn deps.
|
# NOTE: Prefer revision numbers to tags for svn deps.
|
||||||
|
|||||||
@@ -335,13 +335,21 @@ void NetEqDecodingTest::DecodeAndCheckStats(const std::string &rtp_file,
|
|||||||
#if defined(WEBRTC_LINUX) && defined(WEBRTC_ARCH_64_BITS)
|
#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() +
|
||||||
"test/data/audio_coding/universal.rtp";
|
"resources/neteq_universal.rtp";
|
||||||
const std::string kInputRefFile = webrtc::test::ProjectRootPath() +
|
const std::string kInputRefFile = webrtc::test::ProjectRootPath() +
|
||||||
"test/data/audio_coding/universal_ref.pcm";
|
"resources/neteq_universal_ref_linux_64.pcm";
|
||||||
DecodeAndCompare(kInputRtpFile, kInputRefFile);
|
DecodeAndCompare(kInputRtpFile, kInputRefFile);
|
||||||
}
|
}
|
||||||
#endif // defined(WEBRTC_LINUX) && defined(WEBRTC_ARCH_64_BITS)
|
#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
|
} // namespace
|
||||||
|
|||||||
Reference in New Issue
Block a user