shithub: openh264

ref: 06a67b72a88d8548a4f483cad0fb7e5df32db6f3
dir: /test/api/simple_test.cpp/

View raw version
#include <gtest/gtest.h>
#if defined (ANDROID_NDK)
#include <stdio.h>
#endif


#if (defined(ANDROID_NDK)||defined(APPLE_IOS))
int CodecUtMain (int argc , char** argv) {
#else
int main (int argc, char** argv) {
#endif

#if (defined(ANDROID_NDK)||defined(APPLE_IOS))
  char xmlPath[1024] = "";
  sprintf (xmlPath, "xml:%s", argv[1]);
  ::testing::GTEST_FLAG (output) = xmlPath;
#endif
  ::testing::InitGoogleTest (&argc, argv);

  return RUN_ALL_TESTS();
}