From df3e7cc51f9c073c1d1f151c533dd9e8a8703dff Mon Sep 17 00:00:00 2001 From: Duna Oh Date: Thu, 3 Sep 2020 11:04:32 +0900 Subject: [PATCH] DSEventLoop: add testEmitIdleEntererFuncs() for test cases Change-Id: I70d59b678e53d1bc3f696001a37a57f5f82637d8 --- src/DSEventLoop/DSEventLoop.cpp | 8 ++++++++ src/DSEventLoop/DSEventLoop.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/DSEventLoop/DSEventLoop.cpp b/src/DSEventLoop/DSEventLoop.cpp index 26fdf07..f79af6d 100644 --- a/src/DSEventLoop/DSEventLoop.cpp +++ b/src/DSEventLoop/DSEventLoop.cpp @@ -126,4 +126,12 @@ Eina_Bool DSEventLoop::__emitIdleEntererFuncs(void *data) return EINA_TRUE; } +// for test cases only +Eina_Bool DSEventLoop::testEmitIdleEntererFuncs(void *data) +{ + __idleEntererSignal.emit(data); + + return EINA_TRUE; +} + } // namespace display_server diff --git a/src/DSEventLoop/DSEventLoop.h b/src/DSEventLoop/DSEventLoop.h index c2ea27d..1cc365b 100644 --- a/src/DSEventLoop/DSEventLoop.h +++ b/src/DSEventLoop/DSEventLoop.h @@ -47,6 +47,8 @@ public: // register callback functions void registerCallbackIdleEnterer(DSObject *slot, std::function func); + static Eina_Bool testEmitIdleEntererFuncs(void *data); // for test cases only + private: DSEventLoop(); // private constructor ~DSEventLoop(); // private desctructor -- 2.7.4