|
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: test cdl_api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 |
|
25 #include "testdomcdl.h" |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CTestDomCdl::RunMethodL |
|
31 // Run specified method. Contains also table of test mothods and their names. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 TInt CTestDomCdl::RunMethodL( CStifItemParser& aItem ) |
|
35 { |
|
36 |
|
37 static TStifFunctionInfo const KFunctions[] = |
|
38 { |
|
39 // First string is the function name used in TestScripter script file. |
|
40 // Second is the actual implementation member function. |
|
41 ENTRY( "TestCIRefL", CTestDomCdl::TestCIRefL ), |
|
42 ENTRY( "TestCISubLayerL", CTestDomCdl::TestCISubLayerL ), |
|
43 ENTRY( "TestCILastAccessedRefL", CTestDomCdl::TestCILastAccessedRefL ), |
|
44 ENTRY( "TestCIFileNameRelativeToLastAccessedInstanceL", CTestDomCdl::TestCIFileNameRelativeToLastAccessedInstanceL ), |
|
45 ENTRY( "TestCIoperatorL", CTestDomCdl::TestCIoperatorL ), |
|
46 ENTRY( "TestCINewL", CTestDomCdl::TestCINewL ), |
|
47 ENTRY( "TestCINewLCL", CTestDomCdl::TestCINewLCL ), |
|
48 ENTRY( "TestCIGetDataL", CTestDomCdl::TestCIGetDataL ), |
|
49 ENTRY( "TestCIGetFunctionL", CTestDomCdl::TestCIGetFunctionL ), |
|
50 ENTRY( "TestCUNewLCL", CTestDomCdl::TestCUNewLCL ), |
|
51 ENTRY( "TestCUCCdlUidsCL", CTestDomCdl::TestCUCCdlUidsCL ), |
|
52 ENTRY( "TestCUAddL", CTestDomCdl::TestCUAddL ), |
|
53 ENTRY( "TestCURemoveL", CTestDomCdl::TestCURemoveL ), |
|
54 ENTRY( "TestCUAddLUidL", CTestDomCdl::TestCUAddLUidL ), |
|
55 ENTRY( "TestCURemoveUidL", CTestDomCdl::TestCURemoveUidL ), |
|
56 ENTRY( "TestCUFindIndexL", CTestDomCdl::TestCUFindIndexL ), |
|
57 ENTRY( "TestCUIntersectionLCL", CTestDomCdl::TestCUIntersectionLCL ), |
|
58 ENTRY( "TestCUImportL", CTestDomCdl::TestCUImportL ), |
|
59 ENTRY( "TestCUExportL", CTestDomCdl::TestCUExportL ), |
|
60 ENTRY( "TestCNNewLCL", CTestDomCdl::TestCNNewLCL ), |
|
61 ENTRY( "TestCNCCdlNamesL", CTestDomCdl::TestCNCCdlNamesL ), |
|
62 ENTRY( "TestCNFindIndexL", CTestDomCdl::TestCNFindIndexL ), |
|
63 ENTRY( "TestCNAddL", CTestDomCdl::TestCNAddL ), |
|
64 ENTRY( "TestCNImportL", CTestDomCdl::TestCNImportL ), |
|
65 ENTRY( "TestCNExportL", CTestDomCdl::TestCNExportL ), |
|
66 ENTRY( "TestCNExportLCL", CTestDomCdl::TestCNExportLCL ), |
|
67 ENTRY( "TestCCOHandleCustomisationChangeL", CTestDomCdl::TestCCOHandleCustomisationChangeL ), |
|
68 ENTRY( "TestCCOHandleAvailableRefsChangeL", CTestDomCdl::TestCCOHandleAvailableRefsChangeL ), |
|
69 ENTRY( "TestCEIsCdlEngineCreated", CTestDomCdl::TestCEIsCdlEngineCreated ), |
|
70 ENTRY( "TestCECreateCdlEngineL", CTestDomCdl::TestCECreateCdlEngineL ), |
|
71 ENTRY( "TestCEStartGlobalCustomisationL", CTestDomCdl::TestCEStartGlobalCustomisationL ), |
|
72 ENTRY( "TestCEGetDataL", CTestDomCdl::TestCEGetDataL ), |
|
73 ENTRY( "TestCEGetFunctionL", CTestDomCdl::TestCEGetFunctionL ), |
|
74 ENTRY( "TestCEIsCustomisationStarted", CTestDomCdl::TestCEIsCustomisationStarted ), |
|
75 ENTRY( "TestCERequireCustomisationL", CTestDomCdl::TestCERequireCustomisationL ), |
|
76 ENTRY( "TestCELoadCustomisationL", CTestDomCdl::TestCELoadCustomisationL ), |
|
77 ENTRY( "TestCECustomisationInstanceL", CTestDomCdl::TestCECustomisationInstanceL ), |
|
78 ENTRY( "TestCESetCustomisationChangeObserverL", CTestDomCdl::TestCESetCustomisationChangeObserverL ), |
|
79 ENTRY( "TestCELastAccessedRefL", CTestDomCdl::TestCELastAccessedRefL ), |
|
80 ENTRY( "TestCEFileNameRelativeToLastAccessedInstanceL", CTestDomCdl::TestCEFileNameRelativeToLastAccessedInstanceL ), |
|
81 ENTRY( "TestCELastApiIdL", CTestDomCdl::TestCELastApiIdL ), |
|
82 ENTRY( "TestCEFindInstancesLCL", CTestDomCdl::TestCEFindInstancesLCL ), |
|
83 ENTRY( "TestCEFileContentsLCL", CTestDomCdl::TestCEFileContentsLCL ), |
|
84 ENTRY( "TestCEFindCustomisationFilesLCL", CTestDomCdl::TestCEFindCustomisationFilesLCL ), |
|
85 ENTRY( "TestCEAllAvailableRefsLCL", CTestDomCdl::TestCEAllAvailableRefsLCL ), |
|
86 ENTRY( "TestCESetAvailableRefsChangeObserverL", CTestDomCdl::TestCESetAvailableRefsChangeObserverL ), |
|
87 ENTRY( "TestCESetLocalStateL", CTestDomCdl::TestCESetLocalStateL ), |
|
88 ENTRY( "TestCESetGlobalStateL", CTestDomCdl::TestCESetGlobalStateL ), |
|
89 ENTRY( "TestCELocalStateLCL", CTestDomCdl::TestCELocalStateLCL ), |
|
90 ENTRY( "TestCEGlobalStateLCL", CTestDomCdl::TestCEGlobalStateLCL ), |
|
91 ENTRY( "TestCEEnableGlobalCustomisationL", CTestDomCdl::TestCEEnableGlobalCustomisationL ), |
|
92 ENTRY( "TestCECompareNames", CTestDomCdl::TestCECompareNames ), |
|
93 |
|
94 ENTRY( "TestCEUCreateRefsLCL", CTestDomCdl::TestCEUCreateRefsLCL ), |
|
95 ENTRY( "TestCEUCreateRefsLCArrayL", CTestDomCdl::TestCEUCreateRefsLCArrayL ), |
|
96 ENTRY( "TestCIEBDoFindLCL", CTestDomCdl::TestCIEBDoFindLCL ), |
|
97 |
|
98 ENTRY( "TestCRITIteratorL", CTestDomCdl::TestCRITIteratorL ), |
|
99 ENTRY( "TestCRIoperatorL", CTestDomCdl::TestCRIoperatorL ), |
|
100 ENTRY( "TestCRNewL", CTestDomCdl::TestCRNewL ), |
|
101 ENTRY( "TestCRNewLCL", CTestDomCdl::TestCRNewLCL ), |
|
102 ENTRY( "TestCRBeginL", CTestDomCdl::TestCRBeginL ), |
|
103 ENTRY( "TestCRBeginUidL", CTestDomCdl::TestCRBeginUidL ), |
|
104 ENTRY( "TestCRBeginDesL", CTestDomCdl::TestCRBeginDesL ), |
|
105 ENTRY( "TestCREndL", CTestDomCdl::TestCREndL ), |
|
106 ENTRY( "TestCRAppendL", CTestDomCdl::TestCRAppendL ), |
|
107 ENTRY( "TestCRAppendRefsL", CTestDomCdl::TestCRAppendRefsL ), |
|
108 ENTRY( "TestCRAppendDesL", CTestDomCdl::TestCRAppendDesL ), |
|
109 ENTRY( "TestCRInsertL", CTestDomCdl::TestCRInsertL ), |
|
110 ENTRY( "TestCRDeleteL", CTestDomCdl::TestCRDeleteL ), |
|
111 ENTRY( "TestCRDeleteBeginAndL", CTestDomCdl::TestCRDeleteBeginAndL ), |
|
112 ENTRY( "TestCRNamesL", CTestDomCdl::TestCRNamesL ), |
|
113 ENTRY( "TestCRUidsLCL", CTestDomCdl::TestCRUidsLCL ), |
|
114 ENTRY( "TestCRSubsetByUidLCL", CTestDomCdl::TestCRSubsetByUidLCL ), |
|
115 ENTRY( "TestCRSubsetByUidsLCL", CTestDomCdl::TestCRSubsetByUidsLCL ), |
|
116 ENTRY( "TestCRSubsetByNameLCL", CTestDomCdl::TestCRSubsetByNameLCL ), |
|
117 ENTRY( "TestCRMergeAndReplaceL", CTestDomCdl::TestCRMergeAndReplaceL ), |
|
118 ENTRY( "TestCRAddLayerL", CTestDomCdl::TestCRAddLayerL ), |
|
119 ENTRY( "TestCRExportL", CTestDomCdl::TestCRExportL ), |
|
120 ENTRY( "TestCRExportLCL", CTestDomCdl::TestCRExportLCL ), |
|
121 ENTRY( "TestCRImportL", CTestDomCdl::TestCRImportL ), |
|
122 ENTRY( "TestCRCountRefsL", CTestDomCdl::TestCRCountRefsL ), |
|
123 ENTRY( "TestCRRefL", CTestDomCdl::TestCRRefL ), |
|
124 ENTRY( "TestCRDeleteWithNameL", CTestDomCdl::TestCRDeleteWithNameL ), |
|
125 ENTRY( "TestCUPEConstructL", CTestDomCdl::TestCUPEConstructL ), |
|
126 |
|
127 |
|
128 // [test cases entries] |
|
129 |
|
130 }; |
|
131 |
|
132 const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); |
|
133 |
|
134 return RunInternalL( KFunctions, count, aItem ); |
|
135 |
|
136 } |
|
137 |
|
138 // [End of File] |