|
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 aknpictographinterface.h |
|
15 akniconsrvclient.h |
|
16 akniconutils.h |
|
17 akninternaliconutils.h |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 // [INCLUDE FILES] |
|
24 #include <e32svr.h> |
|
25 #include <stifparser.h> |
|
26 #include <stiftestinterface.h> |
|
27 |
|
28 #include "testsdkpictograph.h" |
|
29 |
|
30 // ============================ MEMBER FUNCTIONS =============================== |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // CTestSDKPicToGraph::RunMethodL |
|
34 // Run specified method. Contains also table of test mothods and their names. |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 TInt CTestSDKPicToGraph::RunMethodL( CStifItemParser& aItem ) |
|
38 { |
|
39 |
|
40 static TStifFunctionInfo const KFunctions[] = |
|
41 { |
|
42 // First string is the function name used in TestScripter script file. |
|
43 // Second is the actual implementation member function. |
|
44 |
|
45 // test functions in aknpictographinterface.h |
|
46 ENTRY( "TestIntfaceNewL", CTestSDKPicToGraph::TestIntfaceNewL ), |
|
47 |
|
48 // test functions in akniconsrvclient.h |
|
49 ENTRY( "TestSrvConnect", CTestSDKPicToGraph::TestSrvConnect ), |
|
50 ENTRY( "TestSrvDisconnect", CTestSDKPicToGraph::TestSrvDisconnect ), |
|
51 |
|
52 // test functions in akniconutils.h |
|
53 ENTRY( "TestDimenDefCons", CTestSDKPicToGraph::TestDimenDefCons ), |
|
54 ENTRY( "TestDimenConstruct", CTestSDKPicToGraph::TestDimenConstruct ), |
|
55 ENTRY( "TestDimenSetDimen", CTestSDKPicToGraph::TestDimenSetDimen ), |
|
56 |
|
57 ENTRY( "TestIconNewL", CTestSDKPicToGraph::TestIconNewL ), |
|
58 ENTRY( "TestIconBitmap", CTestSDKPicToGraph::TestIconBitmapL ), |
|
59 ENTRY( "TestIconMask", CTestSDKPicToGraph::TestIconMaskL ), |
|
60 ENTRY( "TestIconSetBitmap", CTestSDKPicToGraph::TestIconSetBitmapL ), |
|
61 ENTRY( "TestIconSetMask", CTestSDKPicToGraph::TestIconSetMaskL ), |
|
62 |
|
63 ENTRY( "TestUtilCreateIconWithMaskL", |
|
64 CTestSDKPicToGraph::TestUtilCreateIconWithMaskL ), |
|
65 ENTRY( "TestUtilCreateIconWithBmpIdL", |
|
66 CTestSDKPicToGraph::TestUtilCreateIconWithBmpIdL ), |
|
67 ENTRY( "TestUtilCreateIconWithProMaskL", |
|
68 CTestSDKPicToGraph::TestUtilCreateIconWithProMaskL ), |
|
69 ENTRY( "TestUtilCreateIconWithProviderL", |
|
70 CTestSDKPicToGraph::TestUtilCreateIconWithProviderL ), |
|
71 ENTRY( "TestUtilCreateIconWithSoIconL", |
|
72 CTestSDKPicToGraph::TestUtilCreateIconWithSoIconL ), |
|
73 ENTRY( "TestUtilCreateIconWithSoBmpL", |
|
74 CTestSDKPicToGraph::TestUtilCreateIconWithSoBmpL ), |
|
75 ENTRY( "TestUtilCreateIconLC", |
|
76 CTestSDKPicToGraph::TestUtilCreateIconLCL ), |
|
77 ENTRY( "TestUtilPreserveIconData", |
|
78 CTestSDKPicToGraph::TestUtilPreserveIconDataL ), |
|
79 ENTRY( "TestUtilDestroyIconData", |
|
80 CTestSDKPicToGraph::TestUtilDestroyIconDataL ), |
|
81 ENTRY( "TestUtilSetSize", CTestSDKPicToGraph::TestUtilSetSizeL ), |
|
82 ENTRY( "TestUtilSetSizeAndRotation", |
|
83 CTestSDKPicToGraph::TestUtilSetSizeAndRotationL ), |
|
84 ENTRY( "TestUtilSetObserver", CTestSDKPicToGraph::TestUtilSetObserverL ), |
|
85 ENTRY( "TestUtilAvkonIconFileName", |
|
86 CTestSDKPicToGraph::TestUtilAvkonIconFileName ), |
|
87 ENTRY( "TestUtilValidateLogicalAppIconId", |
|
88 CTestSDKPicToGraph::TestUtilValidateLogicalAppIconId ), |
|
89 ENTRY( "TestUtilIsMifFile", CTestSDKPicToGraph::TestUtilIsMifFile ), |
|
90 ENTRY( "TestUtilIsMifIcon", CTestSDKPicToGraph::TestUtilIsMifIconL ), |
|
91 ENTRY( "TestUtilGetContentDimensions", |
|
92 CTestSDKPicToGraph::TestUtilGetContentDimensionsL ), |
|
93 ENTRY( "TestUtilSetIconColor", |
|
94 CTestSDKPicToGraph::TestUtilSetIconColorL ), |
|
95 ENTRY( "TestUtilExcludeFromCache", |
|
96 CTestSDKPicToGraph::TestUtilExcludeFromCacheL ), |
|
97 ENTRY( "TestUtilDisableCompression", |
|
98 CTestSDKPicToGraph::TestUtilDisableCompressionL ), |
|
99 ENTRY( "TestUtilScaleBitmapL", CTestSDKPicToGraph::TestUtilScaleBitmapL ), |
|
100 |
|
101 // test functions in akninternaliconutils.h |
|
102 ENTRY( "TestIntUtilSetAppIcon", |
|
103 CTestSDKPicToGraph::TestIntUtilSetAppIconL ), |
|
104 |
|
105 // [test cases entries] |
|
106 |
|
107 }; |
|
108 |
|
109 const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); |
|
110 |
|
111 return RunInternalL( KFunctions, count, aItem ); |
|
112 |
|
113 } |
|
114 |
|
115 |
|
116 // [End of File] |