|
1 /* |
|
2 * Copyright (c) 2009 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: mpxvideoplayerappuiengine test class for STIF testing |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: ou1cpsw#10 % |
|
19 |
|
20 // [INCLUDE FILES] - do not remove |
|
21 #include <e32svr.h> |
|
22 #include <StifParser.h> |
|
23 #include <Stiftestinterface.h> |
|
24 #include "mpxvideoplayertest.h" |
|
25 #include "mpxvideoplayer_appuienginetester.h" |
|
26 |
|
27 // ============================= LOCAL FUNCTIONS =============================== |
|
28 |
|
29 // ============================ MEMBER FUNCTIONS =============================== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // Cmpxvideoplayer_test::Delete |
|
33 // Delete here all resources allocated and opened from test methods. |
|
34 // Called from destructor. |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 void Cmpxvideoplayer_test::Delete() |
|
38 { |
|
39 if ( iAppUiEngineTester ) |
|
40 { |
|
41 delete iAppUiEngineTester; |
|
42 iAppUiEngineTester = NULL; |
|
43 } |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // Cmpxvideoplayer_test::RunMethodL |
|
48 // Run specified method. Contains also table of test mothods and their names. |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 TInt Cmpxvideoplayer_test::RunMethodL( CStifItemParser& aItem ) |
|
52 { |
|
53 static TStifFunctionInfo const KFunctions[] = |
|
54 { |
|
55 // Copy this line for every implemented function. |
|
56 // First string is the function name used in TestScripter script file. |
|
57 // Second is the actual implementation member function. |
|
58 ENTRY( "CreateEngine", Cmpxvideoplayer_test::CreateEngineL ), |
|
59 ENTRY( "CreateGenericParametersTerminate", Cmpxvideoplayer_test::CreateGenericParametersTerminateL ), |
|
60 ENTRY( "OpenFile", Cmpxvideoplayer_test::OpenFileL ), |
|
61 ENTRY( "OpenMedia", Cmpxvideoplayer_test::OpenMediaL ), |
|
62 ENTRY( "SetGenericParamAccessPoint", Cmpxvideoplayer_test::SetGenericParamAccessPointL ), |
|
63 ENTRY( "OpenFileEmbeddedPdl", Cmpxvideoplayer_test::OpenFileEmbeddedPdlL ), |
|
64 ENTRY( "HandleMessageEmbeddedPdl", Cmpxvideoplayer_test::HandleMessageEmbeddedPdlL ), |
|
65 ENTRY( "StartStandAlone", Cmpxvideoplayer_test::StartStandAloneL ), |
|
66 ENTRY( "HandleCollectionMessage", Cmpxvideoplayer_test::HandleCollectionMessageL ), |
|
67 ENTRY( "HandleCollectionMedia", Cmpxvideoplayer_test::HandleCollectionMediaL ), |
|
68 ENTRY( "HandleSoftkeyBack", Cmpxvideoplayer_test::HandleSoftkeyBackL ), |
|
69 ENTRY( "HandleOpenPlaylist", Cmpxvideoplayer_test::HandleOpenPlaylistL ), |
|
70 ENTRY( "HandleOpenMedia", Cmpxvideoplayer_test::HandleOpenMediaL ), |
|
71 ENTRY( "HandleViewActivation", Cmpxvideoplayer_test::HandleViewActivation ), |
|
72 ENTRY( "ProcessCommandParameters", Cmpxvideoplayer_test::ProcessCommandParametersL ), |
|
73 ENTRY( "HandleMessageActivationMessageL", Cmpxvideoplayer_test::HandleMessageActivationMessageL ), |
|
74 ENTRY( "GetViewDepth", Cmpxvideoplayer_test::GetViewDepthL ), |
|
75 ENTRY( "ClearPdlInformation", Cmpxvideoplayer_test::ClearPdlInformation ), |
|
76 }; |
|
77 |
|
78 const TInt count = sizeof( KFunctions ) / sizeof( TStifFunctionInfo ); |
|
79 |
|
80 return RunInternalL( KFunctions, count, aItem ); |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // Cmpxvideoplayer_test::CreateEngineL |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 TInt Cmpxvideoplayer_test::CreateEngineL( CStifItemParser& aItem ) |
|
88 { |
|
89 iAppUiEngineTester = CMpxVideoPlayer_AppUiEngineTester::NewL( this ); |
|
90 |
|
91 return iAppUiEngineTester->CreateEngineL( aItem ); |
|
92 } |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // Cmpxvideoplayer_test::CreateGenericParametersL |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 TInt Cmpxvideoplayer_test::CreateGenericParametersTerminateL() |
|
99 { |
|
100 return iAppUiEngineTester->CreateGenericParametersTerminateL(); |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // Cmpxvideoplayer_test::OpenFileL |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 TInt Cmpxvideoplayer_test::OpenFileL( CStifItemParser& aItem ) |
|
108 { |
|
109 return iAppUiEngineTester->OpenFileL( aItem ); |
|
110 } |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // Cmpxvideoplayer_test::OpenMediaL |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 TInt Cmpxvideoplayer_test::OpenMediaL( CStifItemParser& aItem ) |
|
117 { |
|
118 return iAppUiEngineTester->OpenMediaL( aItem ); |
|
119 } |
|
120 |
|
121 // ----------------------------------------------------------------------------- |
|
122 // Cmpxvideoplayer_test::SetGenericParamAccessPointL |
|
123 // ----------------------------------------------------------------------------- |
|
124 // |
|
125 TInt Cmpxvideoplayer_test::SetGenericParamAccessPointL( CStifItemParser& aItem ) |
|
126 { |
|
127 return iAppUiEngineTester->SetGenericParamAccessPointL( aItem ); |
|
128 } |
|
129 |
|
130 // ----------------------------------------------------------------------------- |
|
131 // Cmpxvideoplayer_test::OpenFileEmbeddedPdlL |
|
132 // ----------------------------------------------------------------------------- |
|
133 // |
|
134 TInt Cmpxvideoplayer_test::OpenFileEmbeddedPdlL( CStifItemParser& aItem ) |
|
135 { |
|
136 return iAppUiEngineTester->OpenFileEmbeddedPdlL( aItem ); |
|
137 } |
|
138 |
|
139 // ----------------------------------------------------------------------------- |
|
140 // Cmpxvideoplayer_test::HandleMessageEmbeddedPdlL |
|
141 // ----------------------------------------------------------------------------- |
|
142 // |
|
143 TInt Cmpxvideoplayer_test::HandleMessageEmbeddedPdlL( CStifItemParser& aItem ) |
|
144 { |
|
145 return iAppUiEngineTester->HandleMessageEmbeddedPdlL( aItem ); |
|
146 } |
|
147 |
|
148 // ----------------------------------------------------------------------------- |
|
149 // Cmpxvideoplayer_test::StartStandAloneL |
|
150 // ----------------------------------------------------------------------------- |
|
151 // |
|
152 TInt Cmpxvideoplayer_test::StartStandAloneL( CStifItemParser& aItem ) |
|
153 { |
|
154 return iAppUiEngineTester->StartStandAloneL( aItem ); |
|
155 } |
|
156 |
|
157 // ----------------------------------------------------------------------------- |
|
158 // Cmpxvideoplayer_test::HandleCollectionMessageL |
|
159 // ----------------------------------------------------------------------------- |
|
160 // |
|
161 TInt Cmpxvideoplayer_test::HandleCollectionMessageL( CStifItemParser& aItem ) |
|
162 { |
|
163 return iAppUiEngineTester->HandleCollectionMessageL( aItem ); |
|
164 } |
|
165 |
|
166 // ----------------------------------------------------------------------------- |
|
167 // Cmpxvideoplayer_test::HandleCollectionMediaL |
|
168 // ----------------------------------------------------------------------------- |
|
169 // |
|
170 TInt Cmpxvideoplayer_test::HandleCollectionMediaL( CStifItemParser& aItem ) |
|
171 { |
|
172 return iAppUiEngineTester->HandleCollectionMediaL( aItem ); |
|
173 } |
|
174 |
|
175 // ----------------------------------------------------------------------------- |
|
176 // Cmpxvideoplayer_test::HandleSoftkeyBackL |
|
177 // ----------------------------------------------------------------------------- |
|
178 // |
|
179 TInt Cmpxvideoplayer_test::HandleSoftkeyBackL( CStifItemParser& aItem ) |
|
180 { |
|
181 return iAppUiEngineTester->HandleSoftkeyBackL( aItem ); |
|
182 } |
|
183 |
|
184 // ----------------------------------------------------------------------------- |
|
185 // Cmpxvideoplayer_test::HandleOpenPlaylistL |
|
186 // ----------------------------------------------------------------------------- |
|
187 // |
|
188 TInt Cmpxvideoplayer_test::HandleOpenPlaylistL( CStifItemParser& aItem ) |
|
189 { |
|
190 return iAppUiEngineTester->HandleOpenPlaylistL( aItem ); |
|
191 } |
|
192 |
|
193 // ----------------------------------------------------------------------------- |
|
194 // Cmpxvideoplayer_test::HandleOpenMediaL |
|
195 // ----------------------------------------------------------------------------- |
|
196 // |
|
197 TInt Cmpxvideoplayer_test::HandleOpenMediaL( CStifItemParser& aItem ) |
|
198 { |
|
199 return iAppUiEngineTester->HandleOpenMediaL( aItem ); |
|
200 } |
|
201 |
|
202 // ----------------------------------------------------------------------------- |
|
203 // Cmpxvideoplayer_test::HandleViewActivation |
|
204 // ----------------------------------------------------------------------------- |
|
205 // |
|
206 TInt Cmpxvideoplayer_test::HandleViewActivation( CStifItemParser& aItem ) |
|
207 { |
|
208 return iAppUiEngineTester->HandleViewActivation( aItem ); |
|
209 } |
|
210 |
|
211 // ----------------------------------------------------------------------------- |
|
212 // Cmpxvideoplayer_test::ProcessCommandParametersL |
|
213 // ----------------------------------------------------------------------------- |
|
214 // |
|
215 TInt Cmpxvideoplayer_test::ProcessCommandParametersL( CStifItemParser& aItem ) |
|
216 { |
|
217 return iAppUiEngineTester->ProcessCommandParametersL( aItem ); |
|
218 } |
|
219 |
|
220 // ----------------------------------------------------------------------------- |
|
221 // Cmpxvideoplayer_test::HandleMessageActivationMessageL |
|
222 // ----------------------------------------------------------------------------- |
|
223 // |
|
224 TInt Cmpxvideoplayer_test::HandleMessageActivationMessageL( CStifItemParser& aItem ) |
|
225 { |
|
226 return iAppUiEngineTester->HandleMessageActivationMessageL( aItem ); |
|
227 } |
|
228 |
|
229 // ----------------------------------------------------------------------------- |
|
230 // Cmpxvideoplayer_test::GetViewDepthL |
|
231 // ----------------------------------------------------------------------------- |
|
232 // |
|
233 TInt Cmpxvideoplayer_test::GetViewDepthL( CStifItemParser& aItem ) |
|
234 { |
|
235 return iAppUiEngineTester->GetViewDepthL( aItem ); |
|
236 } |
|
237 |
|
238 // ----------------------------------------------------------------------------- |
|
239 // Cmpxvideoplayer_test::ClearPdlInformation |
|
240 // ----------------------------------------------------------------------------- |
|
241 // |
|
242 TInt Cmpxvideoplayer_test::ClearPdlInformation() |
|
243 { |
|
244 iAppUiEngineTester->ClearPdlInformation(); |
|
245 return KErrNone; |
|
246 } |
|
247 |
|
248 // [End of File] - Do not remove |