|
1 /* |
|
2 * Copyright (c) 2002 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: MPXPluginHandlerBase testing implementation (mpxpluginhandlerbase.h) |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "commontestclass.h" |
|
20 #include <mpxpluginhandlerbase.h> |
|
21 #include <mpxplugininfo.h> |
|
22 |
|
23 |
|
24 // Begin MPXPluginHandlerBase testing implementation (mpxpluginhandlerbase.h)============================ |
|
25 const TUid KMPXPPluginHandlerBaseUid = {0x12345}; |
|
26 const TUid KMPXPlaybackInterfaceUid = {0x21CD4510}; |
|
27 class CDummyMpxPluginHandler : public CMPXPluginHandlerBase |
|
28 { |
|
29 public: // Constructors and destructor |
|
30 CDummyMpxPluginHandler(); |
|
31 ~CDummyMpxPluginHandler(); |
|
32 |
|
33 //void ResolvePluginL(); |
|
34 |
|
35 void BasePluginsChangedL(); |
|
36 |
|
37 TBool BaseIsPluginLoaded(const TUid& aPluginUid ); |
|
38 |
|
39 void BaseLoadPluginL(const TUid& aPluginUid); |
|
40 |
|
41 void BaseHandlePluginUnload(const TUid& aPluginUid); |
|
42 |
|
43 }; |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // CDummyMpxPluginHandler::CDummyMpxPluginHandler() |
|
47 // ----------------------------------------------------------------------------- |
|
48 |
|
49 CDummyMpxPluginHandler::CDummyMpxPluginHandler(): |
|
50 CMPXPluginHandlerBase (KMPXPPluginHandlerBaseUid, CMPXPluginHandlerBase::ESelectionUid, 0,iObserver,CMPXPluginMonitor::NewL((TUid)KMPXPlaybackInterfaceUid/*, *this*/)) |
|
51 { |
|
52 TInt err = KErrNone; |
|
53 TRAP(err,iDataType = HBufC8::NewL(11));//NULL; |
|
54 TRAP(err,iScheme = HBufC8::NewL(9));//NULL; |
|
55 TRAP(err,iExt = HBufC8::NewL(6));//NULL; |
|
56 |
|
57 TRAP(err,BaseConstructL()); //if protected export functions should be stifed, then this function |
|
58 //must be took away and be tested separately. |
|
59 } |
|
60 |
|
61 |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CDummyMpxPluginHandler::~CDummyMpxPluginHandler() |
|
65 // ----------------------------------------------------------------------------- |
|
66 CDummyMpxPluginHandler::~CDummyMpxPluginHandler() |
|
67 { |
|
68 } |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CDummyMpxPluginHandler::BasePluginsChangedL() |
|
71 // ----------------------------------------------------------------------------- |
|
72 void CDummyMpxPluginHandler::BasePluginsChangedL() |
|
73 { |
|
74 PluginsChangedL(); |
|
75 } |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // CDummyMpxPluginHandler::BaseLoadPluginL() |
|
79 // ----------------------------------------------------------------------------- |
|
80 void CDummyMpxPluginHandler::BaseLoadPluginL(const TUid& aPluginUid) |
|
81 { |
|
82 LoadPluginL( aPluginUid ); |
|
83 } |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // CDummyMpxPluginHandler::BaseHandlePluginUnload() |
|
87 // ----------------------------------------------------------------------------- |
|
88 void CDummyMpxPluginHandler::BaseHandlePluginUnload(const TUid& aPluginUid) |
|
89 { |
|
90 HandlePluginUnload( aPluginUid ); |
|
91 } |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // CDummyMpxPluginHandler::BaseIsPluginLoaded() |
|
95 // ----------------------------------------------------------------------------- |
|
96 TBool CDummyMpxPluginHandler::BaseIsPluginLoaded(const TUid& aPluginUid ) |
|
97 { |
|
98 return IsPluginLoaded( aPluginUid ); |
|
99 } |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // CTestMpxPluginHandler::ResolvePluginL() |
|
103 // ----------------------------------------------------------------------------- |
|
104 //void CDummyMpxPluginHandler::ResolvePluginL() |
|
105 // { |
|
106 // |
|
107 // } |
|
108 |
|
109 |
|
110 // ----------------------------------------------------------------------------- |
|
111 // CCommonTestClass::MpxPluginHandlerBaseSelectPluginLIdL() |
|
112 // Returns: Symbian OS errors. |
|
113 // ----------------------------------------------------------------------------- |
|
114 TInt CCommonTestClass::MpxPluginHandlerBaseSelectPluginLIdL(CStifItemParser& /*aItem*/) |
|
115 { |
|
116 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLIdL testing CMPXPluginHandlerBase::SelectPluginL() begin"))); |
|
117 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLIdL testing CMPXPluginHandlerBase::SelectPluginL() begin")); |
|
118 TInt err=KErrNone; |
|
119 CDummyMpxPluginHandler pluginHandler; |
|
120 pluginHandler.SelectPluginL(KMPXPPluginHandlerBaseUid); |
|
121 return err; |
|
122 } |
|
123 |
|
124 // ----------------------------------------------------------------------------- |
|
125 // CCommonTestClass::MpxPluginHandlerBaseSelectPluginLNameL() |
|
126 // Returns: Symbian OS errors. |
|
127 // ----------------------------------------------------------------------------- |
|
128 TInt CCommonTestClass::MpxPluginHandlerBaseSelectPluginLNameL(CStifItemParser& /*aItem*/) |
|
129 { |
|
130 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLNameL testing CMPXPluginHandlerBase::SelectPluginL() begin"))); |
|
131 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLNameL testing CMPXPluginHandlerBase::SelectPluginL() begin")); |
|
132 TInt err=KErrNone; |
|
133 TBufC<10> name(_L("TestName")); |
|
134 |
|
135 CDummyMpxPluginHandler pluginHandler; |
|
136 pluginHandler.SelectPluginL(name); |
|
137 return err; |
|
138 } |
|
139 |
|
140 // ----------------------------------------------------------------------------- |
|
141 // CCommonTestClass::MpxPluginHandlerBaseSelectPluginLUriL() |
|
142 // Returns: Symbian OS errors. |
|
143 // ----------------------------------------------------------------------------- |
|
144 TInt CCommonTestClass::MpxPluginHandlerBaseSelectPluginLUriL(CStifItemParser& /*aItem*/) |
|
145 { |
|
146 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLUriL testing CMPXPluginHandlerBase::SelectPluginL() begin"))); |
|
147 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLUriL testing CMPXPluginHandlerBase::SelectPluginL() begin")); |
|
148 TInt err=KErrNone; |
|
149 TBufC<20> uri(_L("c:\\data\\test.mp3")); |
|
150 |
|
151 CDummyMpxPluginHandler pluginHandler; |
|
152 pluginHandler.SelectPluginL(uri, KNullDesC8); |
|
153 return err; |
|
154 } |
|
155 |
|
156 // ----------------------------------------------------------------------------- |
|
157 // CCommonTestClass::MpxPluginHandlerBaseSelectPluginLTypeL() |
|
158 // Returns: Symbian OS errors. |
|
159 // ----------------------------------------------------------------------------- |
|
160 TInt CCommonTestClass::MpxPluginHandlerBaseSelectPluginLTypeL(CStifItemParser& /*aItem*/) |
|
161 { |
|
162 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLTypeL testing CMPXPluginHandlerBase::SelectPluginL() begin"))); |
|
163 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLTypeL testing CMPXPluginHandlerBase::SelectPluginL() begin")); |
|
164 TInt err=KErrNone; |
|
165 TInt type=1; |
|
166 |
|
167 CDummyMpxPluginHandler pluginHandler; |
|
168 pluginHandler.SelectPluginL(type); |
|
169 return err; |
|
170 } |
|
171 |
|
172 // ----------------------------------------------------------------------------- |
|
173 // CCommonTestClass::MpxPluginHandlerBaseClearSelectionCriteria() |
|
174 // Returns: Symbian OS errors. |
|
175 // ----------------------------------------------------------------------------- |
|
176 TInt CCommonTestClass::MpxPluginHandlerBaseClearSelectionCriteria(CStifItemParser& /*aItem*/) |
|
177 { |
|
178 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseClearSelectionCriteria testing CMPXPluginHandlerBase::ClearSelectionCriteria() begin"))); |
|
179 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseClearSelectionCriteria testing CMPXPluginHandlerBase::ClearSelectionCriteria() begin")); |
|
180 TInt err=KErrNone; |
|
181 CDummyMpxPluginHandler pluginHandler; |
|
182 pluginHandler.ClearSelectionCriteria(); |
|
183 return err; |
|
184 } |
|
185 |
|
186 // ----------------------------------------------------------------------------- |
|
187 // CCommonTestClass::MpxPluginHandlerBasePluginNameType() |
|
188 // Returns: Symbian OS errors. |
|
189 // ----------------------------------------------------------------------------- |
|
190 TInt CCommonTestClass::MpxPluginHandlerBasePluginNameType(CStifItemParser& /*aItem*/) |
|
191 { |
|
192 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBasePluginNameType testing CMPXPluginHandlerBase::PluginName() begin"))); |
|
193 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBasePluginNameType testing CMPXPluginHandlerBase::PluginName() begin")); |
|
194 TInt err=KErrNone; |
|
195 TBufC<20> name; |
|
196 |
|
197 CDummyMpxPluginHandler pluginHandler; |
|
198 name = pluginHandler.PluginName(0); |
|
199 iLog->Log(_L("Plugin Name=%S"), &name); |
|
200 return err; |
|
201 } |
|
202 |
|
203 // ----------------------------------------------------------------------------- |
|
204 // CCommonTestClass::MpxPluginHandlerBasePluginNamesL() |
|
205 // Returns: Symbian OS errors. |
|
206 // ----------------------------------------------------------------------------- |
|
207 TInt CCommonTestClass::MpxPluginHandlerBasePluginNamesL(CStifItemParser& /*aItem*/) |
|
208 { |
|
209 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBasePluginNamesL testing CMPXPluginHandlerBase::PluginNamesL() begin"))); |
|
210 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBasePluginNamesL testing CMPXPluginHandlerBase::PluginNamesL() begin")); |
|
211 TInt err=KErrNone; |
|
212 CDesCArray* names; |
|
213 |
|
214 CDummyMpxPluginHandler pluginHandler; |
|
215 names = pluginHandler.PluginNamesL(); |
|
216 iLog->Log(_L("Number of plugin names=%d"), names->Count()); |
|
217 delete names; |
|
218 return err; |
|
219 } |
|
220 |
|
221 // ----------------------------------------------------------------------------- |
|
222 // CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesL() |
|
223 // Returns: Symbian OS errors. |
|
224 // ----------------------------------------------------------------------------- |
|
225 TInt CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesL(CStifItemParser& /*aItem*/) |
|
226 { |
|
227 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesL testing CMPXPluginHandlerBase::SupportedMimeTypesL() begin"))); |
|
228 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesL testing CMPXPluginHandlerBase::SupportedMimeTypesL() begin")); |
|
229 TInt err=KErrNone; |
|
230 CDesCArray* mimeType; |
|
231 |
|
232 CDummyMpxPluginHandler pluginHandler; |
|
233 mimeType = pluginHandler.SupportedMimeTypesL(); |
|
234 iLog->Log(_L("Number of plugin mimeType=%d"), mimeType->Count()); |
|
235 delete mimeType; |
|
236 return err; |
|
237 } |
|
238 |
|
239 // ----------------------------------------------------------------------------- |
|
240 // CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsL() |
|
241 // Returns: Symbian OS errors. |
|
242 // ----------------------------------------------------------------------------- |
|
243 TInt CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsL(CStifItemParser& /*aItem*/) |
|
244 { |
|
245 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsL testing CMPXPluginHandlerBase::SupportedExtensionsL() begin"))); |
|
246 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsL testing CMPXPluginHandlerBase::SupportedExtensionsL() begin")); |
|
247 TInt err=KErrNone; |
|
248 CDesCArray* ext; |
|
249 |
|
250 CDummyMpxPluginHandler pluginHandler; |
|
251 ext = pluginHandler.SupportedExtensionsL(); |
|
252 iLog->Log(_L("Number of plugin extensions=%d"), ext->Count()); |
|
253 delete ext; |
|
254 return err; |
|
255 } |
|
256 |
|
257 // ----------------------------------------------------------------------------- |
|
258 // CCommonTestClass::MpxPluginHandlerBaseSupportedSchemasL() |
|
259 // Returns: Symbian OS errors. |
|
260 // ----------------------------------------------------------------------------- |
|
261 TInt CCommonTestClass::MpxPluginHandlerBaseSupportedSchemasL(CStifItemParser& /*aItem*/) |
|
262 { |
|
263 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedSchemasL testing CMPXPluginHandlerBase::SupportedSchemasL() begin"))); |
|
264 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedSchemasL testing CMPXPluginHandlerBase::SupportedSchemasL() begin")); |
|
265 TInt err=KErrNone; |
|
266 CDesCArray* schemas; |
|
267 |
|
268 CDummyMpxPluginHandler pluginHandler; |
|
269 schemas = pluginHandler.SupportedSchemasL(); |
|
270 iLog->Log(_L("Number of plugin schemas=%d"), schemas->Count()); |
|
271 delete schemas; |
|
272 return err; |
|
273 } |
|
274 |
|
275 // ----------------------------------------------------------------------------- |
|
276 // CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesLUidL() |
|
277 // Returns: Symbian OS errors. |
|
278 // ----------------------------------------------------------------------------- |
|
279 TInt CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesLUidL(CStifItemParser& /*aItem*/) |
|
280 { |
|
281 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesLUidL testing CMPXPluginHandlerBase::SupportedMimeTypesL() begin"))); |
|
282 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedMimeTypesLUidL testing CMPXPluginHandlerBase::SupportedMimeTypesL() begin")); |
|
283 TInt err=KErrNone; |
|
284 CDesCArray* mimeType; |
|
285 |
|
286 CDummyMpxPluginHandler pluginHandler; |
|
287 mimeType = pluginHandler.SupportedMimeTypesL(KMPXPPluginHandlerBaseUid); |
|
288 iLog->Log(_L("Number of plugin mimeType=%d"), mimeType->Count()); |
|
289 delete mimeType; |
|
290 return err; |
|
291 } |
|
292 |
|
293 // ----------------------------------------------------------------------------- |
|
294 // CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsLUidL() |
|
295 // Returns: Symbian OS errors. |
|
296 // ----------------------------------------------------------------------------- |
|
297 TInt CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsLUidL(CStifItemParser& /*aItem*/) |
|
298 { |
|
299 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsLUidL testing CMPXPluginHandlerBase::SupportedExtensionsL() begin"))); |
|
300 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSupportedExtensionsLUidL testing CMPXPluginHandlerBase::SupportedExtensionsL() begin")); |
|
301 TInt err=KErrNone; |
|
302 CDesCArray* ext; |
|
303 |
|
304 CDummyMpxPluginHandler pluginHandler; |
|
305 ext = pluginHandler.SupportedExtensionsL(KMPXPPluginHandlerBaseUid); |
|
306 iLog->Log(_L("Number of plugin extensions=%d"), ext->Count()); |
|
307 delete ext; |
|
308 return err; |
|
309 } |
|
310 |
|
311 // ----------------------------------------------------------------------------- |
|
312 // CCommonTestClass::MpxPluginHandlerBaseGetPluginTypes() |
|
313 // Returns: Symbian OS errors. |
|
314 // ----------------------------------------------------------------------------- |
|
315 TInt CCommonTestClass::MpxPluginHandlerBaseGetPluginTypes(CStifItemParser& /*aItem*/) |
|
316 { |
|
317 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseGetPluginTypes testing CMPXPluginHandlerBase::GetPluginTypes() begin"))); |
|
318 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseGetPluginTypes testing CMPXPluginHandlerBase::GetPluginTypes() begin")); |
|
319 TInt err=KErrNone; |
|
320 RArray<TInt> types; |
|
321 |
|
322 CDummyMpxPluginHandler pluginHandler; |
|
323 pluginHandler.GetPluginTypes(types); |
|
324 iLog->Log(_L("Number of plugin types=%d"), types.Count()); |
|
325 types.Reset(); |
|
326 return err; |
|
327 } |
|
328 |
|
329 // ----------------------------------------------------------------------------- |
|
330 // CCommonTestClass::MpxPluginHandlerBaseGetPluginUids() |
|
331 // Returns: Symbian OS errors. |
|
332 // ----------------------------------------------------------------------------- |
|
333 TInt CCommonTestClass::MpxPluginHandlerBaseGetPluginUids(CStifItemParser& /*aItem*/) |
|
334 { |
|
335 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseGetPluginUids testing CMPXPluginHandlerBase::GetPluginUids() begin"))); |
|
336 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseGetPluginUids testing CMPXPluginHandlerBase::GetPluginUids() begin")); |
|
337 TInt err=KErrNone; |
|
338 RArray<TUid> uids; |
|
339 |
|
340 CDummyMpxPluginHandler pluginHandler; |
|
341 pluginHandler.GetPluginUids(uids); |
|
342 iLog->Log(_L("Number of plugin uids=%d"), uids.Count()); |
|
343 uids.Reset(); |
|
344 return err; |
|
345 } |
|
346 |
|
347 // ----------------------------------------------------------------------------- |
|
348 // CCommonTestClass::MpxPluginHandlerBaseGetPluginUidsL() |
|
349 // Returns: Symbian OS errors. |
|
350 // ----------------------------------------------------------------------------- |
|
351 TInt CCommonTestClass::MpxPluginHandlerBaseGetPluginUidsL(CStifItemParser& /*aItem*/) |
|
352 { |
|
353 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseGetPluginUidsL testing CMPXPluginHandlerBase::GetPluginUidsL() begin"))); |
|
354 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseGetPluginUidsL testing CMPXPluginHandlerBase::GetPluginUidsL() begin")); |
|
355 TInt err=KErrNone; |
|
356 RArray<TUid> uids; |
|
357 |
|
358 CDummyMpxPluginHandler pluginHandler; |
|
359 pluginHandler.GetPluginUidsL(uids, 1); |
|
360 iLog->Log(_L("Number of plugin uids=%d"), uids.Count()); |
|
361 uids.Reset(); |
|
362 return err; |
|
363 } |
|
364 |
|
365 // ----------------------------------------------------------------------------- |
|
366 // CCommonTestClass::MpxPluginHandlerBasePluginUid() |
|
367 // Returns: Symbian OS errors. |
|
368 // ----------------------------------------------------------------------------- |
|
369 TInt CCommonTestClass::MpxPluginHandlerBasePluginUid(CStifItemParser& /*aItem*/) |
|
370 { |
|
371 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBasePluginUid testing CMPXPluginHandlerBase::PluginUid() begin"))); |
|
372 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBasePluginUid testing CMPXPluginHandlerBase::PluginUid() begin")); |
|
373 TInt err=KErrNone; |
|
374 TUid uid; |
|
375 TBufC<10> name = _L("dummyName"); |
|
376 |
|
377 CDummyMpxPluginHandler pluginHandler; |
|
378 uid = pluginHandler.PluginUid(name); |
|
379 iLog->Log(_L("Plugin uid=%d"), uid.iUid); |
|
380 return err; |
|
381 } |
|
382 |
|
383 // ----------------------------------------------------------------------------- |
|
384 // CCommonTestClass::MpxPluginHandlerBaseIndexOf() |
|
385 // Returns: Symbian OS errors. |
|
386 // ----------------------------------------------------------------------------- |
|
387 TInt CCommonTestClass::MpxPluginHandlerBaseIndexOf(CStifItemParser& /*aItem*/) |
|
388 { |
|
389 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseIndexOf testing CMPXPluginHandlerBase::IndexOf() begin"))); |
|
390 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseIndexOf testing CMPXPluginHandlerBase::IndexOf() begin")); |
|
391 TInt err=KErrNone; |
|
392 |
|
393 CDummyMpxPluginHandler pluginHandler; |
|
394 TInt index = pluginHandler.IndexOf(KMPXPPluginHandlerBaseUid); |
|
395 iLog->Log(_L("Plugin index=%d"), index); |
|
396 return err; |
|
397 } |
|
398 |
|
399 // ----------------------------------------------------------------------------- |
|
400 // CCommonTestClass::MpxPluginHandlerBaseCreatePluginListL() |
|
401 // Returns: Symbian OS errors. |
|
402 // ----------------------------------------------------------------------------- |
|
403 TInt CCommonTestClass::MpxPluginHandlerBaseCreatePluginListL(CStifItemParser& /*aItem*/) |
|
404 { |
|
405 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseCreatePluginListL testing CMPXPluginHandlerBase::CreatePluginListL() begin"))); |
|
406 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseCreatePluginListL testing CMPXPluginHandlerBase::CreatePluginListL() begin")); |
|
407 TInt err=KErrNone; |
|
408 |
|
409 CDummyMpxPluginHandler pluginHandler; |
|
410 pluginHandler.CreatePluginListL(); |
|
411 return err; |
|
412 } |
|
413 |
|
414 // ----------------------------------------------------------------------------- |
|
415 // CCommonTestClass::MpxPluginHandlerBaseFindPlugin() |
|
416 // Returns: Symbian OS errors. |
|
417 // ----------------------------------------------------------------------------- |
|
418 TInt CCommonTestClass::MpxPluginHandlerBaseFindPlugin(CStifItemParser& /*aItem*/) |
|
419 { |
|
420 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseFindPlugin testing CMPXPluginHandlerBase::FindPlugin() begin"))); |
|
421 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseFindPlugin testing CMPXPluginHandlerBase::FindPlugin() begin")); |
|
422 TInt err=KErrNone; |
|
423 RArray<TUid> uids; |
|
424 |
|
425 uids.Reset(); |
|
426 CDummyMpxPluginHandler pluginHandler; |
|
427 TUid uid = pluginHandler.FindPlugin(uids.Array()); |
|
428 iLog->Log(_L("Plugin uid=%d"), uid.iUid); |
|
429 return err; |
|
430 } |
|
431 // ----------------------------------------------------------------------------- |
|
432 // CCommonTestClass::CreateMpxPluginHandlerBase() |
|
433 // Returns: Symbian OS errors. |
|
434 // ----------------------------------------------------------------------------- |
|
435 TInt CCommonTestClass::MpxPluginHandlerBaseSupportUids(CStifItemParser& /*aItem*/) |
|
436 {//TODO need to update |
|
437 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSupportUids testing CMPXPluginHandlerBase::FindPlugin() SupportUids"))); |
|
438 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSupportUids testing CMPXPluginHandlerBase::FindPlugin() SupportUids")); |
|
439 |
|
440 TInt err=KErrNone; |
|
441 |
|
442 const TUid KMPXCollectionServerUid={0x101FFC09};//KMPXCollectionServerUid={0x101FFC09};/KMPXCollectionServerUid={0x12345}; |
|
443 RArray<TUid> uids; |
|
444 CleanupClosePushL( uids ); |
|
445 TRAP(err,uids.AppendL(KMPXCollectionServerUid)); |
|
446 |
|
447 CDummyMpxPluginHandler* pluginHandler =new CDummyMpxPluginHandler(); |
|
448 |
|
449 //pluginHandler->CreatePluginListL(); |
|
450 //pluginHandler->ResolvePluginL(); |
|
451 pluginHandler->GetPluginUids( uids ); |
|
452 //---------------------------------------------- |
|
453 |
|
454 TUid uid = pluginHandler->FindPlugin(uids.Array()); |
|
455 pluginHandler->SupportUids(KMPXPPluginHandlerBaseUid,uids.Array()); |
|
456 //pluginHandler->SupportUids(uid,uids.Array()); |
|
457 CleanupStack::PopAndDestroy( &uids ); |
|
458 delete pluginHandler; |
|
459 return err; |
|
460 } |
|
461 // ----------------------------------------------------------------------------- |
|
462 // CCommonTestClass::MpxPluginHandlerBaseDestruction() |
|
463 // Returns: Symbian OS errors. |
|
464 // ----------------------------------------------------------------------------- |
|
465 TInt CCommonTestClass::MpxPluginHandlerBaseDestruction(CStifItemParser& /*aItem*/) |
|
466 { |
|
467 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseDestruction testing CMPXPluginHandlerBase::~CMPXPluginHandlerBase() begin"))); |
|
468 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseDestruction testing CMPXPluginHandlerBase::~CMPXPluginHandlerBase() begin")); |
|
469 |
|
470 TInt err = KErrNone; |
|
471 CDummyMpxPluginHandler* pluginHandler =new CDummyMpxPluginHandler(); |
|
472 delete pluginHandler; |
|
473 pluginHandler = NULL; |
|
474 |
|
475 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseDestruction testing CMPXPluginHandlerBase::~CMPXPluginHandlerBase() end err=%d"),err)); |
|
476 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseDestruction testing CMPXPluginHandlerBase::~CMPXPluginHandlerBase() end err=%d"),err); |
|
477 return err; |
|
478 } |
|
479 // ----------------------------------------------------------------------------- |
|
480 // CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile() |
|
481 // Returns: Symbian OS errors. |
|
482 // ----------------------------------------------------------------------------- |
|
483 |
|
484 TInt CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile(CStifItemParser& aItem) |
|
485 { |
|
486 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile testing CMPXPluginHandlerBase::SelectPluginL() begin"))); |
|
487 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile testing CMPXPluginHandlerBase::SelectPluginL() begin")); |
|
488 TPtrC string; |
|
489 TInt err = KErrNone; |
|
490 RFile file; |
|
491 |
|
492 if( aItem.GetNextString( string ) == KErrNone ) |
|
493 { |
|
494 TBuf<120> KFrom; |
|
495 KFrom.Append(KCommonTestFilePath); |
|
496 KFrom.Append(string); |
|
497 RFs fs; |
|
498 fs.Connect(); |
|
499 file.Open(fs, KFrom, EFileShareReadersOrWriters); |
|
500 |
|
501 CDummyMpxPluginHandler pluginHandler; |
|
502 //pluginHandler.SelectPluginL( file ); |
|
503 TRAP(err,pluginHandler.SelectPluginL(file)); |
|
504 if( err != KErrNone ) |
|
505 { |
|
506 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile testing CMPXPluginHandlerBase::SelectPluginL() end=%d"),err); |
|
507 } |
|
508 file.Close();//added on April 10,2009 |
|
509 fs.Close(); |
|
510 |
|
511 } |
|
512 return err; |
|
513 } |
|
514 |
|
515 // ----------------------------------------------------------------------------- |
|
516 // CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile64() |
|
517 // Returns: Symbian OS errors. |
|
518 // ----------------------------------------------------------------------------- |
|
519 |
|
520 TInt CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile64(CStifItemParser& aItem) |
|
521 { |
|
522 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile64 testing CMPXPluginHandlerBase::SelectPlugin64L() begin"))); |
|
523 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile64 testing CMPXPluginHandlerBase::SelectPlugin64L() begin")); |
|
524 TPtrC string; |
|
525 TInt err = KErrNone; |
|
526 #ifndef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
527 err = KErrNotSupported; |
|
528 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile64 testing CMPXPluginHandlerBase::SelectPlugin64L() end=%d"),err); |
|
529 #else // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
530 RFile64 file; |
|
531 |
|
532 if( aItem.GetNextString( string ) == KErrNone ) |
|
533 { |
|
534 TBuf<120> KFrom; |
|
535 KFrom.Append(KCommonTestFilePath); |
|
536 KFrom.Append(string); |
|
537 RFs fs; |
|
538 fs.Connect(); |
|
539 file.Open(fs, KFrom, EFileShareReadersOrWriters); |
|
540 |
|
541 CDummyMpxPluginHandler pluginHandler; |
|
542 //pluginHandler.SelectPluginL( file ); |
|
543 TRAP(err,pluginHandler.SelectPlugin64L(file)); |
|
544 if( err != KErrNone ) |
|
545 { |
|
546 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseSelectPluginLRFile64 testing CMPXPluginHandlerBase::SelectPlugin64L() end=%d"),err); |
|
547 } |
|
548 file.Close(); |
|
549 fs.Close(); |
|
550 |
|
551 } |
|
552 #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
553 return err; |
|
554 } |
|
555 |
|
556 // ----------------------------------------------------------------------------- |
|
557 // CCommonTestClass::MpxPluginHandlerBasePluginNameByUid() |
|
558 // Returns: Symbian OS errors. |
|
559 // ----------------------------------------------------------------------------- |
|
560 TInt CCommonTestClass::MpxPluginHandlerBasePluginNameByUid(CStifItemParser& /*aItem*/) |
|
561 { |
|
562 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBasePluginNameByUid testing CMPXPluginHandlerBase::PluginName() begin"))); |
|
563 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBasePluginNameByUid testing CMPXPluginHandlerBase::PluginName() begin")); |
|
564 |
|
565 TInt err=KErrNone; |
|
566 return err; |
|
567 } |
|
568 |
|
569 // ----------------------------------------------------------------------------- |
|
570 // CCommonTestClass::MpxPluginHandlerBasePluginFlagsL() |
|
571 // Returns: Symbian OS errors. |
|
572 // ----------------------------------------------------------------------------- |
|
573 TInt CCommonTestClass::MpxPluginHandlerBasePluginFlagsL(CStifItemParser& /*aItem*/) |
|
574 {//TODO need to update |
|
575 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBasePluginFlagsL testing CMPXPluginHandlerBase::PluginFlagsL() begin"))); |
|
576 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBasePluginFlagsL testing CMPXPluginHandlerBase::PluginFlagsL() begin")); |
|
577 TInt err=KErrNone; |
|
578 CDummyMpxPluginHandler pluginHandler; |
|
579 |
|
580 //TInt index = pluginHandler.IndexOf(KMPXPPluginHandlerBaseUid); |
|
581 |
|
582 pluginHandler.PluginFlagsL(KMPXPPluginHandlerBaseUid); |
|
583 iLog->Log(_L("CCommonTestClass::MpxPluginType testing CMPXPluginHandlerBase::MpxPluginFlagsL() end"),err); |
|
584 return err; |
|
585 } |
|
586 // ----------------------------------------------------------------------------- |
|
587 // CCommonTestClass::MpxPluginHandlerBasePluginType() |
|
588 // Returns: Symbian OS errors. |
|
589 // ----------------------------------------------------------------------------- |
|
590 TInt CCommonTestClass::MpxPluginHandlerBasePluginType(CStifItemParser& /*aItem*/) |
|
591 { |
|
592 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBasePluginType testing CMPXPluginHandlerBase::PluginType() begin"))); |
|
593 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBasePluginType testing CMPXPluginHandlerBase::PluginType() begin")); |
|
594 TInt err=KErrNone; |
|
595 |
|
596 CDummyMpxPluginHandler pluginHandler; |
|
597 pluginHandler.PluginType(KMPXPPluginHandlerBaseUid); |
|
598 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBasePluginType testing CMPXPluginHandlerBase::PluginType() end"),err); |
|
599 |
|
600 return err; |
|
601 } |
|
602 // ----------------------------------------------------------------------------- |
|
603 // CCommonTestClass::MpxPluginHandlerBaseGetSelectionCriteria() |
|
604 // Returns: Symbian OS errors. |
|
605 // ----------------------------------------------------------------------------- |
|
606 TInt CCommonTestClass::MpxPluginHandlerBaseGetSelectionCriteria(CStifItemParser& /*aItem*/) |
|
607 { |
|
608 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseGetSelectionCriteria testing CMPXPluginHandlerBase::GetSelectionCriteria() begin"))); |
|
609 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseGetSelectionCriteria testing CMPXPluginHandlerBase::GetSelectionCriteria() begin")); |
|
610 |
|
611 TInt err = KErrNone; |
|
612 CDummyMpxPluginHandler pluginHandler; |
|
613 CMPXPluginHandlerBase::TPluginSelection iSelectionP; |
|
614 TInt iPluginType ; |
|
615 TUid iTUid ; |
|
616 TPtrC8 iDataTypeP; |
|
617 TPtrC8 iSchemeP; |
|
618 TPtrC8 iExtensionP; |
|
619 |
|
620 pluginHandler.GetSelectionCriteria(iSelectionP,iPluginType,iTUid,iDataTypeP,iSchemeP,iExtensionP); |
|
621 |
|
622 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseGetSelectionCriteria testing CMPXPluginHandlerBase::GetSelectionCriteria() end err=%d"),err)); |
|
623 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseGetSelectionCriteria testing CMPXPluginHandlerBase::GetSelectionCriteria() end err=%d"),err); |
|
624 return err; |
|
625 } |
|
626 // ----------------------------------------------------------------------------- |
|
627 // CCommonTestClass::MpxPluginHandlerBaseUsePluginTUid() |
|
628 // Returns: Symbian OS errors. |
|
629 // ----------------------------------------------------------------------------- |
|
630 TInt CCommonTestClass::MpxPluginHandlerBaseUsePluginTUid(CStifItemParser& /*aItem*/) |
|
631 { |
|
632 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseUsePluginTUid testing CMPXPluginHandlerBase::UsePlugin() begin"))); |
|
633 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseUsePluginTUid testing CMPXPluginHandlerBase::UsePlugin() begin")); |
|
634 |
|
635 CDummyMpxPluginHandler pluginHandler; |
|
636 TRAPD(err, pluginHandler.UsePlugin(KMPXPPluginHandlerBaseUid)); |
|
637 |
|
638 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseUsePluginTUid testing CMPXPluginHandlerBase::UsePlugin() end err=%d"),err)); |
|
639 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseUsePluginTUid testing CMPXPluginHandlerBase::UsePlugin() end err=%d"),err); |
|
640 return err; |
|
641 } |
|
642 // ----------------------------------------------------------------------------- |
|
643 // CCommonTestClass::MpxPluginHandlerBaseReleasePluginTUid() |
|
644 // Returns: Symbian OS errors. |
|
645 // ----------------------------------------------------------------------------- |
|
646 TInt CCommonTestClass::MpxPluginHandlerBaseReleasePluginTUid(CStifItemParser& /*aItem*/) |
|
647 { |
|
648 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseReleasePluginTUid testing CMPXPluginHandlerBase::ReleasePlugin() begin"))); |
|
649 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseReleasePluginTUid testing CMPXPluginHandlerBase::ReleasePlugin() begin")); |
|
650 |
|
651 TInt err = KErrNone; |
|
652 |
|
653 CDummyMpxPluginHandler pluginHandler; |
|
654 TBool check_unload = pluginHandler.ReleasePlugin(KMPXPPluginHandlerBaseUid); |
|
655 |
|
656 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseReleasePluginTUid testing CMPXPluginHandlerBase::ReleasePlugin() end"))); |
|
657 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseReleasePluginTUid testing CMPXPluginHandlerBase::ReleasePlugin() end")); |
|
658 |
|
659 return err; |
|
660 } |
|
661 // ----------------------------------------------------------------------------- |
|
662 // CCommonTestClass::MpxPluginHandlerBaseCreate() |
|
663 // Returns: Symbian OS errors. |
|
664 // ----------------------------------------------------------------------------- |
|
665 |
|
666 TInt CCommonTestClass::MpxPluginHandlerBaseCreate() |
|
667 { |
|
668 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseCreate testing CMPXPluginHandlerBase::CMPXPluginHandlerBase() begin"))); |
|
669 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseCreate testing CMPXPluginHandlerBase::CMPXPluginHandlerBase() begin")); |
|
670 TInt err = KErrNone; |
|
671 |
|
672 CDummyMpxPluginHandler* iPluginHandler=new CDummyMpxPluginHandler(); |
|
673 |
|
674 if ( iPluginHandler == NULL) |
|
675 { |
|
676 err = KErrNotFound; |
|
677 } |
|
678 |
|
679 delete iPluginHandler; |
|
680 FTRACE(FPrint(_L("CCommonTestClass::MpxPluginHandlerBaseCreate testing CMPXPluginHandlerBase::CMPXPluginHandlerBase() end err=%d"),err)); |
|
681 iLog->Log(_L("CCommonTestClass::MpxPluginHandlerBaseCreate testing CMPXPluginHandlerBase::CMPXPluginHandlerBase() end err=%d"),err); |
|
682 return err; |
|
683 } |
|
684 // ----------------------------------------------------------------------------- |
|
685 // CCommonTestClass::MpxPluginHBBasePluginsChangedL() |
|
686 // Returns: Symbian OS errors. |
|
687 // ----------------------------------------------------------------------------- |
|
688 TInt CCommonTestClass::MpxPluginHBBasePluginsChangedL(CStifItemParser& /*aItem*/) |
|
689 { |
|
690 FTRACE( FPrint( _L("Test CMPXPluginHandlerBase::PluginsChangedL(),begins...") ) ); |
|
691 iLog->Log( _L("Test CMPXPluginHandlerBase::PluginsChangedL(),begins...") ); |
|
692 |
|
693 TInt err = KErrNone; |
|
694 |
|
695 CDummyMpxPluginHandler pluginHandler; |
|
696 //pluginHandler.BasePluginsChangedL(); |
|
697 TRAP( err,pluginHandler.BasePluginsChangedL() ); |
|
698 if( err ) |
|
699 { |
|
700 iLog->Log( _L("CMPXPluginHandlerBase::PluginsChangedL() returned error %d."),err ); |
|
701 } |
|
702 else |
|
703 { |
|
704 iLog->Log( _L("CMPXPluginHandlerBase::PluginsChangedL() returned no error.") ); |
|
705 } |
|
706 |
|
707 FTRACE( FPrint( _L("Test CMPXPluginHandlerBase::PluginsChangedL(),end.") ) ); |
|
708 iLog->Log( _L("Test CMPXPluginHandlerBase::PluginsChangedL(),end.") ); |
|
709 |
|
710 return err; |
|
711 } |
|
712 |
|
713 // ----------------------------------------------------------------------------- |
|
714 // CCommonTestClass::MpxPluginHBBaseIsPluginLoaded() |
|
715 // Returns: Symbian OS errors. |
|
716 // ----------------------------------------------------------------------------- |
|
717 TInt CCommonTestClass::MpxPluginHBBaseIsPluginLoaded(CStifItemParser& /*aItem*/) |
|
718 { |
|
719 FTRACE( FPrint( _L("Test CMPXPluginHandlerBase::IsPluginLoaded(),begins...") ) ); |
|
720 iLog->Log( _L("Test CMPXPluginHandlerBase::IsPluginLoaded(),begins...") ); |
|
721 |
|
722 TInt err = KErrNone; |
|
723 TUid pluginUid( KNullUid ); |
|
724 |
|
725 CDummyMpxPluginHandler pluginHandler; |
|
726 TBool isLoaded = pluginHandler.BaseIsPluginLoaded( pluginUid ); |
|
727 if( isLoaded ) |
|
728 { |
|
729 iLog->Log( _L("The relative plugin is loaded.") ); |
|
730 } |
|
731 else |
|
732 { |
|
733 iLog->Log( _L("The relative plugin is not loaded.") ); |
|
734 } |
|
735 |
|
736 FTRACE( FPrint( _L("Test CMPXPluginHandlerBase::IsPluginLoaded(),end.") ) ); |
|
737 iLog->Log( _L("Test CMPXPluginHandlerBase::IsPluginLoaded(),end.") ); |
|
738 |
|
739 return err; |
|
740 } |
|
741 // ----------------------------------------------------------------------------- |
|
742 // CCommonTestClass::MpxPluginHBBaseLoadPluginL() |
|
743 // Returns: Symbian OS errors. |
|
744 // ----------------------------------------------------------------------------- |
|
745 TInt CCommonTestClass::MpxPluginHBBaseLoadPluginL(CStifItemParser& /*aItem*/) |
|
746 { |
|
747 FTRACE( FPrint( _L("Test CMPXPluginHandlerBase::LoadPluginL(),begins...") ) ); |
|
748 iLog->Log( _L("Test CMPXPluginHandlerBase::LoadPluginL(),begins...") ); |
|
749 |
|
750 TInt err = KErrNone; |
|
751 TUid pluginUid( KNullUid ); |
|
752 |
|
753 CDummyMpxPluginHandler pluginHandler; |
|
754 //pluginHandler.BasePluginsChangedL( pluginUid ); |
|
755 TRAP( err,pluginHandler.BaseLoadPluginL( pluginUid ) ); |
|
756 if( err ) |
|
757 { |
|
758 iLog->Log( _L("CMPXPluginHandlerBase::LoadPluginL() returned error %d."),err ); |
|
759 } |
|
760 else |
|
761 { |
|
762 iLog->Log( _L("CMPXPluginHandlerBase::LoadPluginL() returned no error.") ); |
|
763 } |
|
764 |
|
765 FTRACE( FPrint( _L("Test CMPXPluginHandlerBase::LoadPluginL(),end.") ) ); |
|
766 iLog->Log( _L("Test CMPXPluginHandlerBase::LoadPluginL(),end.") ); |
|
767 |
|
768 return err; |
|
769 } |
|
770 |
|
771 // ----------------------------------------------------------------------------- |
|
772 // CCommonTestClass::MpxPluginHBBaseHandlePluginUnload() |
|
773 // Returns: Symbian OS errors. |
|
774 // ----------------------------------------------------------------------------- |
|
775 TInt CCommonTestClass::MpxPluginHBBaseHandlePluginUnload(CStifItemParser& /*aItem*/) |
|
776 { |
|
777 FTRACE( FPrint( _L("Test CMPXPluginHandlerBase::HandlePluginUnload(),begins...") ) ); |
|
778 iLog->Log( _L("Test CMPXPluginHandlerBase::HandlePluginUnload(),begins...") ); |
|
779 |
|
780 TInt err = KErrNone; |
|
781 TUid pluginUid( KNullUid ); |
|
782 |
|
783 CDummyMpxPluginHandler pluginHandler; |
|
784 //pluginHandler.BaseHandlePluginUnload( pluginUid ); |
|
785 TRAP( err,pluginHandler.BaseHandlePluginUnload( pluginUid ) ); |
|
786 if( err ) |
|
787 { |
|
788 iLog->Log( _L("CMPXPluginHandlerBase::HandlePluginUnload() returned error %d."),err ); |
|
789 } |
|
790 else |
|
791 { |
|
792 iLog->Log( _L("CMPXPluginHandlerBase::HandlePluginUnload() returned no error.") ); |
|
793 } |
|
794 |
|
795 FTRACE( FPrint( _L("Test CMPXPluginHandlerBase::HandlePluginUnload(),end.") ) ); |
|
796 iLog->Log( _L("Test CMPXPluginHandlerBase::HandlePluginUnload(),end.") ); |
|
797 |
|
798 return err; |
|
799 } |
|
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 //end of MPXPluginHandlerBase testing implementation (mpxpluginhandlerbase.h)=========================== |
|
806 |