Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'testing/testingmain.cpp')
-rw-r--r--testing/testingmain.cpp27
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;