forked from enlightenment/efl
tests: add function to do "real" timers
in very specific cases it's necessary to match the exact timing of internal functionality, so add a function to provide that capability Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8439
This commit is contained in:
parent
1e54bb7d9e
commit
c249cb3c8b
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include <Evas.h>
|
||||
#include <Ecore.h>
|
||||
#include "suite_helpers.h"
|
||||
|
||||
void elm_test_config(TCase *tc);
|
||||
void elm_test_check(TCase *tc);
|
||||
|
|
|
@ -128,6 +128,12 @@ timer_add(double in, Ecore_Task_Cb cb, void *data)
|
|||
return ecore_timer_add(in * TIMER_SCALE, cb, data);
|
||||
}
|
||||
|
||||
void *
|
||||
real_timer_add(double in, Ecore_Task_Cb cb, void *data)
|
||||
{
|
||||
return ecore_timer_add(in, cb, data);
|
||||
}
|
||||
|
||||
static void
|
||||
_win_manual_render(void *data, const Efl_Event *event EINA_UNUSED)
|
||||
{
|
||||
|
|
|
@ -6,5 +6,6 @@
|
|||
int suite_setup(Eina_Bool legacy);
|
||||
void _elm2_suite_init(void);
|
||||
void _elm_suite_shutdown(void);
|
||||
void *real_timer_add(double in, Ecore_Task_Cb cb, void *data);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue