Add group_feature_all_page_back
[profile/mobile/apps/native/homescreen-efl.git] / test / feature_test / feature_test.c
1 #include "test.h"
2 #if TEST_MODE
3
4 #include "feature_test.h"
5
6 #include <Elementary.h>
7
8 static const int TEST_GROUP_COUNT = 1;
9
10 static void __complete_group_cb(void);
11 static void __run_next_group(void);
12
13 static struct {
14         int current_group;
15         char group_name[TEST_GROUP_COUNT + 1][128];
16         void(*group_starter_pool[TEST_GROUP_COUNT + 1])(unit_group_t * group);
17 } s_info = {
18         .current_group = 0,
19         .group_name = {
20                                         "group_feature_all_page_back",
21                                         ""
22                                 },
23         .group_starter_pool = {
24                                         group_feature_all_page_back,
25                                         NULL,
26                                 },
27 };
28
29 static void __complete_group_cb(void)
30 {
31         s_info.current_group += 1;
32
33         __run_next_group();
34 }
35
36 static void __run_next_group(void)
37 {
38         if (s_info.group_starter_pool[s_info.current_group] == NULL) {
39                 unit_fini();
40
41                 return ;
42         }
43
44         TEST_GROUP(s_info.group_name[s_info.current_group], s_info.group_starter_pool[s_info.current_group], __complete_group_cb);
45 }
46
47 void feature_test(void)
48 {
49         unit_clear_log();
50
51         s_info.current_group = 0;
52
53         __run_next_group();
54 }
55
56 #endif
57