openh264/test/api/simple_test.cpp

22 lines
455 B
C++
Raw Normal View History

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