openh264/test/api/simple_test.cpp

22 lines
455 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-06-26 03:50:41 +02:00
int CodecUtMain (int argc , char** argv) {
2014-05-20 08:19:23 +02:00
#else
int main (int argc, char** argv) {
2014-05-20 08:19:23 +02:00
#endif
2014-06-26 04:57:39 +02:00
#if (defined(ANDROID_NDK)||defined(APPLE_IOS))
2014-06-26 03:50:41 +02:00
char xmlPath[1024] = "";
sprintf (xmlPath, "xml:%s", argv[1]);
::testing::GTEST_FLAG (output) = xmlPath;
2014-05-20 08:19:23 +02:00
#endif
::testing::InitGoogleTest (&argc, argv);
2013-12-12 03:56:52 +01:00
return RUN_ALL_TESTS();
}