mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-30 06:12:20 -06:00
Bazaar: TEST_GUI_APP_MAIN GoogleTest Windows implementation.
git-svn-id: svn://ultimatepp.org/upp/trunk@14991 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2a13927e70
commit
5f3d6509e1
1 changed files with 17 additions and 1 deletions
|
|
@ -37,7 +37,23 @@
|
|||
|
||||
#endif
|
||||
|
||||
#if defined(PLATFORM_X11)
|
||||
#if defined(PLATFORM_WIN32) || defined(PLATFORM_WIN64)
|
||||
#define TEST_GUI_APP_MAIN \
|
||||
void TestGuiMainFn(); \
|
||||
\
|
||||
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int nCmdShow) \
|
||||
{ \
|
||||
UPP::AppInitEnvironment__(); \
|
||||
UPP::Ctrl::InitWin32(hInstance); \
|
||||
testing::InitGoogleTest(&__argc, __argv); \
|
||||
int testsResult = RUN_ALL_TESTS(); \
|
||||
UPP::Ctrl::ExitWin32(); \
|
||||
UPP::AppExit__(); \
|
||||
return testsResult; \
|
||||
} \
|
||||
void TestGuiMainFn()
|
||||
|
||||
#elif defined(PLATFORM_X11)
|
||||
|
||||
#define TEST_GUI_APP_MAIN \
|
||||
void TestGuiMainFn(); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue