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-timer.h;h=544146af0525f6825bae92a3b0910af72d698876;hp=c479fb87f526d4264b50b229ddbd487fa3e7e591;hb=3fe7030fe503879c909bf28c4a953fd19fee2a3b;hpb=ee2779d9e1060f8527589169fb2f0dbf6f0f8815 diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-timer.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-timer.h index c479fb8..544146a 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-timer.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-timer.h @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_TOOLKIT_TIMER_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -24,7 +24,7 @@ // PUBLIC INCLUDES #define __DALI_TIMER_H__ #include -#include +#include namespace Dali { @@ -40,7 +40,10 @@ class Timer; class Timer : public BaseHandle { public: - typedef SignalV2< bool () > TimerSignalV2; + void MockEmitSignal(); + +public: + typedef Signal< bool () > TimerSignalType; Timer(); static Timer New( unsigned int milliSec ); Timer( const Timer& timer ); @@ -52,11 +55,18 @@ public: void SetInterval( unsigned int milliSec ); unsigned int GetInterval() const; bool IsRunning() const; - TimerSignalV2& TickSignal(); + TimerSignalType& TickSignal(); private: Timer(Internal::Adaptor::Timer* timer); }; } // namespace Dali +namespace Test +{ +int GetTimerCount(); +void EmitGlobalTimerSignal(); +bool AreTimersRunning(); +} + #endif // __DALI_TOOLKIT_TOOLKIT_TIMER_H__