summaryrefslogtreecommitdiff
path: root/legacy/evas/src/tests/evas_tests_helpers.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-11-13 23:52:18 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-11-13 23:52:18 +0000
commitcd926b304dc8f072d99d55f90ef4bd6ad9d3a62f (patch)
treeab108ceeb5d9b72e9998c7e5c58d7ba3aaeed5e7 /legacy/evas/src/tests/evas_tests_helpers.h
parent30965869f0e3aaea6adb2765e98a6797e9f03749 (diff)
move libs already in EFL into... IN-EFL - this will stop/prevent/limit
thnigs like people using them and patching them, etc. SVN revision: 79255
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/tests/evas_tests_helpers.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/legacy/evas/src/tests/evas_tests_helpers.h b/legacy/evas/src/tests/evas_tests_helpers.h
deleted file mode 100644
index 2ed07894f4..0000000000
--- a/legacy/evas/src/tests/evas_tests_helpers.h
+++ /dev/null
@@ -1,40 +0,0 @@
1#ifndef EVAS_TEST_HELPERS_H
2#define EVAS_TEST_HELPERS_H
3
4/* FIXME: Currently depends on the buffer engine, should we do anything
5 * fancier? */
6
7#define EVAS_TEST_INIT_EVAS() _setup_evas()
8
9#define EVAS_TEST_FREE_EVAS() \
10do \
11{ \
12 evas_textblock_cursor_free(cur); \
13 evas_object_del(tb); \
14 evas_textblock_style_free(st); \
15 evas_free(evas); \
16 evas_shutdown(); \
17} \
18while (0)
19
20static Evas *
21_setup_evas()
22{
23 Evas *evas;
24 Evas_Engine_Info *einfo;
25
26 evas_init();
27 evas = evas_new();
28
29 evas_output_method_set(evas, evas_render_method_lookup("buffer"));
30 einfo = evas_engine_info_get(evas);
31 evas_engine_info_set(evas, einfo);
32
33 evas_output_size_set(evas, 500, 500);
34 evas_output_viewport_set(evas, 0, 0, 500, 500);
35
36 return evas;
37}
38
39#endif
40