testmain.cpp 309 B

123456789101112131415
  1. #include <gtest/gtest.h>
  2. int main(int argc, char *argv[]) {
  3. testing::InitGoogleTest(&argc, argv);
  4. return RUN_ALL_TESTS();
  5. }
  6. #ifdef __MINGW32__
  7. #include <windows.h>
  8. INT WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  9. PSTR lpCmdLine, INT nCmdShow)
  10. {
  11. return main(__argc, __argv);
  12. }
  13. #endif