|
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: function implement of testalfext |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 |
|
25 #include "testalfext.h" |
|
26 |
|
27 |
|
28 // ============================ MEMBER FUNCTIONS =============================== |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CTestAlfExt::RunMethodL |
|
32 // Run specified method. Contains also table of test mothods and their names. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 TInt CTestAlfExt::RunMethodL( CStifItemParser& aItem ) |
|
36 { |
|
37 |
|
38 static TStifFunctionInfo const KFunctions[] = |
|
39 { |
|
40 // First string is the function name used in TestScripter script file. |
|
41 // Second is the actual implementation member function. |
|
42 ENTRY( "TestBrushHandlerConstructL", CTestAlfExt::TestBrushHandlerConstructL ), |
|
43 ENTRY( "TestBrushHandlerForMAlfExtensionL", CTestAlfExt::TestBrushHandlerForMAlfExtensionL ), |
|
44 ENTRY( "TestBrushHandlerForOthersL", CTestAlfExt::TestBrushHandlerForOthersL ), |
|
45 ENTRY( "TestBorderBrushHandlerConstructL", CTestAlfExt::TestBorderBrushHandlerConstructL ), |
|
46 ENTRY( "TestBorderBrushHandlerProtectedL", CTestAlfExt::TestBorderBrushHandlerProtectedL ), |
|
47 ENTRY( "TestImageBrushHandlerConstructL", CTestAlfExt::TestImageBrushHandlerConstructL ), |
|
48 ENTRY( "TestImageBrushHandlerProtectedL", CTestAlfExt::TestImageBrushHandlerProtectedL ), |
|
49 ENTRY( "TestShadowBorderBrushHandlerConstructL", CTestAlfExt::TestShadowBorderBrushHandlerConstructL ), |
|
50 ENTRY( "TestShadowBorderBrushHandlerProtectedL", CTestAlfExt::TestShadowBorderBrushHandlerProtectedL ), |
|
51 ENTRY( "TestDropShadowBrushHandlerConstructL", CTestAlfExt::TestDropShadowBrushHandlerConstructL ), |
|
52 ENTRY( "TestDropShadowBrushHandlerProtectedL", CTestAlfExt::TestDropShadowBrushHandlerProtectedL ), |
|
53 ENTRY( "TestGradientBrushHandlerConstructL", CTestAlfExt::TestGradientBrushHandlerConstructL ), |
|
54 ENTRY( "TestGradientBrushHandlerProtectedL", CTestAlfExt::TestGradientBrushHandlerProtectedL ), |
|
55 ENTRY( "TestFrameBrushHandlerConstructL", CTestAlfExt::TestFrameBrushHandlerConstructL ), |
|
56 ENTRY( "TestFrameBrushHandlerProtectedL", CTestAlfExt::TestFrameBrushHandlerProtectedL ), |
|
57 ENTRY( "TestLayoutHandlerConstructL", CTestAlfExt::TestLayoutHandlerConstructL ), |
|
58 ENTRY( "TestLayoutHandlerProtectedL", CTestAlfExt::TestLayoutHandlerProtectedL ), |
|
59 ENTRY( "TestAnchorLayoutHandlerConstructL", CTestAlfExt::TestAnchorLayoutHandlerConstructL ), |
|
60 ENTRY( "TestAnchorLayoutHandlerProtectedL", CTestAlfExt::TestAnchorLayoutHandlerProtectedL ), |
|
61 ENTRY( "TestLCTAnchorLayoutHandlerConstructL", CTestAlfExt::TestLCTAnchorLayoutHandlerConstructL ), |
|
62 ENTRY( "TestLCTAnchorLayoutHandlerProtectedL", CTestAlfExt::TestLCTAnchorLayoutHandlerProtectedL ), |
|
63 ENTRY( "TestGridLayoutHandlerConstructL", CTestAlfExt::TestGridLayoutHandlerConstructL ), |
|
64 ENTRY( "TestGridLayoutHandlerProtectedL", CTestAlfExt::TestGridLayoutHandlerProtectedL ), |
|
65 ENTRY( "TestLCTGridLayoutHandlerConstructL", CTestAlfExt::TestLCTGridLayoutHandlerConstructL ), |
|
66 ENTRY( "TestLCTGridLayoutHandlerProtectedL", CTestAlfExt::TestLCTGridLayoutHandlerProtectedL ), |
|
67 ENTRY( "TestDeckLayoutHandlerConstructL", CTestAlfExt::TestDeckLayoutHandlerConstructL ), |
|
68 ENTRY( "TestDeckLayoutHandlerProtectedL", CTestAlfExt::TestDeckLayoutHandlerProtectedL ), |
|
69 ENTRY( "TestFlowLayoutHandlerConstructL", CTestAlfExt::TestFlowLayoutHandlerConstructL ), |
|
70 ENTRY( "TestFlowLayoutHandlerProtectedL", CTestAlfExt::TestFlowLayoutHandlerProtectedL ), |
|
71 ENTRY( "TestCurvePathLayoutHandlerConstructL", CTestAlfExt::TestCurvePathLayoutHandlerConstructL ), |
|
72 ENTRY( "TestCurvePathLayoutHandlerProtectedL", CTestAlfExt::TestCurvePathLayoutHandlerProtectedL ), |
|
73 ENTRY( "TestViewportLayoutHandlerConstructL", CTestAlfExt::TestViewportLayoutHandlerConstructL ), |
|
74 ENTRY( "TestViewportLayoutHandlerProtectedL", CTestAlfExt::TestViewportLayoutHandlerProtectedL ), |
|
75 ENTRY( "TestTimedValueUtil", CTestAlfExt::TestTimedValueUtil ), |
|
76 ENTRY( "TestTimedPointUtil", CTestAlfExt::TestTimedPointUtil ), |
|
77 ENTRY( "TestFileTokenUtil", CTestAlfExt::TestFileTokenUtil ), |
|
78 ENTRY( "TestVisualHandlerConstructL", CTestAlfExt::TestVisualHandlerConstructL ), |
|
79 ENTRY( "TestVisualHandlerMutualL", CTestAlfExt::TestVisualHandlerMutualL ), |
|
80 ENTRY( "TestTextVisualHandlerConstructL", CTestAlfExt::TestTextVisualHandlerConstructL ), |
|
81 ENTRY( "TestTextVisualHandlerMutualL", CTestAlfExt::TestTextVisualHandlerMutualL ), |
|
82 ENTRY( "TestLCTTextVisualHandlerConstructL", CTestAlfExt::TestLCTTextVisualHandlerConstructL ), |
|
83 ENTRY( "TestLCTTextVisualHandlerMutualL", CTestAlfExt::TestLCTTextVisualHandlerMutualL ), |
|
84 ENTRY( "TestImageVisualHandlerConstructL", CTestAlfExt::TestImageVisualHandlerConstructL ), |
|
85 ENTRY( "TestImageVisualHandlerMutualL", CTestAlfExt::TestImageVisualHandlerMutualL ), |
|
86 ENTRY( "TestLineVisualHandlerConstructL", CTestAlfExt::TestLineVisualHandlerConstructL ), |
|
87 ENTRY( "TestLineVisualHandlerMutualL", CTestAlfExt::TestLineVisualHandlerMutualL ), |
|
88 ENTRY( "TestMeshVisualHandlerConstructL", CTestAlfExt::TestMeshVisualHandlerConstructL ), |
|
89 ENTRY( "TestMeshVisualHandlerMutualL", CTestAlfExt::TestMeshVisualHandlerMutualL ), |
|
90 ENTRY( "TestRFTokenClientFuncL", CTestAlfExt::TestRFTokenClientFuncL ), |
|
91 |
|
92 }; |
|
93 |
|
94 const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); |
|
95 |
|
96 return RunInternalL( KFunctions, count, aItem ); |
|
97 |
|
98 } |
|
99 |