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: ganes_api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // [INCLUDE FILES] |
|
20 #include <e32svr.h> |
|
21 #include <stifparser.h> |
|
22 #include <stiftestinterface.h> |
|
23 |
|
24 #include "testplatgane.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CTestPlatGane::RunMethodL |
|
30 // Run specified method. Contains also table of test mothods and their names. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 TInt CTestPlatGane::RunMethodL( CStifItemParser& aItem ) |
|
34 { |
|
35 |
|
36 static TStifFunctionInfo const KFunctions[] = |
|
37 { |
|
38 // First string is the function name used in TestScripter script file. |
|
39 // Second is the actual implementation member function. |
|
40 |
|
41 // [test cases entries] |
|
42 //HgDoubleGraphicList.h |
|
43 ENTRY( "TestCHgDoubleGraphicListL", CTestPlatGane::TestCHgDoubleGraphicListL ), |
|
44 ENTRY( "TestCHgDoubleGraphicListPreferredImageSizeL", CTestPlatGane::TestCHgDoubleGraphicListPreferredImageSize ), |
|
45 //HgDoubleGraphicListFlat.h |
|
46 ENTRY( "TestCHgDoubleGraphicListFlatL", CTestPlatGane::TestCHgDoubleGraphicListFlatL ), |
|
47 ENTRY( "TestCHgDoubleGraphicListFlatPreferredImageSizeL", CTestPlatGane::TestCHgDoubleGraphicListFlatPreferredImageSize ), |
|
48 //HgDoubleTextList.h |
|
49 ENTRY( "TestCHgDoubleTextListL", CTestPlatGane::TestCHgDoubleTextListL ), |
|
50 ENTRY( "TestCHgDoubleTextListPreferredImageSize", CTestPlatGane::TestCHgDoubleTextListPreferredImageSize ), |
|
51 //HgGrid.h |
|
52 ENTRY( "TestCHgGridNewL", CTestPlatGane::TestCHgGridNewL ), |
|
53 ENTRY( "TestCHgGridPreferredImageSizeL", CTestPlatGane::TestCHgGridPreferredImageSize ), |
|
54 ENTRY( "TestCHgGridSetLandscapeScrollingSupport", CTestPlatGane::TestCHgGridSetLandscapeScrollingSupport ), |
|
55 //HgItem.h |
|
56 ENTRY( "TestCHgItemNewL", CTestPlatGane::TestCHgItemNewL ), |
|
57 ENTRY( "TestCHgItemNewLCL", CTestPlatGane::TestCHgItemNewLCL ), |
|
58 ENTRY( "TestCHgItemIconL", CTestPlatGane::TestCHgItemIconL ), |
|
59 ENTRY( "TestCHgItemTitleL", CTestPlatGane::TestCHgItemTitleL ), |
|
60 ENTRY( "TestCHgItemTextL", CTestPlatGane::TestCHgItemTextL ), |
|
61 ENTRY( "TestCHgItemTimeL", CTestPlatGane::TestCHgItemTimeL ), |
|
62 ENTRY( "TestCHgItemSetIconL", CTestPlatGane::TestCHgItemSetIconL ), |
|
63 ENTRY( "TestCHgItemSetTitleL", CTestPlatGane::TestCHgItemSetTitleL ), |
|
64 ENTRY( "TestCHgItemSetTextL", CTestPlatGane::TestCHgItemSetTextL ), |
|
65 ENTRY( "TestCHgItemSetTimeL", CTestPlatGane::TestCHgItemSetTimeL ), |
|
66 ENTRY( "TestCHgItemFlagsL", CTestPlatGane::TestCHgItemFlagsL ), |
|
67 ENTRY( "TestCHgItemSetFlagsL", CTestPlatGane::TestCHgItemSetFlagsL ), |
|
68 ENTRY( "TestCHgItemClearFlagsL", CTestPlatGane::TestCHgItemClearFlagsL ), |
|
69 //HgScroller.h |
|
70 ENTRY( "TestCHgScrollerInitScreenL1L", CTestPlatGane::TestCHgScrollerInitScreenL1 ), |
|
71 ENTRY( "TestCHgScrollerInitScreenL2L", CTestPlatGane::TestCHgScrollerInitScreenL2L ), |
|
72 ENTRY( "TestCHgScrollerRefreshScreenL", CTestPlatGane::TestCHgScrollerRefreshScreenL ), |
|
73 ENTRY( "TestCHgScrollerFirstIndexOnScreenL", CTestPlatGane::TestCHgScrollerFirstIndexOnScreenL ), |
|
74 ENTRY( "TestCHgScrollerItemsOnScreenL", CTestPlatGane::TestCHgScrollerItemsOnScreenL ), |
|
75 ENTRY( "TestCHgScrollerItemL", CTestPlatGane::TestCHgScrollerItemL ), |
|
76 ENTRY( "TestCHgScrollerSetItemL", CTestPlatGane::TestCHgScrollerSetItemL ), |
|
77 ENTRY( "TestCHgScrollerAddItemL", CTestPlatGane::TestCHgScrollerAddItemL ), |
|
78 ENTRY( "TestCHgScrollerInsertItemL", CTestPlatGane::TestCHgScrollerInsertItemL ), |
|
79 ENTRY( "TestCHgScrollerRemoveItemL", CTestPlatGane::TestCHgScrollerRemoveItemL ), |
|
80 ENTRY( "TestCHgScrollerSelectedIndexL", CTestPlatGane::TestCHgScrollerSelectedIndexL ), |
|
81 ENTRY( "TestCHgScrollerSetSelectedIndexL", CTestPlatGane::TestCHgScrollerSetSelectedIndexL ), |
|
82 ENTRY( "TestCHgScrollerMarkL", CTestPlatGane::TestCHgScrollerMarkL ), |
|
83 ENTRY( "TestCHgScrollerUnMarkL", CTestPlatGane::TestCHgScrollerUnMarkL ), |
|
84 ENTRY( "TestCHgScrollerMarkAllL", CTestPlatGane::TestCHgScrollerMarkAllL ), |
|
85 ENTRY( "TestCHgScrollerUnMarkAllL", CTestPlatGane::TestCHgScrollerUnMarkAllL ), |
|
86 ENTRY( "TestCHgScrollerGetMarkedItemsL", CTestPlatGane::TestCHgScrollerGetMarkedItemsL ), |
|
87 ENTRY( "TestCHgScrollerResetL", CTestPlatGane::TestCHgScrollerResetL ), |
|
88 ENTRY( "TestCHgScrollerResizeL", CTestPlatGane::TestCHgScrollerResizeL ), |
|
89 ENTRY( "TestCHgScrollerSetEmptyTextL", CTestPlatGane::TestCHgScrollerSetEmptyTextL ), |
|
90 ENTRY( "TestCHgScrollerItemCountL", CTestPlatGane::TestCHgScrollerItemCountL ), |
|
91 ENTRY( "TestCHgScrollerSetScrollBarTypeL", CTestPlatGane::TestCHgScrollerSetScrollBarTypeL ), |
|
92 ENTRY( "TestCHgScrollerSetFlagsL", CTestPlatGane::TestCHgScrollerSetFlagsL ), |
|
93 ENTRY( "TestCHgScrollerClearFlagsL", CTestPlatGane::TestCHgScrollerClearFlagsL ), |
|
94 ENTRY( "TestCHgScrollerFlagsL", CTestPlatGane::TestCHgScrollerFlagsL ), |
|
95 ENTRY( "TestCHgScrollerHightlightItemL", CTestPlatGane::TestCHgScrollerHightlightItemL ), |
|
96 ENTRY( "TestCHgScrollerSetDefaultIconL", CTestPlatGane::TestCHgScrollerSetDefaultIconL ), |
|
97 ENTRY( "TestCHgScrollerDisableScrollBufferL", CTestPlatGane::TestCHgScrollerDisableScrollBufferL ), |
|
98 ENTRY( "TestCHgScrollerEnableScrollBufferL", CTestPlatGane::TestCHgScrollerEnableScrollBufferL ), |
|
99 ENTRY( "TestCHgScrollerSetSelectionObserver", CTestPlatGane::TestCHgScrollerSetSelectionObserver ), |
|
100 ENTRY( "TestCHgScrollerSetMarkingObserver", CTestPlatGane::TestCHgScrollerSetMarkingObserver ), |
|
101 //HgScrollerWithTitle.h |
|
102 ENTRY( "TestCHgScrollerWithTitleNewL", CTestPlatGane::TestCHgScrollerWithTitleNewL ), |
|
103 ENTRY( "TestCHgScrollerWithTitleInitScreenL", CTestPlatGane::TestCHgScrollerWithTitleInitScreenL ), |
|
104 ENTRY( "TestCHgScrollerWithTitleScrollerL", CTestPlatGane::TestCHgScrollerWithTitleScrollerL ), |
|
105 ENTRY( "TestCHgScrollerWithTitleTitleItemL", CTestPlatGane::TestCHgScrollerWithTitleTitleItemL ), |
|
106 ENTRY( "TestCHgScrollerWithTitlePreferredImageSizeL", CTestPlatGane::TestCHgScrollerWithTitlePreferredImageSize ), |
|
107 //HgSingleGraphicList.h |
|
108 ENTRY( "TestCHgSingleGraphicListNewL", CTestPlatGane::TestCHgSingleGraphicListNewL ), |
|
109 ENTRY( "TestCHgSingleGraphicListPreferredImageSizeL", CTestPlatGane::TestCHgSingleGraphicListPreferredImageSize ), |
|
110 //HgSingleLargeList.h |
|
111 ENTRY( "TestCHgSingleLargeListNewL", CTestPlatGane::TestCHgSingleLargeListNewL ), |
|
112 ENTRY( "TestCHgSingleLargeListPreferredImageSizeL", CTestPlatGane::TestCHgSingleLargeListPreferredImageSize ), |
|
113 //HgSingleTextList.h |
|
114 ENTRY( "TestCHgSingleTextListL", CTestPlatGane::TestCHgSingleTextListL ), |
|
115 // HgVgMediaWall.h |
|
116 ENTRY( "TestCHgVgMediaWallNewL", CTestPlatGane::TestCHgVgMediaWallNewL ), |
|
117 ENTRY( "TestCHgVgMediaWallInitScreenL", CTestPlatGane::TestCHgVgMediaWallInitScreenL ), |
|
118 ENTRY( "TestCHgVgMediaWallRefreshScreen", CTestPlatGane::TestCHgVgMediaWallRefreshScreen ), |
|
119 ENTRY( "TestCHgVgMediaWallFirstIndexOnScreen", CTestPlatGane::TestCHgVgMediaWallFirstIndexOnScreen ), |
|
120 ENTRY( "TestCHgVgMediaWallItemsOnScreen", CTestPlatGane::TestCHgVgMediaWallItemsOnScreen ), |
|
121 ENTRY( "TestCHgVgMediaWallItemL", CTestPlatGane::TestCHgVgMediaWallItemL ), |
|
122 ENTRY( "TestCHgVgMediaWallSetItem", CTestPlatGane::TestCHgVgMediaWallSetItem ), |
|
123 ENTRY( "TestCHgVgMediaWallAddItem", CTestPlatGane::TestCHgVgMediaWallAddItem ), |
|
124 ENTRY( "TestCHgVgMediaWallInsertItem", CTestPlatGane::TestCHgVgMediaWallInsertItem ), |
|
125 ENTRY( "TestCHgVgMediaWallRemoveItem", CTestPlatGane::TestCHgVgMediaWallRemoveItem ), |
|
126 ENTRY( "TestCHgVgMediaWallSelectedIndex", CTestPlatGane::TestCHgVgMediaWallSelectedIndex ), |
|
127 ENTRY( "TestCHgVgMediaWallSetSelectedIndex", CTestPlatGane::TestCHgVgMediaWallSetSelectedIndex ), |
|
128 ENTRY( "TestCHgVgMediaWallEnableScrollBufferL", CTestPlatGane::TestCHgVgMediaWallEnableScrollBufferL ), |
|
129 ENTRY( "TestCHgVgMediaWallSetSelectionObserver", CTestPlatGane::TestCHgVgMediaWallSetSelectionObserver ), |
|
130 ENTRY( "TestCHgVgMediaWallReset", CTestPlatGane::TestCHgVgMediaWallReset ), |
|
131 ENTRY( "TestCHgVgMediaWallResizeL", CTestPlatGane::TestCHgVgMediaWallResizeL ), |
|
132 ENTRY( "TestCHgVgMediaWallSetEmptyTextL", CTestPlatGane::TestCHgVgMediaWallSetEmptyTextL ), |
|
133 ENTRY( "TestCHgVgMediaWallItemCount", CTestPlatGane::TestCHgVgMediaWallItemCount ), |
|
134 ENTRY( "TestCHgVgMediaWallSetDefaultIconL", CTestPlatGane::TestCHgVgMediaWallSetDefaultIconL ), |
|
135 ENTRY( "TestCHgVgMediaWallDisableScrollBuffer", CTestPlatGane::TestCHgVgMediaWallDisableScrollBuffer ), |
|
136 ENTRY( "TestCHgVgMediaWallChangeStyleL", CTestPlatGane::TestCHgVgMediaWallChangeStyleL ), |
|
137 ENTRY( "TestCHgVgMediaWallSetObserver", CTestPlatGane::TestCHgVgMediaWallSetObserver ), |
|
138 ENTRY( "TestCHgVgMediaWallSetOpeningAnimationType", CTestPlatGane::TestCHgVgMediaWallSetOpeningAnimationType ), |
|
139 ENTRY( "TestCHgVgMediaWallStyle", CTestPlatGane::TestCHgVgMediaWallStyle ), |
|
140 ENTRY( "TestCHgVgMediaWallOpeningAnimationType", CTestPlatGane::TestCHgVgMediaWallOpeningAnimationType ), |
|
141 ENTRY( "TestCHgVgMediaWallStartOpeningAnimationL", CTestPlatGane::TestCHgVgMediaWallStartOpeningAnimationL ), |
|
142 // HgVgItem.h |
|
143 ENTRY( "TestCHgVgItemNewL", CTestPlatGane::TestCHgVgItemNewL ), |
|
144 ENTRY( "TestCHgVgItemNewLC", CTestPlatGane::TestCHgVgItemNewLC ), |
|
145 ENTRY( "TestCHgVgItemSetIcon", CTestPlatGane::TestCHgVgItemSetIcon ), |
|
146 // HgSingleTextListWithIcon.h |
|
147 ENTRY( "TestCHgSingleTextListWithIconNewL", CTestPlatGane::TestCHgSingleTextListWithIconNewL ) |
|
148 }; |
|
149 |
|
150 const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); |
|
151 |
|
152 return RunInternalL( KFunctions, count, aItem ); |
|
153 |
|
154 } |
|
155 |
|