This commit is contained in:
unknown 2014-08-20 10:46:05 +08:00
parent d3dc48d1d1
commit 462f56d413
4 changed files with 12 additions and 0 deletions

View File

@ -96,6 +96,9 @@ TEST_P (DecodeEncodeTest, CompareOutput) {
#if defined(ANDROID_NDK)
std::string filename = std::string ("/sdcard/") + p.fileName;
ASSERT_TRUE (Open (filename.c_str()));
#elif defined(_WIN32)
std::string filename = std::string ("../../../../../") + p.fileName;
ASSERT_TRUE (Open (filename.c_str()));
#else
ASSERT_TRUE (Open (p.fileName));
#endif

View File

@ -56,6 +56,9 @@ TEST_P (DecoderOutputTest, CompareOutput) {
#if defined(ANDROID_NDK)
std::string filename = std::string ("/sdcard/") + p.fileName;
DecodeFile (filename.c_str(), this);
#elif defined(_WIN32)
std::string filename = std::string ("../../../../../") + p.fileName;
DecodeFile (filename.c_str(), this);
#else
DecodeFile (p.fileName, this);
#endif

View File

@ -80,6 +80,9 @@ TEST_F (EncodeDecodeTestVclNal, DecoderVclNal) {
#if defined(ANDROID_NDK)
std::string filename = std::string ("/sdcard/") + p.fileName;
ASSERT_TRUE (fileStream.Open (filename.c_str()));
#elif defined(_WIN32)
std::string filename = std::string ("../../../../../") + p.fileName;
ASSERT_TRUE (fileStream.Open (filename.c_str()));
#else
ASSERT_TRUE (fileStream.Open (p.fileName));
#endif

View File

@ -60,6 +60,9 @@ TEST_P (EncoderOutputTest, CompareOutput) {
#if defined(ANDROID_NDK)
std::string filename = std::string ("/sdcard/") + p.fileName;
EncodeFile (filename.c_str(), p.usageType , p.width, p.height, p.frameRate, p.slices, p.denoise, p.layers, this);
#elif defined(_WIN32)
std::string filename = std::string ("../../../../../") + p.fileName;
EncodeFile (filename.c_str(), p.usageType , p.width, p.height, p.frameRate, p.slices, p.denoise, p.layers, this);
#else
EncodeFile (p.fileName, p.usageType , p.width, p.height, p.frameRate, p.slices, p.denoise, p.layers, this);
#endif