1 /* |
|
2 * Copyright (c) 2002 - 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // CLASS HEADER |
|
20 #include "MT_GSFramework.h" |
|
21 |
|
22 // EXTERNAL INCLUDES |
|
23 #include <EUnitMacros.h> |
|
24 #include <EUnitDecorators.h> |
|
25 |
|
26 //#include <..\..\..\..\GSFramework\src\GSParentContainer.cpp> |
|
27 #include <APGCLI.H> // RApaLsSession |
|
28 |
|
29 #include "TestGSPlugin.h" |
|
30 |
|
31 |
|
32 // INTERNAL INCLUDES |
|
33 |
|
34 const TUid KTestActiveViewId = { 0x10 }; |
|
35 const TUid KTestWhateverPubSubId = { 0x00 }; |
|
36 const TInt KTestWhateverPubSubKey = 0; |
|
37 |
|
38 |
|
39 // CONSTRUCTION |
|
40 MT_GSFramework* MT_GSFramework::NewL() |
|
41 { |
|
42 MT_GSFramework* self = MT_GSFramework::NewLC(); |
|
43 CleanupStack::Pop(); |
|
44 |
|
45 return self; |
|
46 } |
|
47 |
|
48 MT_GSFramework* MT_GSFramework::NewLC() |
|
49 { |
|
50 MT_GSFramework* self = new( ELeave ) MT_GSFramework(); |
|
51 CleanupStack::PushL( self ); |
|
52 |
|
53 self->ConstructL(); |
|
54 |
|
55 return self; |
|
56 } |
|
57 |
|
58 // Destructor (virtual by CBase) |
|
59 MT_GSFramework::~MT_GSFramework() |
|
60 { |
|
61 } |
|
62 |
|
63 // Default constructor |
|
64 MT_GSFramework::MT_GSFramework() |
|
65 { |
|
66 } |
|
67 |
|
68 // Second phase construct |
|
69 void MT_GSFramework::ConstructL() |
|
70 { |
|
71 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
|
72 // It generates the test case table. |
|
73 CEUnitTestSuiteClass::ConstructL(); |
|
74 } |
|
75 |
|
76 void MT_GSFramework::SetupNone() |
|
77 { |
|
78 } |
|
79 |
|
80 |
|
81 void MT_GSFramework::TeardownNone() |
|
82 { |
|
83 } |
|
84 |
|
85 |
|
86 |
|
87 ////////////////// CGSTabHelper test cases ////////////////////////////////// |
|
88 |
|
89 |
|
90 void MT_GSFramework::SetupTabHelperL( ) |
|
91 { |
|
92 iCGSTabHelper = CGSTabHelper::NewL(); |
|
93 iPlugins = new (ELeave) CArrayPtrFlat<CGSPluginInterface>(2); |
|
94 iTabbedViews = new (ELeave) CArrayPtrFlat<MGSTabbedView>(2); |
|
95 } |
|
96 |
|
97 |
|
98 void MT_GSFramework::TeardownTabHelper() |
|
99 { |
|
100 delete iCGSTabHelper; |
|
101 iCGSTabHelper = NULL; |
|
102 delete iPlugins; |
|
103 iPlugins = NULL; |
|
104 delete iTabbedViews; |
|
105 iTabbedViews = NULL; |
|
106 } |
|
107 |
|
108 |
|
109 void MT_GSFramework::T_CGSTabHelper_NewLL() |
|
110 { |
|
111 CGSTabHelper* ptr = CGSTabHelper::NewL(); |
|
112 EUNIT_ASSERT( ptr ); |
|
113 delete ptr; |
|
114 } |
|
115 |
|
116 void MT_GSFramework::T_CGSTabHelper_NewLCL() |
|
117 { |
|
118 CGSTabHelper* ptr = CGSTabHelper::NewLC(); |
|
119 EUNIT_ASSERT( ptr ); |
|
120 CleanupStack::PopAndDestroy(); |
|
121 } |
|
122 |
|
123 |
|
124 |
|
125 void MT_GSFramework::T_CGSTabHelper__CGSTabHelperL( ) |
|
126 { |
|
127 RHeap heap = User::Heap(); |
|
128 TInt block = 0; |
|
129 TInt after; |
|
130 CGSTabHelper* th; |
|
131 |
|
132 TInt before = heap.Available( block ); |
|
133 |
|
134 th = CGSTabHelper::NewL(); |
|
135 delete th; |
|
136 |
|
137 after = heap.Available( block ); |
|
138 TInt delta = before - after; |
|
139 |
|
140 EUNIT_ASSERT_DESC( before <= after, "Possible heap memory leak"); |
|
141 } |
|
142 |
|
143 void MT_GSFramework::T_CGSTabHelper_CreateTabGroupLL( ) |
|
144 { |
|
145 iCGSTabHelper->CreateTabGroupL( KTestActiveViewId, this ); |
|
146 EUNIT_ASSERT_DESC( ETrue, "Tab group pseudo creation done"); |
|
147 } |
|
148 |
|
149 void MT_GSFramework::T_CGSTabHelper_CreateTabGroupL2L( ) |
|
150 { |
|
151 iCGSTabHelper->CreateTabGroupL( KTestActiveViewId, iPlugins ); |
|
152 EUNIT_ASSERT_DESC( ETrue, "Run this far wihout panic?"); |
|
153 } |
|
154 |
|
155 void MT_GSFramework::T_CGSTabHelper_CreateTabGroupL3L( ) |
|
156 { |
|
157 iCGSTabHelper->CreateTabGroupL( KTestActiveViewId, iTabbedViews ); |
|
158 EUNIT_ASSERT_DESC( ETrue, "Run this far without panic?"); |
|
159 } |
|
160 |
|
161 void MT_GSFramework::T_CGSTabHelper_RemoveTabGroupL( ) |
|
162 { |
|
163 iCGSTabHelper->RemoveTabGroup(); |
|
164 EUNIT_ASSERT_DESC( ETrue, "Run this far without panic?"); |
|
165 } |
|
166 |
|
167 void MT_GSFramework::T_CGSTabHelper_TabChangedLL( ) |
|
168 { |
|
169 TInt tabIndex = 0; |
|
170 iCGSTabHelper->TabChangedL( tabIndex ); |
|
171 EUNIT_ASSERT_DESC( ETrue, "Run this far without panic?"); |
|
172 } |
|
173 |
|
174 // MGSTabbedViewOwner |
|
175 CArrayPtrFlat<CGSPluginInterface>* MT_GSFramework::TabbedViews() |
|
176 { |
|
177 return iPlugins; |
|
178 } |
|
179 |
|
180 // MGSTabbedViewOwner |
|
181 void MT_GSFramework::TabChangedL( TUid /*selectedTabUid*/ ) |
|
182 { |
|
183 |
|
184 } |
|
185 |
|
186 // MGSPluginLoadObserver |
|
187 void MT_GSFramework::HandlePluginLoaded( KGSPluginLoaderStatus aStatus ) |
|
188 { |
|
189 |
|
190 } |
|
191 |
|
192 |
|
193 /////////////////////// CGSPluginLoader test cases /////////////////////////////////// |
|
194 void MT_GSFramework::SetupPluginLoaderL() |
|
195 { |
|
196 iPlugins = new (ELeave) CArrayPtrFlat<CGSPluginInterface>(2); |
|
197 |
|
198 CAknViewAppUi* appUi = (CAknViewAppUi*)CEikonEnv::Static()->EikAppUi(); |
|
199 iCGSPluginLoader = CGSPluginLoader::NewL( appUi ); |
|
200 } |
|
201 |
|
202 void MT_GSFramework::TearDownPluginLoader() |
|
203 { |
|
204 delete iCGSPluginLoader; |
|
205 iCGSPluginLoader = NULL; |
|
206 |
|
207 delete iPlugins; |
|
208 iPlugins = NULL; |
|
209 } |
|
210 |
|
211 |
|
212 void MT_GSFramework::T_CGSPluginLoader_NewL() |
|
213 { |
|
214 CAknViewAppUi* appUi = (CAknViewAppUi*)CEikonEnv::Static()->EikAppUi(); |
|
215 iCGSPluginLoader = CGSPluginLoader::NewL( appUi ); |
|
216 delete iCGSPluginLoader; |
|
217 iCGSPluginLoader = NULL; |
|
218 |
|
219 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
220 } |
|
221 |
|
222 void MT_GSFramework::T_CGSPluginLoader__CGSPluginLoader() |
|
223 { |
|
224 CAknViewAppUi* appUi = (CAknViewAppUi*)CEikonEnv::Static()->EikAppUi(); |
|
225 iCGSPluginLoader = CGSPluginLoader::NewL( appUi ); |
|
226 delete iCGSPluginLoader; |
|
227 iCGSPluginLoader = NULL; |
|
228 |
|
229 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
230 } |
|
231 |
|
232 void MT_GSFramework::T_CGSPluginLoader_LoadAsyncL() |
|
233 { |
|
234 iCGSPluginLoader->LoadAsyncL( KGSPluginInterfaceUid, |
|
235 KTestActiveViewId, |
|
236 iPlugins ); |
|
237 |
|
238 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
239 } |
|
240 |
|
241 void MT_GSFramework::T_CGSPluginLoader_SetObserver() |
|
242 { |
|
243 iCGSPluginLoader->SetObserver( this ); |
|
244 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
245 } |
|
246 |
|
247 void MT_GSFramework::T_CGSPluginLoader_AbortAsyncLoad() |
|
248 { |
|
249 iCGSPluginLoader->AbortAsyncLoad(); |
|
250 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
251 } |
|
252 |
|
253 void MT_GSFramework::T_CGSPluginLoader_SortPluginsL() |
|
254 { |
|
255 iCGSPluginLoader->SortPluginsL( iPlugins ); |
|
256 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
257 } |
|
258 |
|
259 |
|
260 |
|
261 /////////////// CGSParentContainer test cases ////////////////////////////// |
|
262 |
|
263 |
|
264 // CGSParentContainer |
|
265 void MT_GSFramework::SetupParentContainerL() |
|
266 { |
|
267 // iGSParentContainer = new (ELeave) CGSParentContainer(); |
|
268 // iGSParentContainer->ConstructL(); |
|
269 } |
|
270 |
|
271 |
|
272 void MT_GSFramework::TearDownParentContainer() |
|
273 { |
|
274 // delete iGSParentContainer; |
|
275 // iGSParentContainer = NULL; |
|
276 } |
|
277 |
|
278 |
|
279 // CGSParentContainer test cases: |
|
280 void MT_GSFramework::T_CGSParentContainer_FocusChanged() |
|
281 { |
|
282 // iGSParentContainer->FocusChanged( ENoDrawNow ); |
|
283 #pragma message("TODO: implement real test case!") |
|
284 EUNIT_ASSERT_DESC( EFalse, "Not implemented."); |
|
285 } |
|
286 |
|
287 |
|
288 ///////////////////// CGSPubSubsListener test cases /////////////////////// |
|
289 |
|
290 void MT_GSFramework::SetupPubSubsListenerL() |
|
291 { |
|
292 iCGSPubSubsListener = CGSPubSubsListener::NewL( KTestWhateverPubSubId, |
|
293 KTestWhateverPubSubKey, |
|
294 this ); |
|
295 } |
|
296 |
|
297 void MT_GSFramework::TearDownPubSubsListener() |
|
298 { |
|
299 delete iCGSPubSubsListener; |
|
300 iCGSPubSubsListener = NULL; |
|
301 } |
|
302 |
|
303 |
|
304 void MT_GSFramework::T_CGSPubSubsListener_NewL() |
|
305 { |
|
306 CGSPubSubsListener* psl = CGSPubSubsListener::NewL( KTestWhateverPubSubId, |
|
307 KTestWhateverPubSubKey, |
|
308 this ); |
|
309 delete psl; |
|
310 psl = NULL; |
|
311 |
|
312 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
313 } |
|
314 |
|
315 void MT_GSFramework::T_CGSPubSubsListener__CGSPubSubsListener() |
|
316 { |
|
317 CGSPubSubsListener* psl = CGSPubSubsListener::NewL( KTestWhateverPubSubId, |
|
318 KTestWhateverPubSubKey, |
|
319 this ); |
|
320 delete psl; |
|
321 psl = NULL; |
|
322 |
|
323 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
324 } |
|
325 |
|
326 void MT_GSFramework::T_CGSPubSubsListener_Get1() |
|
327 { |
|
328 TInt val = 0; |
|
329 iCGSPubSubsListener->Get( val ); |
|
330 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
331 } |
|
332 |
|
333 void MT_GSFramework::T_CGSPubSubsListener_Get2() |
|
334 { |
|
335 TBuf8<25> buf; |
|
336 iCGSPubSubsListener->Get( buf ); |
|
337 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
338 } |
|
339 |
|
340 void MT_GSFramework::T_CGSPubSubsListener_Get3() |
|
341 { |
|
342 TBuf16<25> buf; |
|
343 iCGSPubSubsListener->Get( buf ); |
|
344 EUNIT_ASSERT_DESC( ETrue, "Run this far?"); |
|
345 } |
|
346 |
|
347 |
|
348 // From MGSSettingPSObserver |
|
349 void MT_GSFramework::HandleNotifyPSL( const TUid aUid, |
|
350 const TInt& aKey, |
|
351 const TRequestStatus& aStatus ) |
|
352 { |
|
353 |
|
354 } |
|
355 |
|
356 // ------------------------------- Launch Gs application test cases ---------------------------------------// |
|
357 |
|
358 void MT_GSFramework::SetupLaunch() |
|
359 { |
|
360 iPeriodic = CPeriodic::NewL( CActive::EPriorityStandard ); |
|
361 |
|
362 // Launch Gs application... |
|
363 RApaLsSession lsSession; |
|
364 User::LeaveIfError( lsSession.Connect() ); |
|
365 CleanupClosePushL( lsSession ); |
|
366 |
|
367 TApaAppInfo appInfo; |
|
368 TUid uid; |
|
369 uid.iUid = 0x100058EC; // Gs application uid |
|
370 User::LeaveIfError( lsSession.GetAppInfo(appInfo, uid) ); |
|
371 TFileName appName = appInfo.iFullName; |
|
372 |
|
373 CApaCommandLine* cmdLine = CApaCommandLine::NewLC(); |
|
374 cmdLine->SetExecutableNameL( appName ); |
|
375 cmdLine->SetCommandL( EApaCommandRun ); |
|
376 User::LeaveIfError( lsSession.StartApp( *cmdLine ) ); |
|
377 |
|
378 CleanupStack::PopAndDestroy( cmdLine ); |
|
379 CleanupStack::PopAndDestroy(); // lsSession |
|
380 } |
|
381 |
|
382 |
|
383 void MT_GSFramework::TeardownLaunch() |
|
384 { |
|
385 if ( !iPeriodic->IsActive() ) |
|
386 { |
|
387 iPeriodic->Start( 2000000, 1000000, TCallBack( CloseTopMostWindow, static_cast<TAny*>( this ) ) ); |
|
388 } |
|
389 |
|
390 CActiveScheduler::Start(); |
|
391 |
|
392 // Close the error note |
|
393 ikeySimulateCase = 0; |
|
394 iKeyNumber = 0; |
|
395 if ( !iPeriodic->IsActive() ) |
|
396 { |
|
397 iPeriodic->Start( 2000000, 500000, TCallBack( SimulateKeyEvent, static_cast<TAny*>( this ) ) ); |
|
398 } |
|
399 |
|
400 CActiveScheduler::Start(); |
|
401 |
|
402 if ( iPeriodic ) |
|
403 { |
|
404 iPeriodic->Cancel(); |
|
405 } |
|
406 delete iPeriodic; |
|
407 } |
|
408 |
|
409 |
|
410 TBool MT_GSFramework::GetKeyCodeCase0( TKeyCode& aKeyCode ) |
|
411 { |
|
412 TBool ret = ETrue; |
|
413 iKeyNumber++; |
|
414 |
|
415 switch ( iKeyNumber ) |
|
416 { |
|
417 case 1: |
|
418 aKeyCode = EKeyOK; |
|
419 break; |
|
420 default: |
|
421 ret = EFalse; |
|
422 } |
|
423 |
|
424 return ret; |
|
425 } |
|
426 |
|
427 |
|
428 TInt MT_GSFramework::CloseTopMostWindow( TAny* aPtr ) |
|
429 { |
|
430 MT_GSFramework* instL = static_cast<MT_GSFramework*>( aPtr ); |
|
431 instL->DoCloseTopMostWindowL(); |
|
432 |
|
433 CActiveScheduler::Stop(); |
|
434 return KErrNone; |
|
435 } |
|
436 |
|
437 void MT_GSFramework::DoCloseTopMostWindowL() |
|
438 { |
|
439 RWsSession* ws = &CCoeEnv::Static()->WsSession(); |
|
440 |
|
441 // Get a list of IDs of the all the window groups |
|
442 CArrayFixFlat<TInt>* windowList = new CArrayFixFlat<TInt>(4); |
|
443 CleanupStack::PushL(windowList); |
|
444 // Get a list of window group IDs |
|
445 User::LeaveIfError(ws->WindowGroupList(0, windowList)); |
|
446 |
|
447 // Get the top most window group |
|
448 TInt wgId = (*windowList)[0]; |
|
449 |
|
450 CleanupStack::PopAndDestroy(); // windowList |
|
451 |
|
452 TApaTask task(*ws); |
|
453 task.SetWgId(wgId); |
|
454 task.SendSystemEvent(EApaSystemEventShutdown); |
|
455 |
|
456 iPeriodic->Cancel(); |
|
457 } |
|
458 |
|
459 TInt MT_GSFramework::SimulateKeyEvent( TAny* aPtr ) |
|
460 { |
|
461 MT_GSFramework* instL = static_cast<MT_GSFramework*>( aPtr ); |
|
462 |
|
463 instL->DoSimulateKeyEventL(); |
|
464 |
|
465 return KErrNone; |
|
466 } |
|
467 |
|
468 void MT_GSFramework::DoSimulateKeyEventL() |
|
469 { |
|
470 TKeyCode keyCode; |
|
471 TBool hasKey; |
|
472 |
|
473 switch ( ikeySimulateCase ) |
|
474 { |
|
475 case 0: |
|
476 hasKey = GetKeyCodeCase0( keyCode ); |
|
477 break; |
|
478 case 1: |
|
479 hasKey = GetKeyCodeCase1( keyCode ); |
|
480 break; |
|
481 case 2: |
|
482 hasKey = GetKeyCodeCase2( keyCode ); |
|
483 break; |
|
484 case 3: |
|
485 hasKey = GetKeyCodeCase3( keyCode ); |
|
486 break; |
|
487 case 4: |
|
488 hasKey = GetKeyCodeCase4( keyCode ); |
|
489 break; |
|
490 default: |
|
491 hasKey = EFalse; |
|
492 } |
|
493 |
|
494 if ( hasKey ) |
|
495 { |
|
496 TKeyEvent event; |
|
497 event.iCode = keyCode; |
|
498 event.iScanCode = 0; |
|
499 event.iRepeats = 0; |
|
500 event.iModifiers = 0; |
|
501 |
|
502 TWsEvent wsEvent; |
|
503 *( wsEvent.Key() ) = event; |
|
504 wsEvent.SetType( EEventKey ); |
|
505 wsEvent.SetTimeNow(); |
|
506 |
|
507 RWsSession* ws = &CCoeEnv::Static()->WsSession(); |
|
508 |
|
509 TInt wgId = ws->GetFocusWindowGroup(); |
|
510 ws->SendEventToWindowGroup( wgId, wsEvent ); |
|
511 } |
|
512 else |
|
513 { |
|
514 iPeriodic->Cancel(); |
|
515 CActiveScheduler::Stop(); |
|
516 } |
|
517 } |
|
518 void MT_GSFramework::LaunchGsApp1L() |
|
519 { |
|
520 ikeySimulateCase = 1; |
|
521 iKeyNumber = 0; |
|
522 if ( !iPeriodic->IsActive() ) |
|
523 { |
|
524 iPeriodic->Start( 2000000, 1000000, TCallBack( SimulateKeyEvent, static_cast<TAny*>( this ) ) ); |
|
525 } |
|
526 |
|
527 CActiveScheduler::Start(); |
|
528 } |
|
529 |
|
530 TBool MT_GSFramework::GetKeyCodeCase1( TKeyCode& aKeyCode ) |
|
531 { |
|
532 TBool ret = ETrue; |
|
533 iKeyNumber++; |
|
534 |
|
535 switch ( iKeyNumber ) |
|
536 { |
|
537 case 1: |
|
538 aKeyCode = EKeyDownArrow; |
|
539 break; |
|
540 case 2: |
|
541 aKeyCode = EKeyDownArrow; |
|
542 break; |
|
543 case 3: |
|
544 aKeyCode = EKeyUpArrow; |
|
545 break; |
|
546 case 4: |
|
547 aKeyCode = EKeyEnter; // Phone |
|
548 break; |
|
549 case 5: |
|
550 aKeyCode = EKeyEnter; // Date & time |
|
551 break; |
|
552 case 6: |
|
553 aKeyCode = EKeyEnter; // Time |
|
554 break; |
|
555 case 7: |
|
556 aKeyCode = EKeyCBA2; |
|
557 break; |
|
558 case 8: |
|
559 aKeyCode = EKeyDownArrow; |
|
560 break; |
|
561 case 9: |
|
562 aKeyCode = EKeyEnter; // Time Zone |
|
563 break; |
|
564 case 10: |
|
565 aKeyCode = EKeyCBA2; |
|
566 break; |
|
567 case 11: |
|
568 aKeyCode = EKeyDownArrow; |
|
569 break; |
|
570 case 12: |
|
571 aKeyCode = EKeyEnter; // Date |
|
572 break; |
|
573 case 13: |
|
574 aKeyCode = EKeyCBA2; |
|
575 break; |
|
576 case 14: |
|
577 aKeyCode = EKeyDownArrow; |
|
578 break; |
|
579 case 15: |
|
580 aKeyCode = EKeyEnter; // Date format |
|
581 break; |
|
582 case 16: |
|
583 aKeyCode = EKeyDownArrow; |
|
584 break; |
|
585 case 17: |
|
586 aKeyCode = EKeyCBA1; |
|
587 break; |
|
588 case 18: |
|
589 aKeyCode = EKeyDownArrow; |
|
590 break; |
|
591 case 19: |
|
592 aKeyCode = EKeyEnter; // Date separator |
|
593 break; |
|
594 case 20: |
|
595 aKeyCode = EKeyCBA2; |
|
596 break; |
|
597 case 21: |
|
598 aKeyCode = EKeyDownArrow; |
|
599 break; |
|
600 case 22: |
|
601 aKeyCode = EKeyEnter; // Time format |
|
602 break; |
|
603 case 23: |
|
604 aKeyCode = EKeyDownArrow; |
|
605 break; |
|
606 case 24: |
|
607 aKeyCode = EKeyEnter; // Time separator |
|
608 break; |
|
609 case 25: |
|
610 aKeyCode = EKeyDownArrow; |
|
611 break; |
|
612 case 26: |
|
613 aKeyCode = EKeyEnter; // Clock type |
|
614 break; |
|
615 case 27: |
|
616 aKeyCode = EKeyDownArrow; |
|
617 break; |
|
618 case 28: |
|
619 aKeyCode = EKeyEnter; // Clock Alarm Tone |
|
620 break; |
|
621 case 29: |
|
622 User::After(2000000); |
|
623 aKeyCode = EKeyCBA2; |
|
624 break; |
|
625 case 30: |
|
626 aKeyCode = EKeyDownArrow; |
|
627 break; |
|
628 case 31: |
|
629 aKeyCode = EKeyEnter; // Alarm Snooze Time |
|
630 break; |
|
631 case 32: |
|
632 aKeyCode = EKeyCBA2; |
|
633 break; |
|
634 case 33: |
|
635 aKeyCode = EKeyDownArrow; |
|
636 break; |
|
637 case 34: |
|
638 aKeyCode = EKeyEnter; // Workdays |
|
639 break; |
|
640 case 35: |
|
641 aKeyCode = EKeyCBA2; |
|
642 break; |
|
643 case 36: |
|
644 aKeyCode = EKeyCBA2; |
|
645 break; |
|
646 case 37: |
|
647 aKeyCode = EKeyCBA2; |
|
648 break; |
|
649 default: |
|
650 ret = EFalse; |
|
651 } |
|
652 |
|
653 return ret; |
|
654 } |
|
655 |
|
656 void MT_GSFramework::LaunchGsApp2L() |
|
657 { |
|
658 ikeySimulateCase = 2; |
|
659 iKeyNumber = 0; |
|
660 if ( !iPeriodic->IsActive() ) |
|
661 { |
|
662 iPeriodic->Start( 2000000, 1000000, TCallBack( SimulateKeyEvent, static_cast<TAny*>( this ) ) ); |
|
663 } |
|
664 |
|
665 CActiveScheduler::Start(); |
|
666 } |
|
667 |
|
668 TBool MT_GSFramework::GetKeyCodeCase2( TKeyCode& aKeyCode ) |
|
669 { |
|
670 TBool ret = ETrue; |
|
671 iKeyNumber++; |
|
672 |
|
673 switch ( iKeyNumber ) |
|
674 { |
|
675 case 1: |
|
676 aKeyCode = EKeyDownArrow; |
|
677 break; |
|
678 case 2: |
|
679 aKeyCode = EKeyEnter; // phone |
|
680 break; |
|
681 case 3: |
|
682 aKeyCode = EKeyDownArrow; |
|
683 break; |
|
684 case 4: |
|
685 aKeyCode = EKeyDownArrow; |
|
686 break; |
|
687 case 5: |
|
688 aKeyCode = EKeyDownArrow; |
|
689 break; |
|
690 case 6: |
|
691 aKeyCode = EKeyEnter; // Display |
|
692 break; |
|
693 case 7: |
|
694 aKeyCode = EKeyEnter; // Light sensor |
|
695 break; |
|
696 case 8: |
|
697 aKeyCode = EKeyCBA2; |
|
698 break; |
|
699 case 9: |
|
700 aKeyCode = EKeyDownArrow; |
|
701 break; |
|
702 case 10: |
|
703 aKeyCode = EKeyEnter; // Display text size |
|
704 break; |
|
705 case 11: |
|
706 aKeyCode = EKeyCBA2; |
|
707 break; |
|
708 case 12: |
|
709 aKeyCode = EKeyDownArrow; |
|
710 break; |
|
711 case 13: |
|
712 aKeyCode = EKeyEnter; // Screen save time-out |
|
713 break; |
|
714 case 14: |
|
715 aKeyCode = EKeyCBA2; |
|
716 break; |
|
717 case 15: |
|
718 aKeyCode = EKeyDownArrow; |
|
719 break; |
|
720 case 16: |
|
721 aKeyCode = EKeyEnter; // Welcome note or image |
|
722 break; |
|
723 case 17: |
|
724 aKeyCode = EKeyCBA1; |
|
725 break; |
|
726 case 18: |
|
727 aKeyCode = EKeyDownArrow; |
|
728 break; |
|
729 case 19: |
|
730 aKeyCode = EKeyEnter; // Backlight time-out |
|
731 break; |
|
732 case 20: |
|
733 aKeyCode = EKeyCBA2; |
|
734 break; |
|
735 case 21: |
|
736 aKeyCode = EKeyCBA2; |
|
737 break; |
|
738 case 22: |
|
739 aKeyCode = EKeyCBA2; |
|
740 break; |
|
741 default: |
|
742 ret = EFalse; |
|
743 } |
|
744 |
|
745 return ret; |
|
746 } |
|
747 |
|
748 void MT_GSFramework::LaunchGsApp3L() |
|
749 { |
|
750 ikeySimulateCase = 3; |
|
751 iKeyNumber = 0; |
|
752 if ( !iPeriodic->IsActive() ) |
|
753 { |
|
754 iPeriodic->Start( 2000000, 1000000, TCallBack( SimulateKeyEvent, static_cast<TAny*>( this ) ) ); |
|
755 } |
|
756 |
|
757 CActiveScheduler::Start(); |
|
758 } |
|
759 |
|
760 TBool MT_GSFramework::GetKeyCodeCase3( TKeyCode& aKeyCode ) |
|
761 { |
|
762 TBool ret = ETrue; |
|
763 iKeyNumber++; |
|
764 |
|
765 switch ( iKeyNumber ) |
|
766 { |
|
767 case 1: |
|
768 aKeyCode = EKeyEnter; // open Persional |
|
769 break; |
|
770 case 2: |
|
771 aKeyCode = EKeyDownArrow; |
|
772 break; |
|
773 case 3: |
|
774 aKeyCode = EKeyDownArrow; |
|
775 break; |
|
776 case 4: |
|
777 aKeyCode = EKeyDownArrow; |
|
778 break; |
|
779 case 5: |
|
780 aKeyCode = EKeyEnter; // open Standby |
|
781 break; |
|
782 case 6: |
|
783 aKeyCode = EKeyEnter; // open Shortcut |
|
784 break; |
|
785 case 7: |
|
786 aKeyCode = EKeyEnter; // open Lift idle softkey |
|
787 break; |
|
788 case 8: |
|
789 aKeyCode = EKeyCBA2; |
|
790 break; |
|
791 case 9: |
|
792 aKeyCode = EKeyCBA2; |
|
793 break; |
|
794 /* case 10: |
|
795 aKeyCode = EKeyCBA2; |
|
796 break; |
|
797 case 11: |
|
798 aKeyCode = EKeyCBA2; |
|
799 break;*/ |
|
800 default: |
|
801 ret = EFalse; |
|
802 } |
|
803 |
|
804 return ret; |
|
805 } |
|
806 |
|
807 void MT_GSFramework::LaunchGsApp4L() |
|
808 { |
|
809 ikeySimulateCase = 4; |
|
810 iKeyNumber = 0; |
|
811 if ( !iPeriodic->IsActive() ) |
|
812 { |
|
813 iPeriodic->Start( 2000000, 1000000, TCallBack( SimulateKeyEvent, static_cast<TAny*>( this ) ) ); |
|
814 } |
|
815 |
|
816 CActiveScheduler::Start(); |
|
817 } |
|
818 |
|
819 TBool MT_GSFramework::GetKeyCodeCase4( TKeyCode& aKeyCode ) |
|
820 { |
|
821 TBool ret = ETrue; |
|
822 iKeyNumber++; |
|
823 |
|
824 switch ( iKeyNumber ) |
|
825 { |
|
826 case 1: |
|
827 aKeyCode = EKeyEnter; // open Persional |
|
828 break; |
|
829 case 2: |
|
830 aKeyCode = EKeyDownArrow; |
|
831 break; |
|
832 case 3: |
|
833 aKeyCode = EKeyDownArrow; |
|
834 break; |
|
835 case 4: |
|
836 aKeyCode = EKeyEnter; // open Standby |
|
837 break; |
|
838 case 5: |
|
839 aKeyCode = EKeyEnter; // open Shortcut |
|
840 break; |
|
841 case 6: |
|
842 aKeyCode = EKeyEnter; // open Lift idle softkey |
|
843 break; |
|
844 case 7: |
|
845 aKeyCode = EKeyCBA2; |
|
846 break; |
|
847 case 8: |
|
848 aKeyCode = EKeyCBA2; |
|
849 break; |
|
850 /* case 10: |
|
851 aKeyCode = EKeyCBA2; |
|
852 break; |
|
853 case 11: |
|
854 aKeyCode = EKeyCBA2; |
|
855 break;*/ |
|
856 default: |
|
857 ret = EFalse; |
|
858 } |
|
859 |
|
860 return ret; |
|
861 } |
|
862 |
|
863 // ----------------------------- CGSBaseView test cases ------------------------------------ // |
|
864 void MT_GSFramework::SetupCGSBaseViewL() |
|
865 { |
|
866 iTestBaseView = CTestGSBaseView::NewL(); |
|
867 } |
|
868 |
|
869 void MT_GSFramework::TeardownCGSBaseView() |
|
870 { |
|
871 delete iTestBaseView; |
|
872 iTestBaseView = NULL; |
|
873 } |
|
874 |
|
875 void MT_GSFramework::MT_CGSBaseView_SetCurrentItemL() |
|
876 { |
|
877 iTestBaseView->SetCurrentItem( 0 ); |
|
878 } |
|
879 |
|
880 void MT_GSFramework::MT_CGSBaseView_ContainerL() |
|
881 { |
|
882 iTestBaseView->Container(); |
|
883 } |
|
884 |
|
885 void MT_GSFramework::MT_CGSBaseView_SetNaviPaneLL() |
|
886 { |
|
887 iTestBaseView->SetNaviPaneL(); |
|
888 } |
|
889 |
|
890 void MT_GSFramework::MT_CGSBaseView_CreateNaviPaneContextLL() |
|
891 { |
|
892 iTestBaseView->CreateNaviPaneContextL( 1 ); |
|
893 } |
|
894 |
|
895 |
|
896 |
|
897 |
|
898 // ------------------------------- CGSParentPlugin test cases -------------------------------- // |
|
899 void MT_GSFramework::SetupCGSParentPluginL() |
|
900 { |
|
901 iParentPlugin = static_cast<CGSParentPlugin*> ( CTestGSPlugin::NewL() ); |
|
902 } |
|
903 |
|
904 void MT_GSFramework::TeardownCGSParentPlugin() |
|
905 { |
|
906 delete iParentPlugin; |
|
907 iParentPlugin = NULL; |
|
908 } |
|
909 |
|
910 |
|
911 void MT_GSFramework::MT_CGSParentPlugin_UpperLevelViewUidL() |
|
912 { |
|
913 EUNIT_ASSERT_NO_LEAVE( iParentPlugin->UpperLevelViewUid() ); |
|
914 } |
|
915 |
|
916 void MT_GSFramework::MT_CGSParentPlugin_UpdateViewL() |
|
917 { |
|
918 EUNIT_ASSERT_NO_LEAVE( iParentPlugin->UpdateView() ); |
|
919 } |
|
920 |
|
921 void MT_GSFramework::MT_CGSParentPlugin_SetOptionFlagsL() |
|
922 { |
|
923 TBitFlags optionFlags; |
|
924 EUNIT_ASSERT_NO_LEAVE( iParentPlugin->SetOptionFlags( optionFlags ) ); |
|
925 } |
|
926 |
|
927 void MT_GSFramework::MT_CGSParentPlugin_OptionFlagsL() |
|
928 { |
|
929 EUNIT_ASSERT_NO_LEAVE( iParentPlugin->OptionFlags() ); |
|
930 } |
|
931 |
|
932 void MT_GSFramework::MT_CGSParentPlugin_GetHelpContextL() |
|
933 { |
|
934 TCoeHelpContext context; |
|
935 EUNIT_ASSERT_NO_LEAVE( iParentPlugin->GetHelpContext( context ) ); |
|
936 } |
|
937 |
|
938 void MT_GSFramework::MT_CGSParentPlugin_SelectedPluginL() |
|
939 { |
|
940 CGSPluginInterface* plug = iParentPlugin->SelectedPlugin(); |
|
941 EUNIT_ASSERT( plug == NULL ); |
|
942 } |
|
943 |
|
944 void MT_GSFramework::MT_CGSParentPlugin_TransferDynamicPluginLL() |
|
945 { |
|
946 TRAPD( err, iParentPlugin->TransferDynamicPluginL( NULL ) ) |
|
947 EUNIT_PRINT( _L("error = %d"), err ); |
|
948 } |
|
949 |
|
950 // ---------------------------- CGSPluginInterface test cases -------------------------- // |
|
951 void MT_GSFramework::MT_CGSPluginInterface_ItemTypeL() |
|
952 { |
|
953 CGSPluginInterface* plugInterface = static_cast<CGSPluginInterface*> ( iParentPlugin ); |
|
954 EUNIT_ASSERT_NO_LEAVE( plugInterface->ItemType() ); |
|
955 } |
|
956 |
|
957 void MT_GSFramework::MT_CGSPluginInterface_HandleSelectionL() |
|
958 { |
|
959 CGSPluginInterface* plugInterface = static_cast<CGSPluginInterface*> ( iParentPlugin ); |
|
960 TGSSelectionTypes selectionType = EGSSelectionBySelectionKey; |
|
961 EUNIT_ASSERT_NO_LEAVE( plugInterface->HandleSelection( selectionType ) ); |
|
962 } |
|
963 |
|
964 void MT_GSFramework::MT_CGSPluginInterface_PluginProviderCategoryL() |
|
965 { |
|
966 CGSPluginInterface* plugInterface = static_cast<CGSPluginInterface*> ( iParentPlugin ); |
|
967 EUNIT_ASSERT_NO_LEAVE( plugInterface->PluginProviderCategory() ); |
|
968 } |
|
969 |
|
970 void MT_GSFramework::MT_CGSPluginInterface_CustomOperationLL() |
|
971 { |
|
972 CGSPluginInterface* plugInterface = static_cast<CGSPluginInterface*> ( iParentPlugin ); |
|
973 TAny* any = plugInterface->CustomOperationL( NULL, NULL ); |
|
974 EUNIT_ASSERT( any == NULL ); |
|
975 } |
|
976 |
|
977 void MT_GSFramework::MT_CGSPluginInterface_SetOrderL() |
|
978 { |
|
979 CGSPluginInterface* plugInterface = static_cast<CGSPluginInterface*> ( iParentPlugin ); |
|
980 EUNIT_ASSERT_NO_LEAVE( plugInterface->SetOrder( 0 ) ); |
|
981 } |
|
982 |
|
983 void MT_GSFramework::MT_CGSPluginInterface_CreateIconLL() |
|
984 { |
|
985 CGSPluginInterface* plugInterface = static_cast<CGSPluginInterface*> ( iParentPlugin ); |
|
986 CGulIcon* icon = plugInterface->CreateIconL( KGSIconTypeLbxItem ); |
|
987 CleanupStack::PushL( icon ); |
|
988 EUNIT_ASSERT( icon != NULL ); |
|
989 CleanupStack::PopAndDestroy( icon ); |
|
990 } |
|
991 |
|
992 |
|
993 void MT_GSFramework::MT_CGSPluginInterface_GetEcomDestructorKey() |
|
994 { |
|
995 CGSPluginInterface* plugInterface = static_cast<CGSPluginInterface*> ( iParentPlugin ); |
|
996 TUid dTorID; |
|
997 EUNIT_ASSERT_NO_LEAVE( dTorID = plugInterface->GetEcomDestructorKey() ); |
|
998 } |
|
999 |
|
1000 |
|
1001 |
|
1002 /** |
|
1003 * @param text1 Textual description of the test case. |
|
1004 * @param text2 The class to be tested. |
|
1005 * @param text3 The method to be tested. |
|
1006 * @param text4 Test case type: refer to EUnit User Manual for correct values. |
|
1007 * @param setupFunc Test setup function. |
|
1008 * @param runFunc Test run function. |
|
1009 * @param teardownFunc Test teardown function. |
|
1010 */ |
|
1011 |
|
1012 // TEST TABLE |
|
1013 EUNIT_BEGIN_TEST_TABLE( |
|
1014 MT_GSFramework, |
|
1015 "Tests for GSFramework.dll.", |
|
1016 "MODULE" ) |
|
1017 |
|
1018 EUNIT_TEST( |
|
1019 "#1 launch Gs application", |
|
1020 "Settings framework classes", |
|
1021 "settings framework api", |
|
1022 "FUNCTIONALITY", |
|
1023 SetupLaunch, LaunchGsApp1L, TeardownLaunch) |
|
1024 |
|
1025 EUNIT_TEST( |
|
1026 "#2 launch Gs application", |
|
1027 "Settings framework classes", |
|
1028 "settings framework api", |
|
1029 "FUNCTIONALITY", |
|
1030 SetupLaunch, LaunchGsApp2L, TeardownLaunch) |
|
1031 |
|
1032 EUNIT_TEST( |
|
1033 "#3 launch Gs application", |
|
1034 "Settings framework classes", |
|
1035 "settings framework api", |
|
1036 "FUNCTIONALITY", |
|
1037 SetupLaunch, LaunchGsApp3L, TeardownLaunch) |
|
1038 |
|
1039 EUNIT_TEST( |
|
1040 "#4 launch Gs application", |
|
1041 "Settings framework classes", |
|
1042 "settings framework api", |
|
1043 "FUNCTIONALITY", |
|
1044 SetupLaunch, LaunchGsApp4L, TeardownLaunch) |
|
1045 |
|
1046 EUNIT_TEST( |
|
1047 "GSBsView:SetCurrentItem", |
|
1048 "CGSBaseView", |
|
1049 "SetCurrentItem", |
|
1050 "FUNCTIONALITY", |
|
1051 SetupCGSBaseViewL, MT_CGSBaseView_SetCurrentItemL, TeardownCGSBaseView) |
|
1052 |
|
1053 EUNIT_TEST( |
|
1054 "GSBsView:Container", |
|
1055 "CGSBaseView", |
|
1056 "Container", |
|
1057 "FUNCTIONALITY", |
|
1058 SetupCGSBaseViewL, MT_CGSBaseView_ContainerL, TeardownCGSBaseView) |
|
1059 |
|
1060 EUNIT_TEST( |
|
1061 "GSBsView:SetNaviPaneL", |
|
1062 "CGSBaseView", |
|
1063 "SetNaviPaneL", |
|
1064 "FUNCTIONALITY", |
|
1065 SetupCGSBaseViewL, MT_CGSBaseView_SetNaviPaneLL, TeardownCGSBaseView) |
|
1066 |
|
1067 EUNIT_TEST( |
|
1068 "GSBsView:CreateNaviPaneContextL", |
|
1069 "CGSBaseView", |
|
1070 "CreateNaviPaneContextL", |
|
1071 "FUNCTIONALITY", |
|
1072 SetupCGSBaseViewL, MT_CGSBaseView_CreateNaviPaneContextLL, TeardownCGSBaseView) |
|
1073 |
|
1074 EUNIT_TEST( |
|
1075 "GSPrntPlg:UpperLevelViewUid", |
|
1076 "CGSParentPlugin", |
|
1077 "UpperLevelViewUid", |
|
1078 "FUNCTIONALITY", |
|
1079 SetupCGSParentPluginL, MT_CGSParentPlugin_UpperLevelViewUidL, TeardownCGSParentPlugin) |
|
1080 |
|
1081 EUNIT_TEST( |
|
1082 "GSPrntPlg:UpdateView", |
|
1083 "CGSParentPlugin", |
|
1084 "UpdateView", |
|
1085 "FUNCTIONALITY", |
|
1086 SetupCGSParentPluginL, MT_CGSParentPlugin_UpdateViewL, TeardownCGSParentPlugin) |
|
1087 |
|
1088 EUNIT_TEST( |
|
1089 "GSPrntPlg:SetOptionFlags", |
|
1090 "CGSParentPlugin", |
|
1091 "SetOptionFlags", |
|
1092 "FUNCTIONALITY", |
|
1093 SetupCGSParentPluginL, MT_CGSParentPlugin_SetOptionFlagsL, TeardownCGSParentPlugin) |
|
1094 |
|
1095 EUNIT_TEST( |
|
1096 "GSPrntPlg:OptionFlags", |
|
1097 "CGSParentPlugin", |
|
1098 "OptionFlags", |
|
1099 "FUNCTIONALITY", |
|
1100 SetupCGSParentPluginL, MT_CGSParentPlugin_OptionFlagsL, TeardownCGSParentPlugin) |
|
1101 |
|
1102 EUNIT_TEST( |
|
1103 "GSPrntPlg:GetHelpContext", |
|
1104 "CGSParentPlugin", |
|
1105 "GetHelpContext", |
|
1106 "FUNCTIONALITY", |
|
1107 SetupCGSParentPluginL, MT_CGSParentPlugin_GetHelpContextL, TeardownCGSParentPlugin) |
|
1108 |
|
1109 EUNIT_TEST( |
|
1110 "GSPrntPlg:SelectedPlugin", |
|
1111 "CGSParentPlugin", |
|
1112 "SelectedPlugin", |
|
1113 "FUNCTIONALITY", |
|
1114 SetupCGSParentPluginL, MT_CGSParentPlugin_SelectedPluginL, TeardownCGSParentPlugin) |
|
1115 |
|
1116 EUNIT_TEST( |
|
1117 "GSPrntPlg:TransferDynamicPluginL", |
|
1118 "CGSParentPlugin", |
|
1119 "TransferDynamicPluginL", |
|
1120 "FUNCTIONALITY", |
|
1121 SetupCGSParentPluginL, MT_CGSParentPlugin_TransferDynamicPluginLL, TeardownCGSParentPlugin) |
|
1122 |
|
1123 EUNIT_TEST( |
|
1124 "GSPlgIF:ItemType", |
|
1125 "CGSPluginInterface", |
|
1126 "ItemType", |
|
1127 "FUNCTIONALITY", |
|
1128 SetupCGSParentPluginL, MT_CGSPluginInterface_ItemTypeL, TeardownCGSParentPlugin) |
|
1129 |
|
1130 EUNIT_TEST( |
|
1131 "GSPlgIF:HandleSelection", |
|
1132 "CGSPluginInterface", |
|
1133 "HandleSelection", |
|
1134 "FUNCTIONALITY", |
|
1135 SetupCGSParentPluginL, MT_CGSPluginInterface_HandleSelectionL, TeardownCGSParentPlugin) |
|
1136 |
|
1137 EUNIT_TEST( |
|
1138 "GSPlgIF:PluginProviderCategory", |
|
1139 "CGSPluginInterface", |
|
1140 "PluginProviderCategory", |
|
1141 "FUNCTIONALITY", |
|
1142 SetupCGSParentPluginL, MT_CGSPluginInterface_PluginProviderCategoryL, TeardownCGSParentPlugin) |
|
1143 |
|
1144 EUNIT_TEST( |
|
1145 "GSPlgIF:CustomOperationL", |
|
1146 "CGSPluginInterface", |
|
1147 "CustomOperationL", |
|
1148 "FUNCTIONALITY", |
|
1149 SetupCGSParentPluginL, MT_CGSPluginInterface_CustomOperationLL, TeardownCGSParentPlugin) |
|
1150 |
|
1151 EUNIT_TEST( |
|
1152 "GSPlgIF:SetOrder", |
|
1153 "CGSPluginInterface", |
|
1154 "SetOrder", |
|
1155 "FUNCTIONALITY", |
|
1156 SetupCGSParentPluginL, MT_CGSPluginInterface_SetOrderL, TeardownCGSParentPlugin) |
|
1157 |
|
1158 EUNIT_TEST( |
|
1159 "GSPlgIF:CreateIconL", |
|
1160 "CGSPluginInterface", |
|
1161 "CreateIconL", |
|
1162 "FUNCTIONALITY", |
|
1163 SetupCGSParentPluginL, MT_CGSPluginInterface_CreateIconLL, TeardownCGSParentPlugin) |
|
1164 |
|
1165 EUNIT_TEST( |
|
1166 "GSPlgIF:GetEcomDestructorKey", |
|
1167 "CGSPluginInterface", |
|
1168 "GetEcomDestructorKey", |
|
1169 "FUNCTIONALITY", |
|
1170 SetupCGSParentPluginL, MT_CGSPluginInterface_GetEcomDestructorKey, TeardownCGSParentPlugin) |
|
1171 |
|
1172 EUNIT_TEST( |
|
1173 "GSTabHlpr:~CGSTabHelper", |
|
1174 "CGSTabHelper", |
|
1175 "~CGSTabHelper", |
|
1176 "FUNCTIONALITY", |
|
1177 SetupTabHelperL, T_CGSTabHelper__CGSTabHelperL, TeardownTabHelper) |
|
1178 |
|
1179 EUNIT_TEST( |
|
1180 "GSTabHlpr:CreateTabGroupL", |
|
1181 "CGSTabHelper", |
|
1182 "CreateTabGroupL", |
|
1183 "FUNCTIONALITY", |
|
1184 SetupTabHelperL, T_CGSTabHelper_CreateTabGroupLL, TeardownTabHelper) |
|
1185 |
|
1186 EUNIT_TEST( |
|
1187 "GSTabHlpr:CreateTabGroupL2", |
|
1188 "CGSTabHelper", |
|
1189 "CreateTabGroupL2", |
|
1190 "FUNCTIONALITY", |
|
1191 SetupTabHelperL, T_CGSTabHelper_CreateTabGroupL2L, TeardownTabHelper) |
|
1192 |
|
1193 EUNIT_TEST( |
|
1194 "GSTabHlpr:CreateTabGroupL3", |
|
1195 "CGSTabHelper", |
|
1196 "CreateTabGroupL3", |
|
1197 "FUNCTIONALITY", |
|
1198 SetupTabHelperL, T_CGSTabHelper_CreateTabGroupL3L, TeardownTabHelper) |
|
1199 |
|
1200 EUNIT_TEST( |
|
1201 "GSTabHlpr:RemoveTabGroupL", |
|
1202 "CGSTabHelper", |
|
1203 "RemoveTabGroupL", |
|
1204 "FUNCTIONALITY", |
|
1205 SetupTabHelperL, T_CGSTabHelper_RemoveTabGroupL, TeardownTabHelper) |
|
1206 |
|
1207 EUNIT_TEST( |
|
1208 "GSTabHlpr:TabChangedL", |
|
1209 "CGSTabHelper", |
|
1210 "TabChangedL", |
|
1211 "FUNCTIONALITY", |
|
1212 SetupTabHelperL, T_CGSTabHelper_TabChangedLL, TeardownTabHelper) |
|
1213 |
|
1214 EUNIT_TEST( |
|
1215 "GSTabHlpr:NewL", |
|
1216 "CGSTabHelper", |
|
1217 "NewL", |
|
1218 "FUNCTIONALITY", |
|
1219 SetupNone, T_CGSTabHelper_NewLL, TeardownNone) |
|
1220 |
|
1221 EUNIT_TEST( |
|
1222 "GSTabHlpr:NewLC", |
|
1223 "CGSTabHelper", |
|
1224 "NewLC", |
|
1225 "FUNCTIONALITY", |
|
1226 SetupNone, T_CGSTabHelper_NewLCL, TeardownNone) |
|
1227 /* |
|
1228 EUNIT_TEST( |
|
1229 "FocusChanged", |
|
1230 "CGSParentContainer", |
|
1231 "FocusChanged", |
|
1232 "FUNCTIONALITY", |
|
1233 SetupParentContainerL, T_CGSParentContainer_FocusChanged, TearDownParentContainer) |
|
1234 */ |
|
1235 |
|
1236 EUNIT_TEST( |
|
1237 "GSPlgLdr:NewL", |
|
1238 "CGSPluginLoader", |
|
1239 "NewL", |
|
1240 "FUNCTIONALITY", |
|
1241 SetupNone, T_CGSPluginLoader_NewL, TeardownNone) |
|
1242 |
|
1243 EUNIT_TEST( |
|
1244 "GSPlgLdr:Destructor", |
|
1245 "CGSPluginLoader", |
|
1246 "~CGSPluginLoader", |
|
1247 "FUNCTIONALITY", |
|
1248 SetupNone, T_CGSPluginLoader__CGSPluginLoader, TeardownNone) |
|
1249 |
|
1250 EUNIT_TEST( |
|
1251 "GSPlgLdr:LoadAsyncL", |
|
1252 "CGSPluginLoader", |
|
1253 "LoadAsyncL", |
|
1254 "FUNCTIONALITY", |
|
1255 SetupPluginLoaderL, T_CGSPluginLoader_LoadAsyncL, TearDownPluginLoader) |
|
1256 |
|
1257 EUNIT_TEST( |
|
1258 "GSPlgLdr:SetObserver", |
|
1259 "CGSPluginLoader", |
|
1260 "SetObserver", |
|
1261 "FUNCTIONALITY", |
|
1262 SetupPluginLoaderL, T_CGSPluginLoader_SetObserver, TearDownPluginLoader) |
|
1263 |
|
1264 EUNIT_TEST( |
|
1265 "GSPlgLdr:AbortAsyncLoad", |
|
1266 "CGSPluginLoader", |
|
1267 "AbortAsyncLoad", |
|
1268 "FUNCTIONALITY", |
|
1269 SetupPluginLoaderL, T_CGSPluginLoader_AbortAsyncLoad, TearDownPluginLoader) |
|
1270 |
|
1271 EUNIT_TEST( |
|
1272 "GSPlgLdr:SortPluginsL", |
|
1273 "CGSPluginLoader", |
|
1274 "SortPluginsL", |
|
1275 "FUNCTIONALITY", |
|
1276 SetupPluginLoaderL, T_CGSPluginLoader_SortPluginsL, TearDownPluginLoader) |
|
1277 |
|
1278 EUNIT_TEST( |
|
1279 "GSPSLsnr:NewL", |
|
1280 "CGSPubSubsListener", |
|
1281 "NewL", |
|
1282 "FUNCTIONALITY", |
|
1283 SetupNone, T_CGSPubSubsListener_NewL, TeardownNone) |
|
1284 |
|
1285 EUNIT_TEST( |
|
1286 "GSPSLsnr:CGSPubSubsListener", |
|
1287 "CGSPubSubsListener", |
|
1288 "~CGSPubSubsListener", |
|
1289 "FUNCTIONALITY", |
|
1290 SetupNone, T_CGSPubSubsListener__CGSPubSubsListener, TeardownNone) |
|
1291 |
|
1292 EUNIT_TEST( |
|
1293 "GSPSLsnr:Get1", |
|
1294 "CGSPubSubsListener", |
|
1295 "Get1", |
|
1296 "FUNCTIONALITY", |
|
1297 SetupPubSubsListenerL, T_CGSPubSubsListener_Get1, TearDownPubSubsListener) |
|
1298 |
|
1299 EUNIT_TEST( |
|
1300 "GSPSLsnr:Get2", |
|
1301 "CGSPubSubsListener", |
|
1302 "Get2", |
|
1303 "FUNCTIONALITY", |
|
1304 SetupPubSubsListenerL, T_CGSPubSubsListener_Get2, TearDownPubSubsListener) |
|
1305 |
|
1306 EUNIT_TEST( |
|
1307 "GSPSLsnr:Get3", |
|
1308 "CGSPubSubsListener", |
|
1309 "Get3", |
|
1310 "FUNCTIONALITY", |
|
1311 SetupPubSubsListenerL, T_CGSPubSubsListener_Get3, TearDownPubSubsListener) |
|
1312 |
|
1313 EUNIT_END_TEST_TABLE |
|
1314 |
|
1315 // END OF FILE |
|