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 |
|
20 // [INCLUDE FILES] - do not remove |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 #include "testdompslnframework.h" |
|
25 |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // Ctestdompslnframework::Delete |
|
31 // Delete here all resources allocated and opened from test methods. |
|
32 // Called from destructor. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 void CTestDOMPSLNFramework::Delete() |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // Ctestdompslnframework::RunMethodL |
|
42 // Run specified method. Contains also table of test mothods and their names. |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 TInt CTestDOMPSLNFramework::RunMethodL( |
|
46 CStifItemParser& aItem ) |
|
47 { |
|
48 |
|
49 static TStifFunctionInfo const KFunctions[] = |
|
50 { |
|
51 // Copy this line for every implemented function. |
|
52 // First string is the function name used in TestScripter script file. |
|
53 // Second is the actual implementation member function. |
|
54 // PslnFWBaseContainer.h |
|
55 ENTRY( "TestPlsnFWBCConstructL", CTestDOMPSLNFramework::TestPlsnFWBCConstructL ), |
|
56 ENTRY( "TestPlsnFWBCBaseConstructL", CTestDOMPSLNFramework::TestPlsnFWBCBaseConstructL ), |
|
57 ENTRY( "TestPlsnFWBCCPslnFWBaseContainer", |
|
58 CTestDOMPSLNFramework::TestPlsnFWBCCPslnFWBaseContainerL ), |
|
59 ENTRY( "TestPlsnFWBCDelete", CTestDOMPSLNFramework::TestPlsnFWBCDelete ), |
|
60 ENTRY( "TestPlsnFWBCSetMiddleSoftkeyObserver", |
|
61 CTestDOMPSLNFramework::TestPlsnFWBCSetMiddleSoftkeyObserverL ), |
|
62 |
|
63 // PslnPluginInterface.h |
|
64 ENTRY( "TestPlsnFWBVCPslnFWBaseView", |
|
65 CTestDOMPSLNFramework::TestPlsnFWBVCPslnFWBaseViewL ), |
|
66 ENTRY( "TestPlsnFWBVConstructL", CTestDOMPSLNFramework::TestPlsnFWBVConstructL ), |
|
67 ENTRY( "TestPlsnFWBVDelete", CTestDOMPSLNFramework::TestPlsnFWBVDelete ), |
|
68 ENTRY( "TestPlsnFWBVSetCurrentItem", |
|
69 CTestDOMPSLNFramework::TestPlsnFWBVSetCurrentItem ), |
|
70 ENTRY( "TestPlsnFWBVContainer", CTestDOMPSLNFramework::TestPlsnFWBVContainer ), |
|
71 ENTRY( "TestPlsnFWBVOpenLocalizedResourceFileL", |
|
72 CTestDOMPSLNFramework::TestPlsnFWBVOpenLocalizedResourceFileL ), |
|
73 ENTRY( "TestPlsnFWBVOpenLocalizedResourceFileLWithPathL", |
|
74 CTestDOMPSLNFramework::TestPlsnFWBVOpenLocalizedResourceFileLWithPathL ), |
|
75 ENTRY( "TestPlsnFWBVSetNaviPaneDecorator", |
|
76 CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneDecoratorL ), |
|
77 ENTRY( "TestPlsnFWBVDoActivateL", CTestDOMPSLNFramework::TestPlsnFWBVDoActivateL ), |
|
78 ENTRY( "TestPlsnFWBVDoDeactivate", CTestDOMPSLNFramework::TestPlsnFWBVDoDeactivateL ), |
|
79 ENTRY( "TestPlsnFWBVSetTabIndex", CTestDOMPSLNFramework::TestPlsnFWBVSetTabIndex ), |
|
80 ENTRY( "TestPlsnFWBVGetTabIndex", CTestDOMPSLNFramework::TestPlsnFWBVGetTabIndex ), |
|
81 //protected |
|
82 ENTRY( "TestPlsnFWBVSetNaviPaneL", CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneL ), |
|
83 ENTRY( "TestPlsnFWBVCreateNaviPaneContextL", |
|
84 CTestDOMPSLNFramework::TestPlsnFWBVCreateNaviPaneContextL ), |
|
85 ENTRY( "TestPlsnFWBVCreateContainerL", CTestDOMPSLNFramework::TestPlsnFWBVCreateContainerL ), |
|
86 ENTRY( "TestPlsnFWBVNewContainerL", CTestDOMPSLNFramework::TestPlsnFWBVNewContainerL ), |
|
87 ENTRY( "TestPlsnFWBVSetNaviPaneLWithTIntL", |
|
88 CTestDOMPSLNFramework::TestPlsnFWBVSetNaviPaneLWithTIntL ), |
|
89 ENTRY( "TestPlsnFWBVSetMiddleSoftKeyLabelL", |
|
90 CTestDOMPSLNFramework::TestPlsnFWBVSetMiddleSoftKeyLabelL ), |
|
91 ENTRY( "TestPlsnFWBVHandleCommandL", CTestDOMPSLNFramework::TestPlsnFWBVHandleCommandL ), |
|
92 ENTRY( "TestPlsnFWBVSetTitlePaneL", CTestDOMPSLNFramework::TestPlsnFWBVSetTitlePaneL ), |
|
93 |
|
94 // PslnFWIconHelper.h |
|
95 ENTRY( "TestPlsnFWIHNewL", CTestDOMPSLNFramework::TestPlsnFWIHNewL ), |
|
96 ENTRY( "TestPlsnFWIHDelete", CTestDOMPSLNFramework::TestPlsnFWIHDelete ), |
|
97 ENTRY( "TestPlsnFWIHAddIconsToSettingItemsL", |
|
98 CTestDOMPSLNFramework::TestPlsnFWIHAddIconsToSettingItemsL ), |
|
99 ENTRY( "TestPlsnFWIHGetLocalizedStringLC", |
|
100 CTestDOMPSLNFramework::TestPlsnFWIHGetLocalizedStringLC ), |
|
101 |
|
102 //PslnFWPluginHandler.h |
|
103 ENTRY( "TestPlsnFWPHNewL",CTestDOMPSLNFramework::TestPlsnFWPHNewL ), |
|
104 ENTRY( "TestPlsnFWPHNewLWithArray", CTestDOMPSLNFramework::TestPlsnFWPHNewLWithArrayL ), |
|
105 ENTRY( "TestPlsnFWPHDelete", CTestDOMPSLNFramework::TestPlsnFWPHDelete ), |
|
106 ENTRY( "TestPlsnFWPHLoadPluginsLWithArray", |
|
107 CTestDOMPSLNFramework::TestPlsnFWPHLoadPluginsLWithArrayL ), |
|
108 ENTRY( "TestPlsnFWPHLoadPluginsLWithId", |
|
109 CTestDOMPSLNFramework::TestPlsnFWPHLoadPluginsLWithId ), |
|
110 |
|
111 |
|
112 //ADD NEW ENTRY HERE |
|
113 // [test cases entries] - Do not remove |
|
114 |
|
115 }; |
|
116 |
|
117 const TInt count = sizeof( KFunctions ) / |
|
118 sizeof( TStifFunctionInfo ); |
|
119 |
|
120 return RunInternalL( KFunctions, count, aItem ); |
|
121 |
|
122 } |
|
123 |
|
124 // [End of File] - Do not remove |
|