Use ResourcePath in NetEQ unittest
Review URL: http://webrtc-codereview.appspot.com/320001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1130 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -336,8 +336,8 @@ void NetEqDecodingTest::DecodeAndCheckStats(const std::string &rtp_file,
|
|||||||
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";
|
||||||
const std::string kInputRefFile = webrtc::test::ProjectRootPath() +
|
const std::string kInputRefFile =
|
||||||
"resources/neteq_universal_ref_linux_64.pcm";
|
webrtc::test::ResourcePath("neteq_universal_ref", "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)
|
||||||
@@ -347,10 +347,10 @@ TEST_F(NetEqDecodingTest, TestBitExactness) {
|
|||||||
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";
|
||||||
const std::string kNetworkStatRefFile = webrtc::test::ProjectRootPath() +
|
const std::string kNetworkStatRefFile =
|
||||||
"resources/neteq_network_stats.dat";
|
webrtc::test::ResourcePath("neteq_network_stats", "dat");
|
||||||
const std::string kRtcpStatRefFile = webrtc::test::ProjectRootPath() +
|
const std::string kRtcpStatRefFile =
|
||||||
"resources/neteq_rtcp_stats.dat";
|
webrtc::test::ResourcePath("neteq_rtcp_stats", "dat");
|
||||||
DecodeAndCheckStats(kInputRtpFile, kNetworkStatRefFile, kRtcpStatRefFile);
|
DecodeAndCheckStats(kInputRtpFile, kNetworkStatRefFile, kRtcpStatRefFile);
|
||||||
}
|
}
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|||||||
Reference in New Issue
Block a user