X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-event-thread-callback.h;h=1ae27d231a8f872049d0dca1119c39a76775f5dd;hb=7845c204ad99f3452a0afb3b2893b941eeb9feb9;hp=d67ca24676b8d69f85ca339afdc0bb5845ff44cd;hpb=4c6d34154c81cf86b4c3662b81e1223f3326ceb5;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.h index d67ca24..1ae27d2 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-event-thread-callback.h @@ -36,12 +36,10 @@ public: void Trigger(); - void WaitingForTrigger(unsigned int count); + bool WaitingForTrigger(); CallbackBase* GetCallback(); - static EventThreadCallback* Get(); - private: // undefined copy constructor. @@ -58,4 +56,19 @@ private: } +namespace Test +{ + +/** + * Wait for the tested code to create an event trigger, then + * wait for triggerCount Trigger calls to occur, and execute the trigger + * callback afterwards. + * + * Will wait for a maximum of 30s before failing the test and returning. + */ +bool WaitForEventThreadTrigger( int triggerCount ); + +} + + #endif /* __DALI_TOOLKIT_EVENT_THREAD_CALLBACK_H__ */