summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile_Edje.am3
-rw-r--r--src/tests/edje/edje_tests_helpers.h37
2 files changed, 39 insertions, 1 deletions
diff --git a/src/Makefile_Edje.am b/src/Makefile_Edje.am
index 9ae0270..ddd8304 100644
--- a/src/Makefile_Edje.am
+++ b/src/Makefile_Edje.am
@@ -190,7 +190,8 @@ bin/edje/edje_convert.h \
190bin/edje/edje_convert.c \ 190bin/edje/edje_convert.c \
191bin/edje/edje_data_convert.c \ 191bin/edje/edje_data_convert.c \
192bin/edje/edje_convert_main.c \ 192bin/edje/edje_convert_main.c \
193lib/edje/edje_convert.c 193lib/edje/edje_convert.c \
194rc/tests/edje/edje_tests_helpers.h
194 195
195bin_SCRIPTS += bin/edje/edje_recc 196bin_SCRIPTS += bin/edje/edje_recc
196 197
diff --git a/src/tests/edje/edje_tests_helpers.h b/src/tests/edje/edje_tests_helpers.h
new file mode 100644
index 0000000..fa87e81
--- /dev/null
+++ b/src/tests/edje/edje_tests_helpers.h
@@ -0,0 +1,37 @@
1#ifndef EDJE_TEST_HELPERS_H
2#define EDJE_TEST_HELPERS_H
3
4/* FIXME: Currently depends on the buffer engine, should we do anything
5 * fancier? */
6
7#define EDJE_TEST_INIT_EVAS() _setup_evas()
8
9#define EDJE_TEST_FREE_EVAS() \
10do \
11{ \
12 evas_free(evas); \
13 evas_shutdown(); \
14} \
15while (0)
16
17static Evas *
18_setup_evas()
19{
20 Evas *evas;
21 Evas_Engine_Info *einfo;
22
23 evas_init();
24 evas = evas_new();
25
26 evas_output_method_set(evas, evas_render_method_lookup("buffer"));
27 einfo = evas_engine_info_get(evas);
28 evas_engine_info_set(evas, einfo);
29
30 evas_output_size_set(evas, 500, 500);
31 evas_output_viewport_set(evas, 0, 0, 500, 500);
32
33 return evas;
34}
35
36#endif
37