|
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: No test functions implement |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 |
|
25 #include "testsdkbuttons.h" |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CTestSDKButtons::Delete |
|
31 // Delete here all resources allocated and opened from test methods. |
|
32 // Called from destructor. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 void CTestSDKButtons::Delete() |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CTestSDKButtons::RunMethodL |
|
42 // Run specified method. Contains also table of test mothods and their names. |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 TInt CTestSDKButtons::RunMethodL( |
|
46 CStifItemParser& aItem ) |
|
47 { |
|
48 |
|
49 static TStifFunctionInfo const KFunctions[] = |
|
50 { |
|
51 // First string is the function name used in TestScripter script file. |
|
52 // Second is the actual implementation member function. |
|
53 ENTRY( "TestMenuBtConstructorL", CTestSDKButtons::TestMenuBtConstructorL ), |
|
54 ENTRY( "TestMenuBtConstructFromResourceL", CTestSDKButtons::TestMenuBtConstructFromResourceL ), |
|
55 ENTRY( "TestMenuBtLaunchPopupMenuL", CTestSDKButtons::TestMenuBtLaunchPopupMenuL ), |
|
56 ENTRY( "TestMenuBtSetMenuPaneIdL", CTestSDKButtons::TestMenuBtSetMenuPaneIdL ), |
|
57 ENTRY( "TestMenuBtAnimateL", CTestSDKButtons::TestMenuBtAnimateL ), |
|
58 ENTRY( "TestMenuBtWriteInternalStateL", CTestSDKButtons::TestMenuBtWriteInternalStateL ), |
|
59 ENTRY( "TestLabelBtConstructorL", CTestSDKButtons::TestLabelBtConstructorL ), |
|
60 ENTRY( "TestLabelBtConstructL", CTestSDKButtons::TestLabelBtConstructL ), |
|
61 ENTRY( "TestLabelBtConstructFromResourceL", CTestSDKButtons::TestLabelBtConstructFromResourceL ), |
|
62 ENTRY( "TestLabelBtButtonoL", CTestSDKButtons::TestLabelBtButtonoL ), |
|
63 ENTRY( "TestLabelBtLabelL", CTestSDKButtons::TestLabelBtLabelL ), |
|
64 ENTRY( "TestLabelBtHotKeyFunctionsL", CTestSDKButtons::TestLabelBtHotKeyFunctionsL ), |
|
65 ENTRY( "TestLabelBtAnimateL", CTestSDKButtons::TestLabelBtAnimateL ), |
|
66 ENTRY( "TestLabelBtOfferKeyEvnetL", CTestSDKButtons::TestLabelBtOfferKeyEvnetL ), |
|
67 ENTRY( "TestLabelBtSetContainerWindowL", CTestSDKButtons::TestLabelBtSetContainerWindowL ), |
|
68 ENTRY( "TestLabelBtMiniSizeL", CTestSDKButtons::TestLabelBtMiniSizeL ), |
|
69 ENTRY( "TestLabelBtSetdimL", CTestSDKButtons::TestLabelBtSetdimL ), |
|
70 ENTRY( "TestLabelBtHandleResourceChangeL", CTestSDKButtons::TestLabelBtHandleResourceChangeL ), |
|
71 ENTRY( "TestLabelBtInputCapabilitiesL", CTestSDKButtons::TestLabelBtInputCapabilitiesL ), |
|
72 ENTRY( "TestLabelBtGetColorUseListL", CTestSDKButtons::TestLabelBtGetColorUseListL ), |
|
73 ENTRY( "TestLabelBtWriteInternalStateL", CTestSDKButtons::TestLabelBtWriteInternalStateL ), |
|
74 ENTRY( "TestCEikCmdBtBaseConstrutorL", CTestSDKButtons::TestCEikCmdBtBaseConstrutorL ), |
|
75 ENTRY( "TestCEikCmdBtBaseSetButtonLayoutL", CTestSDKButtons::TestCEikCmdBtBaseSetButtonLayoutL ), |
|
76 ENTRY( "TestCEikCmdBtBaseSetExcessSpaceL", CTestSDKButtons::TestCEikCmdBtBaseSetExcessSpaceL ), |
|
77 ENTRY( "TestCEikCmdBtBaseSetDisplayContentL", CTestSDKButtons::TestCEikCmdBtBaseSetDisplayContentL ), |
|
78 ENTRY( "TestCEikCmdBtBaseLayoutComponentsL", CTestSDKButtons::TestCEikCmdBtBaseLayoutComponentsL ), |
|
79 ENTRY( "TestCEikCmdBtBaseStartConstructFromResourceL", CTestSDKButtons::TestCEikCmdBtBaseStartConstructFromResourceL ), |
|
80 ENTRY( "TestCEikCmdBtBaseConstructLabelAndImageFromResourceL", CTestSDKButtons::TestCEikCmdBtBaseConstructLabelAndImageFromResourceL ), |
|
81 ENTRY( "TestCEikCmdBtBaseUpdateComponentAlignmentL", CTestSDKButtons::TestCEikCmdBtBaseUpdateComponentAlignmentL ), |
|
82 ENTRY( "TestCEikCmdBtBaseSetDefaultL", CTestSDKButtons::TestCEikCmdBtBaseSetDefaultL ), |
|
83 ENTRY( "TestCEikCmdBtBaseSetDimmedL", CTestSDKButtons::TestCEikCmdBtBaseSetDimmedL ), |
|
84 ENTRY( "TestCEikCmdBtBaseMinimumSizeL", CTestSDKButtons::TestCEikCmdBtBaseMinimumSizeL ), |
|
85 ENTRY( "TestCEikCmdBtBaseCountComponentControlsL", CTestSDKButtons::TestCEikCmdBtBaseCountComponentControlsL ), |
|
86 ENTRY( "TestCEikCmdBtBaseComponentControlL", CTestSDKButtons::TestCEikCmdBtBaseComponentControlL ), |
|
87 ENTRY( "TestCEikCmdBtBaseSetContainerWindowLAndActivateL", CTestSDKButtons::TestCEikCmdBtBaseSetContainerWindowLAndActivateL ), |
|
88 ENTRY( "TestCEikCmdBtBaseFocusChangedL", CTestSDKButtons::TestCEikCmdBtBaseFocusChangedL ), |
|
89 ENTRY( "TestCEikCmdBtBaseOfferKeyEventL", CTestSDKButtons::TestCEikCmdBtBaseOfferKeyEventL ), |
|
90 ENTRY( "TestCEikCmdBtBaseGetColorUseListL", CTestSDKButtons::TestCEikCmdBtBaseGetColorUseListL ), |
|
91 ENTRY( "TestCEikCmdBtBaseHandleResourceChangeL", CTestSDKButtons::TestCEikCmdBtBaseHandleResourceChangeL ), |
|
92 ENTRY( "TestCEikCmdBtBaseStateChangedL", CTestSDKButtons::TestCEikCmdBtBaseStateChangedL ), |
|
93 ENTRY( "TestCEikCmdBtBaseSetTextL", CTestSDKButtons::TestCEikCmdBtBaseSetTextL ), |
|
94 ENTRY( "TestCEikCmdBtBaseSetPictureL", CTestSDKButtons::TestCEikCmdBtBaseSetPictureL ), |
|
95 ENTRY( "TestCEikCmdBtBaseSetPictureFromFileL", CTestSDKButtons::TestCEikCmdBtBaseSetPictureFromFileL ), |
|
96 ENTRY( "TestCEikCmdBtBaseDrawL", CTestSDKButtons::TestCEikCmdBtBaseDrawL ), |
|
97 ENTRY( "TestCEikCmdBtBaseWriteInternalStateL", CTestSDKButtons::TestCEikCmdBtBaseWriteInternalStateL ), |
|
98 ENTRY( "TestCEikCmdBtConstructorL", CTestSDKButtons::TestCEikCmdBtConstructorL ), |
|
99 ENTRY( "TestCEikCmdBtConstructFromResourceL", CTestSDKButtons::TestCEikCmdBtConstructFromResourceL ), |
|
100 ENTRY( "TestCEikCmdBtSetPictureL", CTestSDKButtons::TestCEikCmdBtSetPictureL ), |
|
101 ENTRY( "TestCEikCmdBtSetThreeEnumL", CTestSDKButtons::TestCEikCmdBtSetThreeEnumL ), |
|
102 ENTRY( "TestCEikCmdBtSetTextL", CTestSDKButtons::TestCEikCmdBtSetTextL ), |
|
103 ENTRY( "TestCEikCmdBtLabelL", CTestSDKButtons::TestCEikCmdBtLabelL ), |
|
104 ENTRY( "TestCEikCmdBtCmdSetL", CTestSDKButtons::TestCEikCmdBtCmdSetL ), |
|
105 ENTRY( "TestCEikCmdBtUpdateComponentAlignmentL", CTestSDKButtons::TestCEikCmdBtUpdateComponentAlignmentL ), |
|
106 ENTRY( "TestCEikBtBaseConstructorL", CTestSDKButtons::TestCEikBtBaseConstructorL ), |
|
107 ENTRY( "TestCEikBtBaseSetAndGetStateL", CTestSDKButtons::TestCEikBtBaseSetAndGetStateL ), |
|
108 ENTRY( "TestCEikBtBaseAnimateL", CTestSDKButtons::TestCEikBtBaseAnimateL ), |
|
109 ENTRY( "TestCEikBtBaseSetCoordinatorL", CTestSDKButtons::TestCEikBtBaseSetCoordinatorL ), |
|
110 ENTRY( "TestCEikBtBaseSetBehaviorL", CTestSDKButtons::TestCEikBtBaseSetBehaviorL ), |
|
111 ENTRY( "TestCEikBtBaseGetColorUseListL", CTestSDKButtons::TestCEikBtBaseGetColorUseListL ), |
|
112 ENTRY( "TestCEikBtBaseHandleResourceChangeL", CTestSDKButtons::TestCEikBtBaseHandleResourceChangeL ), |
|
113 ENTRY( "TestCEikBtBaseWriteInternalStateL", CTestSDKButtons::TestCEikBtBaseWriteInternalStateL ), |
|
114 ENTRY( "TestCEikBtBaseDrawStateL", CTestSDKButtons::TestCEikBtBaseDrawStateL ), |
|
115 ENTRY( "TestCEikBtBaseSetAllowTristateL", CTestSDKButtons::TestCEikBtBaseSetAllowTristateL ), |
|
116 ENTRY( "TestCEikBtBaseCopyDrawStateToL", CTestSDKButtons::TestCEikBtBaseCopyDrawStateToL ), |
|
117 ENTRY( "TestCEikBtBaseOfferKeyEventL", CTestSDKButtons::TestCEikBtBaseOfferKeyEventL ), |
|
118 ENTRY( "TestCEikBtBaseInputCapabilitiesL", CTestSDKButtons::TestCEikBtBaseInputCapabilitiesL ), |
|
119 ENTRY( "TestCEikTwoPicCmdBtConstructorL", CTestSDKButtons::TestCEikTwoPicCmdBtConstructorL ), |
|
120 ENTRY( "TestCEikTwoPicCmdBtConstructFromResourceL", CTestSDKButtons::TestCEikTwoPicCmdBtConstructFromResourceL ), |
|
121 ENTRY( "TestCEikTwoPicCmdBtIsSecondPictureOwnedExternallyL", CTestSDKButtons::TestCEikTwoPicCmdBtIsSecondPictureOwnedExternallyL ), |
|
122 ENTRY( "TestCEikTwoPicCmdBtPictureL", CTestSDKButtons::TestCEikTwoPicCmdBtPictureL ), |
|
123 ENTRY( "TestCEikTwoPicCmdBtSetTextL", CTestSDKButtons::TestCEikTwoPicCmdBtSetTextL ), |
|
124 ENTRY( "TestCEikTwoPicCmdBtPictureSetL", CTestSDKButtons::TestCEikTwoPicCmdBtPictureSetL ), |
|
125 ENTRY( "TestCEikTwoPicCmdBtConstructImagesFromResourceL", CTestSDKButtons::TestCEikTwoPicCmdBtConstructImagesFromResourceL ), |
|
126 ENTRY( "TestCEikTwoPicCmdBtSetSecondPictureOwnedExternallyL", CTestSDKButtons::TestCEikTwoPicCmdBtSetSecondPictureOwnedExternallyL ), |
|
127 ENTRY( "TestCEikTwoPicCmdBtActivateL", CTestSDKButtons::TestCEikTwoPicCmdBtActivateL ), |
|
128 ENTRY( "TestCEikTwoPicCmdBtWriteInternalStateL", CTestSDKButtons::TestCEikTwoPicCmdBtWriteInternalStateL ), |
|
129 ENTRY( "TestCEikInverterCmdBtConstructorL", CTestSDKButtons::TestCEikInverterCmdBtConstructorL ), |
|
130 ENTRY( "TestCEikInverterCmdBtWriteInternalStateL", CTestSDKButtons::TestCEikInverterCmdBtWriteInternalStateL ), |
|
131 ENTRY( "TestCEikTxtBtConstructorL", CTestSDKButtons::TestCEikTxtBtConstructorL ), |
|
132 ENTRY( "TestCEikTxtBtConstructFromResourceL", CTestSDKButtons::TestCEikTxtBtConstructFromResourceL ), |
|
133 ENTRY( "TestCEikTxtBtSetTextL", CTestSDKButtons::TestCEikTxtBtSetTextL ), |
|
134 ENTRY( "TestCEikTxtBtLabelL", CTestSDKButtons::TestCEikTxtBtLabelL ), |
|
135 ENTRY( "TestCEikBmpBtConstructorL", CTestSDKButtons::TestCEikBmpBtConstructorL ), |
|
136 ENTRY( "TestCEikBmpBtConstructFromResourceL", CTestSDKButtons::TestCEikBmpBtConstructFromResourceL ), |
|
137 ENTRY( "TestCEikBmpBtPictureSetL", CTestSDKButtons::TestCEikBmpBtPictureSetL ), |
|
138 ENTRY( "TestCEikCmdBtProcessCmdStackL", CTestSDKButtons::TestCEikCmdBtProcessCmdStackL ), |
|
139 ENTRY( "TestCEikBtGroupStackMinimumSize", CTestSDKButtons::TestCEikBtGroupStackMinimumSize ), |
|
140 ENTRY( "TestCEikCbaOfferCommandListL", CTestSDKButtons::TestCEikCbaOfferCommandListL ), |
|
141 ENTRY( "TestCEikCbaIsCommandInGroupL", CTestSDKButtons::TestCEikCbaIsCommandInGroupL ), |
|
142 ENTRY( "TestCEikCbaSetButtonGroupFlagsL", CTestSDKButtons::TestCEikCbaSetButtonGroupFlagsL ), |
|
143 ENTRY( "TestCEikCbaReplaceCommandL", CTestSDKButtons::TestCEikCbaReplaceCommandL ), |
|
144 ENTRY( "TestCEikCbaSetSkinBackgroundIdL", CTestSDKButtons::TestCEikCbaSetSkinBackgroundIdL ), |
|
145 ENTRY( "TestCEikCbaIsEmptyL", CTestSDKButtons::TestCEikCbaIsEmptyL ), |
|
146 ENTRY( "TestCEikBtGroupFactoryCbaTCreationDataL", CTestSDKButtons::TestCEikBtGroupFactoryCbaTCreationDataL ), |
|
147 ENTRY( "TestCEikBtGroupFactoryArrayAddAndRemoveFuncL", CTestSDKButtons::TestCEikBtGroupFactoryArrayAddAndRemoveFuncL ), |
|
148 ENTRY( "TestCEikBtGroupContainerNewL", CTestSDKButtons::TestCEikBtGroupContainerNewL ), |
|
149 ENTRY( "TestCEikBtGroupContainerCurrent", CTestSDKButtons::TestCEikBtGroupContainerCurrent ), |
|
150 ENTRY( "TestCEikBtGroupContainerSetCommandL", CTestSDKButtons::TestCEikBtGroupContainerSetCommandL ), |
|
151 ENTRY( "TestCEikBtGroupContainerSetCommandSetL", CTestSDKButtons::TestCEikBtGroupContainerSetCommandSetL ), |
|
152 ENTRY( "TestCEikBtGroupContainerAddCommandL", CTestSDKButtons::TestCEikBtGroupContainerAddCommandL ), |
|
153 ENTRY( "TestCEikBtGroupContainerAddCommandToStackL", CTestSDKButtons::TestCEikBtGroupContainerAddCommandToStackL ), |
|
154 ENTRY( "TestCEikBtGroupContainerAddCommandSetToStackL", CTestSDKButtons::TestCEikBtGroupContainerAddCommandSetToStackL ), |
|
155 ENTRY( "TestCEikBtGroupContainerRemoveCommandFromStackL", CTestSDKButtons::TestCEikBtGroupContainerRemoveCommandFromStackL ), |
|
156 ENTRY( "TestCEikBtGroupContainerSetDefaultCommandL", CTestSDKButtons::TestCEikBtGroupContainerSetDefaultCommandL ), |
|
157 ENTRY( "TestCEikBtGroupContainerCalcMinimumSizeL", CTestSDKButtons::TestCEikBtGroupContainerCalcMinimumSizeL ), |
|
158 ENTRY( "TestCEikBtGroupContainerCleanupFunctionL", CTestSDKButtons::TestCEikBtGroupContainerCleanupFunctionL ), |
|
159 ENTRY( "TestCEikBtGroupContainerBtNumberL", CTestSDKButtons::TestCEikBtGroupContainerBtNumberL ), |
|
160 ENTRY( "TestCEikBtGroupContainerCmdDimL", CTestSDKButtons::TestCEikBtGroupContainerCmdDimL ), |
|
161 ENTRY( "TestCEikBtGroupContainerCmdAnimateL", CTestSDKButtons::TestCEikBtGroupContainerCmdAnimateL ), |
|
162 ENTRY( "TestCEikBtGroupContainerCmdVisibleL", CTestSDKButtons::TestCEikBtGroupContainerCmdVisibleL ), |
|
163 ENTRY( "TestCEikBtGroupContainerLocationL", CTestSDKButtons::TestCEikBtGroupContainerLocationL ), |
|
164 ENTRY( "TestCEikBtGroupContainerCommandButtonOrNullL", CTestSDKButtons::TestCEikBtGroupContainerCommandButtonOrNullL ), |
|
165 ENTRY( "TestCEikBtGroupContainerControlOrNullL", CTestSDKButtons::TestCEikBtGroupContainerControlOrNullL ), |
|
166 ENTRY( "TestCEikBtGroupContainerSetBoundingRectL", CTestSDKButtons::TestCEikBtGroupContainerSetBoundingRectL ), |
|
167 ENTRY( "TestCEikBtGroupContainerGetBtAndBtPositionAndBtTypeL", CTestSDKButtons::TestCEikBtGroupContainerGetBtAndBtPositionAndBtTypeL ), |
|
168 ENTRY( "TestCEikBtGroupContainerReduceRectL", CTestSDKButtons::TestCEikBtGroupContainerReduceRectL ), |
|
169 ENTRY( "TestCEikBtGroupContainerUpdateHotKeyL", CTestSDKButtons::TestCEikBtGroupContainerUpdateHotKeyL ), |
|
170 ENTRY( "TestCEikBtGroupContainerUpdateCommandObserverL", CTestSDKButtons::TestCEikBtGroupContainerUpdateCommandObserverL ), |
|
171 ENTRY( "TestCEikBtGroupContainerRemoveCommandObserverL", CTestSDKButtons::TestCEikBtGroupContainerRemoveCommandObserverL ), |
|
172 ENTRY( "TestCEikBtGroupContainerUpdatedCommandObserverExistsL", CTestSDKButtons::TestCEikBtGroupContainerUpdatedCommandObserverExistsL ), |
|
173 ENTRY( "TestCEikBtGroupContainerDelayActivationL", CTestSDKButtons::TestCEikBtGroupContainerDelayActivationL ), |
|
174 ENTRY( "TestCEikBtGroupContainerButtonGroupL", CTestSDKButtons::TestCEikBtGroupContainerButtonGroupL ), |
|
175 ENTRY( "TestCEikBtGroupContainerReservedFunctionL", CTestSDKButtons::TestCEikBtGroupContainerReservedFunctionL ), |
|
176 ENTRY( "TestCEikBtGroupContainerOfferCommandListL", CTestSDKButtons::TestCEikBtGroupContainerOfferCommandListL ), |
|
177 ENTRY( "TestCEikBtGroupContainerIsCommandInGroupL", CTestSDKButtons::TestCEikBtGroupContainerIsCommandInGroupL ), |
|
178 ENTRY( "TestCEikBtGroupContainerReplaceCommandL", CTestSDKButtons::TestCEikBtGroupContainerReplaceCommandL ), |
|
179 ENTRY( "TestCEikBtGroupContainerMinimumSizeL", CTestSDKButtons::TestCEikBtGroupContainerMinimumSizeL ), |
|
180 ENTRY( "TestCEikBtGroupContainerOfferKeyEventL", CTestSDKButtons::TestCEikBtGroupContainerOfferKeyEventL ), |
|
181 ENTRY( "TestCEikBtGroupContainerMakeVisibleL", CTestSDKButtons::TestCEikBtGroupContainerMakeVisibleL ), |
|
182 ENTRY( "TestCEikBtGroupContainerWriteInternalStateL", CTestSDKButtons::TestCEikBtGroupContainerWriteInternalStateL ), |
|
183 |
|
184 // [test cases entries] |
|
185 |
|
186 }; |
|
187 |
|
188 const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); |
|
189 |
|
190 return RunInternalL( KFunctions, count, aItem ); |
|
191 |
|
192 } |
|
193 |
|
194 |
|
195 |
|
196 // [End of File] |