1// AlertTest.h
2
3#ifndef ALERT_TEST_H
4#define ALERT_TEST_H
5
6#include <TestCase.h>
7#include <TestShell.h>
8
9class CppUnit::Test;
10
11class AlertTest : public BTestCase {
12public:
13	static CppUnit::Test* Suite();
14
15	// This function called before *each* test added in Suite()
16	void setUp();
17
18	// This function called after *each* test added in Suite()
19	void tearDown();
20
21	//------------------------------------------------------------
22	// Test functions
23	//------------------------------------------------------------
24	//
25	// For conciseness, the test function names are made of codes
26	// which indicate which BAlert construtor options are chosen.
27	//
28	// The format is:
29	//
30	//		btn0[_btn1[_btn2]]_msg_widthMode_spacingMode_alertType
31	//
32	// where:	btn#	is the label of the button for that index,
33	//			msg		is the alert message
34	//			widthMode is the button_width setting:
35	//				UW = B_WIDTH_AS_USUAL
36	//				WW = B_WIDTH_FROM_WIDEST
37	//				LW = B_WIDTH_FROM_LABEL
38	//			spacingMode	is the button_spacing setting:
39	//				ES = B_EVEN_SPACING
40	//				OS = B_OFFSET_SPACING
41	//			alertType specifies the icon displayed on the alert:
42	//				EA = B_EMPTY_ALERT
43	//				IA = B_INFO_ALERT
44	//				LA = B_IDEA_ALERT
45	//				WA = B_WARNING_ALERT
46	//				SA = B_STOP_ALERT
47
48	////// UW_ES_IA - One Button //////
49	void empty_empty_UW_ES_IA();
50	void OK_X_UW_ES_IA();
51	void OK_60X_UW_ES_IA();
52	void twentyX_60X_UW_ES_IA();
53	void fortyX_60X_UW_ES_IA();
54
55	////// LW_ES_IA - One Button //////
56	void empty_empty_LW_ES_IA();
57	void OK_X_LW_ES_IA();
58	void twentyX_60X_LW_ES_IA();
59	void fortyX_60X_LW_ES_IA();
60
61	////// WW_ES_IA - One Button //////
62	void empty_empty_WW_ES_IA();
63	void OK_X_WW_ES_IA();
64	void twentyX_60X_WW_ES_IA();
65
66	////// UW_ES_EA - One Button //////
67	void OK_X_UW_ES_EA();
68	void fortyX_60X_UW_ES_EA();
69
70	////// UW_OS_IA - One Button //////
71	void OK_X_UW_OS_IA();
72	void fortyX_60X_UW_OS_IA();
73
74	////// LW_OS_IA - One Button //////
75	void OK_X_LW_OS_IA();
76
77	////// UW_OS_EA - One Button //////
78	void OK_X_UW_OS_EA();
79
80	////// UW_ES_IA - Two Button //////
81	void OK_Cancel_60X_UW_ES_IA();
82	void twentyX_Cancel_60X_UW_ES_IA();
83	void twentyX_20X_60X_UW_ES_IA();
84
85	////// LW_ES_IA - Two Button //////
86	void empty_empty_X_LW_ES_IA();
87	void OK_Cancel_60X_LW_ES_IA();
88
89	////// WW_ES_IA - Two Button //////
90	void empty_empty_X_WW_ES_IA();
91	void OK_Cancel_60X_WW_ES_IA();
92	void twentyX_Cancel_60X_WW_ES_IA();
93	void twentyX_20X_WW_ES_IA();
94
95	////// UW_ES_EA - Two Button //////
96	void OK_Cancel_60X_UW_ES_EA();
97	void twentyX_20X_60X_UW_ES_EA();
98
99	////// UW_OS_IA - Two Button //////
100	void OK_Cancel_60X_UW_OS_IA();
101
102	////// LW_OS_IA - Two Button //////
103	void OK_Cancel_60X_LW_OS_IA();
104
105	////// LW_OS_EA - Two Button //////
106	void twentyX_OK_60X_LW_OS_EA();
107
108	////// UW_ES_IA - Three Button //////
109	void twentyX_20X_20X_60X_UW_ES_IA();
110
111	////// LW_ES_IA - Three Button //////
112	void empty_empty_empty_X_LW_ES_IA();
113	void Yes_No_Cancel_X_LW_ES_IA();
114	void twentyX_20X_20X_60X_LW_ES_IA();
115
116	////// WW_ES_IA - Three Button //////
117	void empty_empty_empty_X_WW_ES_IA();
118	void Monkey_Dog_Cat_X_WW_ES_IA();
119	void X_20X_X_WW_ES_IA();
120	void Yes_No_Cancel_X_WW_ES_IA();
121	void twentyX_20X_20X_60X_WW_ES_IA();
122
123	////// UW_ES_EA - Three Button //////
124	void twentyX_20X_20X_60X_UW_ES_EA();
125
126	////// UW_OS_IA - Three Button //////
127	void Yes_No_Cancel_60X_UW_OS_IA();
128
129	////// LW_OS_IA - Three Button //////
130	void Yes_No_Cancel_60X_LW_OS_IA();
131
132	////// WW_OS_IA - Three Button //////
133	void Monkey_Dog_Cat_60X_WW_OS_IA();
134
135	////// UW_OS_EA - Three Button //////
136	void twentyX_OK_Cancel_60X_UW_OS_EA();
137};
138
139#endif	// ALERT_TEST_H
140