projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "(VectorBlobAtlas) Use Texture instead of BufferImage" into devel/master
[platform/core/uifw/dali-toolkit.git]
/
automated-tests
/
src
/
dali-toolkit
/
dali-toolkit-test-utils
/
toolkit-timer.h
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
d1c2052
..
fdd44b4
100644
(file)
--- 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
@@
-1,8
+1,8
@@
-#ifndef
__DALI_TOOLKIT_TOOLKIT_TIMER_H__
-#define
__DALI_TOOLKIT_TOOLKIT_TIMER_H__
+#ifndef
DALI_TOOLKIT_TOOLKIT_TIMER_H
+#define
DALI_TOOLKIT_TOOLKIT_TIMER_H
/*
/*
- * Copyright (c) 201
4
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
9
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-22,36
+22,51
@@
#include <string>
// PUBLIC INCLUDES
#include <string>
// PUBLIC INCLUDES
-#define
__DALI_TIMER_H__
+#define
DALI_TIMER_H
#include <dali/public-api/object/base-handle.h>
#include <dali/public-api/object/base-handle.h>
-#include <dali/public-api/signals/dali-signal
-v2
.h>
+#include <dali/public-api/signals/dali-signal.h>
namespace Dali
{
namespace Dali
{
+namespace Internal
+{
+namespace Adaptor
+{
+class Timer;
+}
+}
+
class Timer : public BaseHandle
{
public:
class Timer : public BaseHandle
{
public:
- typedef SignalV2< bool () > TimerSignalV2;
- static Timer New( unsigned int milliSec );
+ void MockEmitSignal();
+
+public:
+ typedef Signal< bool () > TimerSignalType;
Timer();
Timer();
+ static Timer New( unsigned int milliSec );
Timer( const Timer& timer );
Timer& operator=( const Timer& timer );
Timer( const Timer& timer );
Timer& operator=( const Timer& timer );
-
virtual
~Timer();
+ ~Timer();
static Timer DownCast( BaseHandle handle );
static Timer DownCast( BaseHandle handle );
- using BaseHandle::operator=;
void Start();
void Stop();
void SetInterval( unsigned int milliSec );
unsigned int GetInterval() const;
bool IsRunning() const;
void Start();
void Stop();
void SetInterval( unsigned int milliSec );
unsigned int GetInterval() const;
bool IsRunning() const;
- TimerSignal
V2
& TickSignal();
+ TimerSignal
Type
& TickSignal();
private:
private:
- Dali::Timer::TimerSignalV2 mTickSignal;
- unsigned int mInterval;
- bool mIsRunning;
+ Timer(Internal::Adaptor::Timer* timer);
};
} // namespace Dali
};
} // namespace Dali
-#endif // __DALI_TOOLKIT_TOOLKIT_TIMER_H__
+namespace Test
+{
+int GetTimerCount();
+void EmitGlobalTimerSignal();
+bool AreTimersRunning();
+}
+
+#endif // DALI_TOOLKIT_TOOLKIT_TIMER_H