ut: remove gtest codes
[platform/core/uifw/libtdm.git] / utests / stubs / stub_tdm_helper.h
1 #ifndef STUB_TDM_HELPER_H
2 #define STUB_TDM_HELPER_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 static double stub_tdm_helper_get_time_ret_val;
9
10 static void
11 stub_tdm_helper_init()
12 {
13         struct timespec tp;
14
15         if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
16                 stub_tdm_helper_get_time_ret_val =  (double)tp.tv_sec + ((double)tp.tv_nsec) / 1000000000.0;
17         else
18                 stub_tdm_helper_get_time_ret_val = 0;
19 }
20
21 static double
22 stub_tdm_helper_get_time(void)
23 {
24         return stub_tdm_helper_get_time_ret_val;
25 }
26
27 static void
28 stub_tdm_helper_dump_buffer_str(tbm_surface_h buffer, char *dir, char *str)
29 {
30
31 }
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #define tdm_helper_get_time_ret_val stub_tdm_helper_get_time_ret_val
38 #define tdm_helper_get_time stub_tdm_helper_get_time
39 #define tdm_helper_dump_buffer_str stub_tdm_helper_dump_buffer_str
40
41 #endif // STUB_TDM_HELPER_H