|
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: for testing the method of the CHuiTextVisual |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <uiacceltk\huitextureautosizeparams.h> |
|
19 |
|
20 #include "testuiaifcoretoolkit.h" |
|
21 |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaConstructor |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaConstructor( CStifItemParser& /*aItem*/ ) |
|
28 { |
|
29 |
|
30 // Print to UI |
|
31 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
32 _LIT( KTestHuiTexureAutoSizeParaConstructor, "In TestHuiTexureAutoSizeParaConstructor" ); |
|
33 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaConstructor ); |
|
34 // Print to log file |
|
35 iLog->Log( KTestHuiTexureAutoSizeParaConstructor ); |
|
36 |
|
37 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
38 |
|
39 return KErrNone; |
|
40 |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaSizeLowerThreshold |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaSizeLowerThreshold( CStifItemParser& /*aItem*/ ) |
|
48 { |
|
49 |
|
50 // Print to UI |
|
51 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
52 _LIT( KTestHuiTexureAutoSizeParaSizeLowerThreshold, "In TestHuiTexureAutoSizeParaSizeLowerThreshold" ); |
|
53 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaSizeLowerThreshold ); |
|
54 // Print to log file |
|
55 iLog->Log( KTestHuiTexureAutoSizeParaSizeLowerThreshold ); |
|
56 |
|
57 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
58 huiTextureAutoSizeParams.SizeLowerThreshold(); |
|
59 |
|
60 return KErrNone; |
|
61 |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaSetSizeLowerThreshold |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaSetSizeLowerThreshold( CStifItemParser& /*aItem*/ ) |
|
69 { |
|
70 |
|
71 // Print to UI |
|
72 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
73 _LIT( KTestHuiTexureAutoSizeParaSetSizeLowerThreshold, "In TestHuiTexureAutoSizeParaSetSizeLowerThreshold" ); |
|
74 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaSetSizeLowerThreshold ); |
|
75 // Print to log file |
|
76 iLog->Log( KTestHuiTexureAutoSizeParaSetSizeLowerThreshold ); |
|
77 |
|
78 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
79 huiTextureAutoSizeParams.SetSizeLowerThreshold( THuiTextureAutoSizeParams::EMedium ); |
|
80 |
|
81 return KErrNone; |
|
82 |
|
83 } |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaSizeUpperThreshold |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaSizeUpperThreshold( CStifItemParser& /*aItem*/ ) |
|
90 { |
|
91 |
|
92 // Print to UI |
|
93 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
94 _LIT( KTestHuiTexureAutoSizeParaSizeUpperThreshold, "In TestHuiTexureAutoSizeParaSizeUpperThreshold" ); |
|
95 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaSizeUpperThreshold ); |
|
96 // Print to log file |
|
97 iLog->Log( KTestHuiTexureAutoSizeParaSizeUpperThreshold ); |
|
98 |
|
99 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
100 huiTextureAutoSizeParams.SizeUpperThreshold(); |
|
101 |
|
102 return KErrNone; |
|
103 |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaSetSizeUpperThreshold |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaSetSizeUpperThreshold( CStifItemParser& /*aItem*/ ) |
|
111 { |
|
112 |
|
113 // Print to UI |
|
114 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
115 _LIT( KTestHuiTexureAutoSizeParaSetSizeUpperThreshold, "In TestHuiTexureAutoSizeParaSetSizeUpperThreshold" ); |
|
116 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaSetSizeUpperThreshold ); |
|
117 // Print to log file |
|
118 iLog->Log( KTestHuiTexureAutoSizeParaSetSizeUpperThreshold ); |
|
119 |
|
120 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
121 huiTextureAutoSizeParams.SetSizeUpperThreshold( THuiTextureAutoSizeParams::EMedium ); |
|
122 |
|
123 return KErrNone; |
|
124 |
|
125 } |
|
126 |
|
127 // ----------------------------------------------------------------------------- |
|
128 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaMinSizeChange |
|
129 // ----------------------------------------------------------------------------- |
|
130 // |
|
131 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaMinSizeChange( CStifItemParser& /*aItem*/ ) |
|
132 { |
|
133 |
|
134 // Print to UI |
|
135 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
136 _LIT( KTestHuiTexureAutoSizeParaMinSizeChange, "In TestHuiTexureAutoSizeParaMinSizeChange" ); |
|
137 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaMinSizeChange ); |
|
138 // Print to log file |
|
139 iLog->Log( KTestHuiTexureAutoSizeParaMinSizeChange ); |
|
140 |
|
141 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
142 huiTextureAutoSizeParams.MinSizeChange(); |
|
143 |
|
144 return KErrNone; |
|
145 |
|
146 } |
|
147 |
|
148 // ----------------------------------------------------------------------------- |
|
149 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaSetMinSizeChange |
|
150 // ----------------------------------------------------------------------------- |
|
151 // |
|
152 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaSetMinSizeChange( CStifItemParser& /*aItem*/ ) |
|
153 { |
|
154 |
|
155 // Print to UI |
|
156 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
157 _LIT( KTestHuiTexureAutoSizeParaSetMinSizeChange, "In TestHuiTexureAutoSizeParaSetMinSizeChange" ); |
|
158 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaSetMinSizeChange ); |
|
159 // Print to log file |
|
160 iLog->Log( KTestHuiTexureAutoSizeParaSetMinSizeChange ); |
|
161 |
|
162 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
163 huiTextureAutoSizeParams.SetMinSizeChange( THuiTextureAutoSizeParams::EMedium ); |
|
164 |
|
165 return KErrNone; |
|
166 |
|
167 } |
|
168 |
|
169 // ----------------------------------------------------------------------------- |
|
170 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaDownsizeSettleThreshold |
|
171 // ----------------------------------------------------------------------------- |
|
172 // |
|
173 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaDownsizeSettleThreshold( CStifItemParser& /*aItem*/ ) |
|
174 { |
|
175 |
|
176 // Print to UI |
|
177 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
178 _LIT( KTestHuiTexureAutoSizeParaDownsizeSettleThreshold, "In TestHuiTexureAutoSizeParaDownsizeSettleThreshold" ); |
|
179 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaDownsizeSettleThreshold ); |
|
180 // Print to log file |
|
181 iLog->Log( KTestHuiTexureAutoSizeParaDownsizeSettleThreshold ); |
|
182 |
|
183 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
184 huiTextureAutoSizeParams.DownsizeSettleThreshold(); |
|
185 |
|
186 return KErrNone; |
|
187 |
|
188 } |
|
189 |
|
190 // ----------------------------------------------------------------------------- |
|
191 // Ctestplatalfcoretoolkit::TestHuiTexureAutoSizeParaSetDownsizeSettleThreshold |
|
192 // ----------------------------------------------------------------------------- |
|
193 // |
|
194 TInt CTestUiAifCoreToolkit::TestHuiTexureAutoSizeParaSetDownsizeSettleThreshold( CStifItemParser& /*aItem*/ ) |
|
195 { |
|
196 |
|
197 // Print to UI |
|
198 _LIT( Ktestplatalfcoretoolkit, "testplatalfcoretoolkit" ); |
|
199 _LIT( KTestHuiTexureAutoSizeParaSetDownsizeSettleThreshold, "In TestHuiTexureAutoSizeParaSetDownsizeSettleThreshold" ); |
|
200 TestModuleIf().Printf( 0, Ktestplatalfcoretoolkit, KTestHuiTexureAutoSizeParaSetDownsizeSettleThreshold ); |
|
201 // Print to log file |
|
202 iLog->Log( KTestHuiTexureAutoSizeParaSetDownsizeSettleThreshold ); |
|
203 |
|
204 THuiTextureAutoSizeParams huiTextureAutoSizeParams; |
|
205 huiTextureAutoSizeParams.SetDownsizeSettleThreshold( THuiTextureAutoSizeParams::EMedium ); |
|
206 |
|
207 return KErrNone; |
|
208 |
|
209 } |
|
210 |
|
211 // End of files |