X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-event-thread-callback.h;h=9693e6ef4e4f096831b1cc70873d149375bb87a9;hp=a0303bec805a07befbe1404a50720ed344005fa8;hb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;hpb=475209602f0a7ad74883059a818cbbe41be263e1 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 a0303be..9693e6e 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 @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_EVENT_THREAD_CALLBACK_H__ -#define __DALI_TOOLKIT_EVENT_THREAD_CALLBACK_H__ +#ifndef DALI_TOOLKIT_EVENT_THREAD_CALLBACK_H +#define DALI_TOOLKIT_EVENT_THREAD_CALLBACK_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,16 +17,16 @@ * limitations under the License. * */ -#define __DALI_EVENT_THREAD_CALLBACK_H_ +#define DALI_EVENT_THREAD_CALLBACK_H // EXTERNAL INCLUDES -#include +#include #include namespace Dali { -class DALI_IMPORT_API EventThreadCallback +class DALI_TOOLKIT_API EventThreadCallback { public: @@ -36,12 +36,10 @@ public: void Trigger(); - bool WaitingForTrigger(unsigned int count, unsigned int seconds ); + bool WaitingForTrigger(); CallbackBase* GetCallback(); - static EventThreadCallback* Get(); - private: // undefined copy constructor. @@ -68,9 +66,9 @@ namespace Test * * Will wait for a maximum of 30s before failing the test and returning. */ -bool WaitForEventThreadTrigger( int triggerCount ); +bool WaitForEventThreadTrigger( int triggerCount, int timeoutInSeconds=30 ); } -#endif /* __DALI_TOOLKIT_EVENT_THREAD_CALLBACK_H__ */ +#endif // DALI_TOOLKIT_EVENT_THREAD_CALLBACK_H