|
1 /* |
|
2 * Copyright (c) 2002 - 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __T_GSLISTBOX_H__ |
|
20 #define __T_GSLISTBOX_H__ |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <CEUnitTestSuiteClass.h> |
|
24 #include <EUnitDecorators.h> |
|
25 #include <GSListBox.h> |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 |
|
31 |
|
32 // CLASS DEFINITION |
|
33 NONSHARABLE_CLASS( T_GSListBox ) |
|
34 : public CEUnitTestSuiteClass |
|
35 { |
|
36 public: // Constructors and destructors |
|
37 |
|
38 /** |
|
39 * Two phase construction |
|
40 */ |
|
41 static T_GSListBox* NewL(); |
|
42 static T_GSListBox* NewLC(); |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 ~T_GSListBox(); |
|
47 |
|
48 private: // Constructors and destructors |
|
49 |
|
50 T_GSListBox(); |
|
51 void ConstructL(); |
|
52 |
|
53 private: // New methods |
|
54 |
|
55 void SetupL(); |
|
56 void Teardown(); |
|
57 |
|
58 // CGSListboxEntry test cases |
|
59 void SetupListBoxEntryL(); |
|
60 void T_Global_GSListBox_NewLC(); |
|
61 void T_Global_GSListBox_New2LC(); |
|
62 void T_Global_GSListBox_New3LC(); |
|
63 void T_Global_GSListBox_FeatureIdL(); |
|
64 void T_Global_GSListBox_TypeL(); |
|
65 void T_Global_GSListBox_CaptionL(); |
|
66 void T_Global_GSListBox_SetDynamicTextL(); |
|
67 void T_Global_GSListBox_SetDynamicTextDoublePaneL(); |
|
68 |
|
69 // CGSItemTextArray test cases |
|
70 void SetupGSItemTextArrayL(); |
|
71 void T_Global_GSItemTextArray_SetupL(); |
|
72 void T_Global_GSItemTextArray_MdcaCountL(); |
|
73 void T_Global_GSItemTextArray_MdcaPointL(); |
|
74 void T_Global_GSItemTextArray_SetDynamicTextL(); |
|
75 void T_Global_GSItemTextArray_SetDynamicTextDoublePaneL(); |
|
76 void T_Global_GSItemTextArray_SetItemVisibilityL(); |
|
77 void T_Global_GSItemTextArray_CurrentFeatureL(); |
|
78 void T_Global_GSItemTextArray_IndexForFeatureIdL(); |
|
79 void T_Global_GSItemTextArray_FeatureIdByIndexL(); |
|
80 void T_Global_GSItemTextArray_FeatureByIdL(); |
|
81 void T_Global_GSItemTextArray_GetItemCaptionFromFeatureIdLC(); |
|
82 |
|
83 // CGSRadioButtonSettingPageItemTextArray test cases |
|
84 void SetupResourceL(); |
|
85 void T_Global_GSRBSPItemTextArray_NewL(); |
|
86 void Setup_GSRBSPItemTextArrayL(); |
|
87 void T_Global_GSRBSPItemTextArray_CurrentFeatureL(); |
|
88 void T_Global_GSRBSPItemTextArray_SetRadioButtonSettingPageL(); |
|
89 |
|
90 // CGSListBoxItemTextArray test cases |
|
91 void Setup_CGSLBITextArrayL(); |
|
92 void T_Global_CGSLBITextArray_NewL(); |
|
93 void T_Global_CGSLBITextArray_New2L(); |
|
94 void T_Global_CGSLBITextArray_CurrentFeatureL(); |
|
95 |
|
96 |
|
97 |
|
98 private: // Data |
|
99 CGSListboxEntry* iListboxEntry; |
|
100 CGSItemTextArray* iItemTextArray; |
|
101 CGSRadioButtonSettingPageItemTextArray* iRBSPArray; |
|
102 CGSListBoxItemTextArray* iLBITextArray; |
|
103 CEikListBox* iListBox; |
|
104 |
|
105 TInt iOffset; |
|
106 |
|
107 EUNIT_DECLARE_TEST_TABLE; |
|
108 |
|
109 }; |
|
110 |
|
111 #endif // __T_GSLISTBOX_H__ |
|
112 |
|
113 // End of file |