ref: 462f56d4130f4061aa467e5e1178d44c276fdea9
parent: d3dc48d1d108b1944fd1a94f955c787534e8b4bd
author: unknown <Zhu.Ling@USERCIS-9HU8JI9.hfwbx.hf.webex.com>
date: Wed Aug 20 06:46:05 EDT 2014
ut_win32
--- a/test/api/decode_encode_test.cpp
+++ b/test/api/decode_encode_test.cpp
@@ -96,6 +96,9 @@
#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
--- a/test/api/decoder_test.cpp
+++ b/test/api/decoder_test.cpp
@@ -56,6 +56,9 @@
#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
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -80,6 +80,9 @@
#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
--- a/test/api/encoder_test.cpp
+++ b/test/api/encoder_test.cpp
@@ -60,6 +60,9 @@
#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