openh264/test/api/simple_test.cpp

22 lines
431 B
C++
Raw Normal View History

2013-12-12 03:56:52 +01:00
#include <gtest/gtest.h>
2014-05-20 08:19:23 +02:00
#if defined (ANDROID_NDK)
#include <stdio.h>
#endif
2013-12-12 03:56:52 +01:00
2014-05-20 08:19:23 +02:00
2014-06-05 10:20:50 +02:00
#if (defined(ANDROID_NDK)||defined(APPLE_IOS))
2014-05-20 08:19:23 +02:00
int CodecUtMain(int argc , char** argv ) {
#else
int main (int argc, char** argv) {
2014-05-20 08:19:23 +02:00
#endif
2014-05-23 09:59:40 +02:00
#if defined(ANDROID_NDK)
2014-05-20 08:19:23 +02:00
char xmlPath[1024] = "";
sprintf(xmlPath,"xml:%s",argv[1]);
::testing::GTEST_FLAG(output) = xmlPath;
#endif
::testing::InitGoogleTest (&argc, argv);
2013-12-12 03:56:52 +01:00
return RUN_ALL_TESTS();
}