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:
Mike Blumenkrantz 2019-03-21 13:24:47 -04:00 committed by Marcel Hollerbach
parent 1e54bb7d9e
commit c249cb3c8b
3 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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)
{

View File

@ -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