diff options
Diffstat (limited to 'testing/testingmain.cpp')
-rw-r--r-- | testing/testingmain.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/testingmain.cpp b/testing/testingmain.cpp index 5c3dddf114..1d081b1b94 100644 --- a/testing/testingmain.cpp +++ b/testing/testingmain.cpp @@ -32,6 +32,33 @@ #endif #endif +namespace testing +{ + +void RunEventLoop() +{ +#ifdef OMIM_OS_IPHONE_DEVICE + CFRunLoopRun(); +#else +# ifdef QAPP + QAPP::exec(); +# endif +#endif +} + +void StopEventLoop() +{ +#ifdef OMIM_OS_IPHONE_DEVICE + CFRunLoopStop(CFRunLoopGetMain()); +#else +# ifdef QAPP + QAPP::exit(); +# endif +#endif +} + +} // namespace testing + namespace { bool g_bLastTestOK = true; |