Correction additional about "Removed system controller."
[profile/ivi/ico-uxf-homescreen.git] / tests / apps-framework / tst_common.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9
10 #ifndef __TST_COMMON_H__
11 #define __TST_COMMON_H__
12
13 #include "ico_syc_type.h"
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /* log macro */
20 #define print_ok(fmt, arg...)                   \
21     do {                                        \
22         fprintf(stdout,                         \
23                 "[TestCase] " fmt " : OK\n",    \
24                 ##arg);                         \
25     } while (0)
26
27 #define print_ng(fmt, arg...)                   \
28     do {                                        \
29         fprintf(stdout,                         \
30                 "[TestCase] " fmt " : NG\n",    \
31                 ##arg);                         \
32     } while (0)
33
34
35 /* test server uri */
36 #define SRV_URI ":18081"
37
38 /* return value */
39 #define TST_APPID       (char *)"org.test.syc.app"
40 #define TST_WIN_NAME    (char *)"surface A"
41
42 #define TST_SURFACE     100
43 #define TST_NODE        1
44 #define TST_LAYER       2
45 #define TST_POS_X       10
46 #define TST_POS_Y       20
47 #define TST_WIDTH       1024
48 #define TST_HEIGHT      768
49 #define TST_RAISE       ICO_SYC_WIN_RAISE_RAISE
50 #define TST_VISIBLE     ICO_SYC_WIN_VISIBLE_SHOW
51 #define TST_INVISIBLE   ICO_SYC_WIN_VISIBLE_HIDE
52 #define TST_ACTIVE      ICO_SYC_WIN_ACTIVE_NONE
53 #define TST_STRIDE      1
54 #define TST_FORMAT      ICO_SYC_THUMB_FORMAT_ARGB
55
56 #define TST_ZONE_A      (char *)"zone A"
57 #define TST_ZONE_B      (char *)"zone B"
58 #define TST_NAME_A      (char *)"name A"
59 #define TST_NAME_B      (char *)"name B"
60 #define TST_NAME_C      (char *)"name C"
61 #define TST_ID_A        (char *)"id A"
62 #define TST_ID_B        (char *)"id B"
63
64 #define TST_ECU         (char *)"ECU A"
65 #define TST_display     (char *)"display A"
66 #define TST_layer       (char *)"layer A"
67 #define TST_layout      (char *)"layout A"
68 #define TST_area        (char *)"area A"
69 #define TST_dispatchApp (char *)"dispatchApp A"
70 #define TST_role        (char *)"role A"
71 #define TST_resourceId  55555
72
73
74 #define TST_ADJUST      1
75 #define TST_INPUT_EV    2
76 #define TST_RES_TYPE    0
77 #define TST_REG_WIDTH   200
78 #define TST_REG_HEIGHT  100
79 #define TST_REG_HOT_X   120
80 #define TST_REG_HOT_Y   80
81 #define TST_REG_CUR_X   40
82 #define TST_REG_CUR_Y   30
83 #define TST_REG_CUR_WIDTH  160
84 #define TST_REG_CUR_HEIGHT 100
85 #define TST_REG_ATTR    12345678
86
87 #define TST_USER_A      (char *)"user A"
88 #define TST_USER_B      (char *)"User B"
89 #define TST_USER_C      (char *)"user c"
90
91 #define TST_LASTINFO    (char *)"{\"page\": \"last page\", \"time\": 5}"
92
93 #ifdef __cplusplus
94 }
95 #endif
96
97 #endif /* __TST_COMMON_H__ */
98 /* vim: set expandtab ts=4 sw=4: */