|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INTERNAL INCLUDES |
|
20 #include "ut_musuieventcontroller.h" |
|
21 #include "musuieventcontroller.h" |
|
22 #include "musuilivesharingcontroller.h" |
|
23 |
|
24 #include "musuilivesharingobserveradapter.h" |
|
25 #include "musuieventobserveradapter.h" |
|
26 |
|
27 #include "musresourceproperties.h" |
|
28 #include "mussessionproperties.h" |
|
29 #include "musuidefinitions.h" |
|
30 #include "musenglivesession.h" |
|
31 #include "mussettings.h" |
|
32 |
|
33 |
|
34 #include <e32property.h> |
|
35 #include <fbs.h> |
|
36 #include <stringloader.h> |
|
37 |
|
38 //#include "musestubs.h" |
|
39 //#include "musengtestdefs.h" |
|
40 |
|
41 // SYSTEM INCLUDES |
|
42 #include <digia/eunit/eunitmacros.h> |
|
43 //#include <centralrepository.h> |
|
44 //#include <mcedisplaysink.h> |
|
45 |
|
46 using namespace NMusSessionApi; |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 UT_CMusUiEventController* UT_CMusUiEventController::NewL() |
|
56 { |
|
57 UT_CMusUiEventController* self = UT_CMusUiEventController::NewLC(); |
|
58 CleanupStack::Pop( self ); |
|
59 return self; |
|
60 } |
|
61 |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 UT_CMusUiEventController* UT_CMusUiEventController::NewLC() |
|
68 { |
|
69 UT_CMusUiEventController* self = new( ELeave ) UT_CMusUiEventController(); |
|
70 CleanupStack::PushL( self ); |
|
71 self->ConstructL(); |
|
72 return self; |
|
73 } |
|
74 |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 UT_CMusUiEventController::~UT_CMusUiEventController() |
|
81 { |
|
82 // NOP |
|
83 } |
|
84 |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // Default constructor |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 UT_CMusUiEventController::UT_CMusUiEventController() |
|
91 { |
|
92 // NOP |
|
93 } |
|
94 |
|
95 |
|
96 // ----------------------------------------------------------------------------- |
|
97 // Second phase construct |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 void UT_CMusUiEventController::ConstructL() |
|
101 { |
|
102 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
|
103 // It generates the test case table. |
|
104 CEUnitTestSuiteClass::ConstructL(); |
|
105 } |
|
106 |
|
107 |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 // ----------------------------------------------------------------------------- |
|
111 // |
|
112 void UT_CMusUiEventController::SetupL() |
|
113 { |
|
114 _LIT( KPath, "\\private\\1000af5a\\" ); |
|
115 iVideoFolder = KPath().AllocL(); |
|
116 |
|
117 //MultimediaSharingSettings::iVideoFolder = iVideoFolder; |
|
118 MultimediaSharingSettings::iAutoRecord = MusSettingsKeys::EAutoRecordOff; |
|
119 MultimediaSharingSettings::iVideoLocation = 2; |
|
120 |
|
121 _LIT( KReturn, "savedfilename" ); |
|
122 _iReturnValue = KReturn().AllocL(); |
|
123 StringLoader::iReturnValue = _iReturnValue; |
|
124 |
|
125 |
|
126 iEventObserver = new (ELeave) CMusUiEventObserverAdapter(); |
|
127 EUNIT_ASSERT( iEventObserver ); |
|
128 |
|
129 iLiveSharingObserverAdapter = new (ELeave) CMusUiLiveSharingObserverAdapter(); |
|
130 EUNIT_ASSERT( iLiveSharingObserverAdapter ); |
|
131 |
|
132 |
|
133 RProperty::iIntProperty = 0; |
|
134 RProperty::iErrorCode = KErrNone; |
|
135 |
|
136 |
|
137 iLiveSharingController = CMusUiLiveSharingController::NewL( iLiveSharingObserverAdapter, TRect( 0,0,100,100)); |
|
138 iEventController = static_cast<CMusUiEventController*> |
|
139 ( iLiveSharingController ); |
|
140 |
|
141 EUNIT_ASSERT( iEventController ); |
|
142 iEventController->SetEventObserver( iEventObserver ); |
|
143 EUNIT_ASSERT( iEventController->iObserver == iEventObserver ); |
|
144 |
|
145 } |
|
146 |
|
147 |
|
148 // ----------------------------------------------------------------------------- |
|
149 // |
|
150 // ----------------------------------------------------------------------------- |
|
151 // |
|
152 void UT_CMusUiEventController::Teardown() |
|
153 { |
|
154 delete iLiveSharingController; |
|
155 iEventController = NULL; |
|
156 delete iEventObserver; |
|
157 delete iLiveSharingObserverAdapter; |
|
158 |
|
159 delete iVideoFolder; |
|
160 iVideoFolder = NULL; |
|
161 //MultimediaSharingSettings::iVideoFolder = NULL; |
|
162 |
|
163 delete _iReturnValue ; |
|
164 _iReturnValue = NULL; |
|
165 // StringLoader::iReturnValue = NULL; |
|
166 //StringLoader::Cleanup(); |
|
167 //MultimediaSharingSettings::Cleanup(); |
|
168 |
|
169 } |
|
170 |
|
171 |
|
172 // TEST CASES |
|
173 |
|
174 void UT_CMusUiEventController::UT_CMusUiEventController_ResourcePropertyChangedL() |
|
175 { |
|
176 // test for setting status |
|
177 |
|
178 // Camera availability |
|
179 iEventController->iCameraAvailibilityInProgress = EFalse; |
|
180 iEventController->iCameraAvailable = TAvailability(1); |
|
181 iEventController->ResourcePropertyChanged( KCameraAvailability, 0 ); |
|
182 EUNIT_ASSERT( iEventController->iCameraAvailable == 0 ); |
|
183 EUNIT_ASSERT( iEventController->iCameraAvailibilityInProgress == EFalse ); |
|
184 |
|
185 _LIT( KRes, "address" ); // Needed for fake, MUS_LOG leaves if null |
|
186 iLiveSharingController->iAddress = KRes().AllocL(); |
|
187 iEventController->iCameraAvailibilityInProgress = ETrue; |
|
188 iEventController->iCameraAvailable = TAvailability(0); |
|
189 iEventController->ResourcePropertyChanged( KCameraAvailability, 1 ); |
|
190 EUNIT_ASSERT( iEventController->iCameraAvailable == 1 ); |
|
191 EUNIT_ASSERT( iEventController->iCameraAvailibilityInProgress == EFalse ); |
|
192 EUNIT_ASSERT( iLiveSharingObserverAdapter->iCalledObserver == CMusUiLiveSharingObserverAdapter::EShowWaitDialogL ); |
|
193 |
|
194 |
|
195 // Keypad availablity |
|
196 iEventController->iKeypadAvailable = TAvailability(0); |
|
197 iEventController->ResourcePropertyChanged( KKeypadAvailability, 2 ); |
|
198 EUNIT_ASSERT( iEventController->iKeypadAvailable == 2 ); |
|
199 |
|
200 // Videoplayer availability |
|
201 iEventController->iVideoPlayerAvailable = TAvailability(0); |
|
202 iEventController->ResourcePropertyChanged( KVideoPlayerAvailability, 3 ); |
|
203 EUNIT_ASSERT( iEventController->iVideoPlayerAvailable == 3 ); |
|
204 |
|
205 //Other case |
|
206 iEventController->ResourcePropertyChanged( -99, 0 ); |
|
207 EUNIT_ASSERT( iEventController->iCameraAvailable == 1 ); |
|
208 EUNIT_ASSERT( iEventController->iKeypadAvailable == 2 ); |
|
209 EUNIT_ASSERT( iEventController->iVideoPlayerAvailable == 3 ); |
|
210 |
|
211 } |
|
212 |
|
213 |
|
214 void UT_CMusUiEventController::UT_CMusUiEventController_SessionPropertyChangedL() |
|
215 { |
|
216 |
|
217 iEventController->SessionPropertyChanged( KStatus, ESipRegistrationPending ); |
|
218 EUNIT_ASSERT( iEventController->iSipRegistrationPending ); |
|
219 |
|
220 // TODO: Cannot test UpdateContactL it leaves CleanupStack::PopAndDestroy function |
|
221 // Need to do changes on code |
|
222 iEventController->SessionPropertyChanged( KContactId, 0 ); |
|
223 |
|
224 } |
|
225 |
|
226 |
|
227 void UT_CMusUiEventController::UT_CMusUiEventController_SessionPropertyChanged2L() |
|
228 { |
|
229 // TODO: Is this functions alive? |
|
230 // EUNIT_ASSERT( EFalse ); |
|
231 } |
|
232 |
|
233 |
|
234 void UT_CMusUiEventController::UT_CMusUiEventController_HandleErrorL() |
|
235 { |
|
236 |
|
237 iEventController->HandleError( KErrUnknown ); |
|
238 EUNIT_ASSERT( iEventObserver->iCalledObserver == CMusUiEventObserverAdapter::EHandleError ); |
|
239 EUNIT_ASSERT( iEventObserver->iHandleErrorReason == KErrUnknown ); |
|
240 |
|
241 } |
|
242 |
|
243 void UT_CMusUiEventController::UT_CMusUiEventController_UpdateBitmapL() |
|
244 { |
|
245 delete iEventController->iContactBitmap; |
|
246 iEventController->iContactBitmap = NULL; |
|
247 CFbsBitmap* bitmap = new (ELeave) CFbsBitmap(); |
|
248 iEventController->UpdateBitmap( bitmap ); |
|
249 EUNIT_ASSERT( iEventController->iContactBitmap == bitmap ); |
|
250 } |
|
251 |
|
252 |
|
253 void UT_CMusUiEventController::UT_CMusUiEventController_SetEventObserverL() |
|
254 { |
|
255 // Tested in SetupL(); |
|
256 EUNIT_ASSERT( ETrue ); |
|
257 } |
|
258 |
|
259 |
|
260 void UT_CMusUiEventController::UT_CMusUiEventController_HandleForegroundEventLL() |
|
261 { |
|
262 // Initalization |
|
263 iLiveSharingController->iConnectionEstablished = ETrue; // Need for testing |
|
264 iLiveSharingObserverAdapter->iErrorCode = KErrNone; |
|
265 |
|
266 // Enable display |
|
267 iEventController->HandleForegroundEventL( ETrue ); |
|
268 EUNIT_ASSERT( iLiveSharingController->iSession->iDisplayEnabled ); |
|
269 EUNIT_ASSERT( iLiveSharingController->iSession->iPlaying ); |
|
270 EUNIT_ASSERT( iEventController->iPlaying ); |
|
271 EUNIT_ASSERT( iLiveSharingObserverAdapter->iCalledObserver == CMusUiLiveSharingObserverAdapter::EShowNaviPaneIconL ); |
|
272 EUNIT_ASSERT( iLiveSharingObserverAdapter->iIcon == EMusUiNaviIconPlay ); |
|
273 |
|
274 // Disable display |
|
275 iEventController->HandleForegroundEventL( EFalse ); |
|
276 EUNIT_ASSERT( !iLiveSharingController->iSession->iDisplayEnabled ); |
|
277 EUNIT_ASSERT( !iLiveSharingController->iSession->iPlaying ); |
|
278 EUNIT_ASSERT( !iEventController->iPlaying ); |
|
279 EUNIT_ASSERT( iLiveSharingObserverAdapter->iCalledObserver == CMusUiLiveSharingObserverAdapter::EShowNaviPaneIconL ); |
|
280 EUNIT_ASSERT( iLiveSharingObserverAdapter->iIcon == EMusUiNaviIconPause ); |
|
281 |
|
282 } |
|
283 |
|
284 |
|
285 void UT_CMusUiEventController::UT_CMusUiEventController_SetCameraStatusL() |
|
286 { |
|
287 iEventController->iCameraAvailable = TAvailability( 0 ); |
|
288 iEventController->SetCameraStatus( TAvailability( 2 ) ); |
|
289 EUNIT_ASSERT( iEventController->iCameraAvailable == 2 ); |
|
290 } |
|
291 |
|
292 |
|
293 void UT_CMusUiEventController::UT_CMusUiEventController_SetKeypadStatusL() |
|
294 { |
|
295 iEventController->iKeypadAvailable = TAvailability(0); |
|
296 iEventController->SetKeypadStatus( TAvailability( 2 ) ); |
|
297 EUNIT_ASSERT( iEventController->iKeypadAvailable == 2 ); |
|
298 } |
|
299 |
|
300 |
|
301 void UT_CMusUiEventController::UT_CMusUiEventController_SetVideoPlayerStatusL() |
|
302 { |
|
303 iEventController->iVideoPlayerAvailable = TAvailability(0); |
|
304 iEventController->SetVideoPlayerStatus( TAvailability( 3 ) ); |
|
305 EUNIT_ASSERT( iEventController->iVideoPlayerAvailable == 3 ); |
|
306 } |
|
307 |
|
308 |
|
309 void UT_CMusUiEventController::UT_CMusUiEventController_SetCameraAvailabilityInProgressL() |
|
310 { |
|
311 iEventController->iCameraAvailibilityInProgress = 0; |
|
312 iEventController->SetCameraAvailabilityInProgress( 1 ); |
|
313 EUNIT_ASSERT( iEventController->iCameraAvailibilityInProgress == 1 ); |
|
314 } |
|
315 |
|
316 |
|
317 void UT_CMusUiEventController::UT_CMusUiEventController_CameraAvailableL() |
|
318 { |
|
319 iEventController->iCameraAvailable = TAvailability( 2 ); |
|
320 EUNIT_ASSERT( iEventController->CameraAvailable() == 2 ); |
|
321 } |
|
322 |
|
323 |
|
324 void UT_CMusUiEventController::UT_CMusUiEventController_KeypadAvailableL() |
|
325 { |
|
326 iEventController->iKeypadAvailable = TAvailability( 2 ); |
|
327 EUNIT_ASSERT( iEventController->KeypadAvailable() == 2 ); |
|
328 } |
|
329 |
|
330 |
|
331 void UT_CMusUiEventController::UT_CMusUiEventController_VideoPlayerAvailableL() |
|
332 { |
|
333 iEventController->iVideoPlayerAvailable = TAvailability( 2 ); |
|
334 EUNIT_ASSERT( iEventController->VideoPlayerAvailable() == 2 ); |
|
335 } |
|
336 |
|
337 |
|
338 void UT_CMusUiEventController::UT_CMusUiEventController_CameraAvailibilityInProgressL() |
|
339 { |
|
340 iEventController->iCameraAvailibilityInProgress = 1; |
|
341 EUNIT_ASSERT( iEventController->CameraAvailibilityInProgress() == 1 ); |
|
342 } |
|
343 |
|
344 |
|
345 void UT_CMusUiEventController::UT_CMusUiEventController_MusRemoteSipAddressValueL() |
|
346 { |
|
347 _LIT( KRes, "remote_address"); |
|
348 delete iEventController->iRemoteSipAddress; |
|
349 iEventController->iRemoteSipAddress = KRes().AllocL(); |
|
350 EUNIT_ASSERT( iEventController->MusRemoteSipAddressValue().Compare( KRes ) == 0 ); |
|
351 } |
|
352 |
|
353 |
|
354 void UT_CMusUiEventController::UT_CMusUiEventController_MusProposalAddressValueL() |
|
355 { |
|
356 _LIT( KRes, "remote_address"); |
|
357 delete iEventController->iRemoteSipAddressProposal; |
|
358 iEventController->iRemoteSipAddressProposal = KRes().AllocL(); |
|
359 EUNIT_ASSERT( iEventController->MusProposalAddressValue().Compare( KRes ) == 0 ); |
|
360 } |
|
361 |
|
362 |
|
363 void UT_CMusUiEventController::UT_CMusUiEventController_MusContactNameL() |
|
364 { |
|
365 _LIT( KRes, "remote_address"); |
|
366 delete iEventController->iContactName; |
|
367 iEventController->iContactName = KRes().AllocL(); |
|
368 EUNIT_ASSERT( iEventController->MusContactName().Compare( KRes ) == 0 ); |
|
369 } |
|
370 |
|
371 |
|
372 void UT_CMusUiEventController::UT_CMusUiEventController_MusContactBitmapL() |
|
373 { |
|
374 delete iEventController->iContactBitmap; |
|
375 iEventController->iContactBitmap = new (ELeave) CFbsBitmap(); |
|
376 EUNIT_ASSERT( iEventController->MusContactBitmap() == iEventController->iContactBitmap ); |
|
377 } |
|
378 |
|
379 |
|
380 void UT_CMusUiEventController::UT_CMusUiEventController_MusVideoCodecValueL() |
|
381 { |
|
382 _LIT( KRes, "codec_value"); |
|
383 delete iEventController->iVideoCodec; |
|
384 iEventController->iVideoCodec = KRes().AllocL(); |
|
385 EUNIT_ASSERT( iEventController->MusVideoCodecValue().Compare( KRes ) == 0 ); |
|
386 } |
|
387 |
|
388 |
|
389 void UT_CMusUiEventController::UT_CMusUiEventController_MusTelNumberValueL() |
|
390 { |
|
391 _LIT( KRes, "telnumber"); |
|
392 delete iEventController->iTelNumber; |
|
393 iEventController->iTelNumber = KRes().AllocL(); |
|
394 EUNIT_ASSERT( iEventController->MusTelNumberValue().Compare( KRes ) == 0 ); |
|
395 } |
|
396 |
|
397 |
|
398 void UT_CMusUiEventController::UT_CMusUiEventController_SipProfileIdL() |
|
399 { |
|
400 iEventController->iSipProfileId = 99; |
|
401 EUNIT_ASSERT( iEventController->SipProfileId() == 99 ); |
|
402 } |
|
403 |
|
404 |
|
405 void UT_CMusUiEventController::UT_CMusUiEventController_SipRegistrationPendingL() |
|
406 { |
|
407 |
|
408 iEventController->iSipRegistrationPending = ETrue; |
|
409 EUNIT_ASSERT( iEventController->SipRegistrationPending() ); |
|
410 } |
|
411 |
|
412 |
|
413 void UT_CMusUiEventController::UT_CMusUiEventController_SessionTimeFormattedL() |
|
414 { |
|
415 |
|
416 // Localized time format like "00:00:00" |
|
417 |
|
418 //TLocale locale; |
|
419 //locale.TimeSeparator( 2 ) |
|
420 |
|
421 //EUNIT_ASSERT( iEventController->MusTelNumberValue().Compare( iEventController->iTelNumber->Des() ) ); |
|
422 EUNIT_ASSERT( EFalse ); |
|
423 } |
|
424 |
|
425 |
|
426 void UT_CMusUiEventController::UT_CMusUiEventController_SaveContactL() |
|
427 { |
|
428 |
|
429 //iEventController->iContactId = TContactItemId( 1 ); |
|
430 |
|
431 //iEventController->SaveContact(); |
|
432 //EUNIT_ASSERT( iEventObserver->iActivatedContactId == TContactItemId( 1 ) ); |
|
433 |
|
434 EUNIT_ASSERT( EFalse ); |
|
435 } |
|
436 |
|
437 |
|
438 void UT_CMusUiEventController::UT_CMusUiEventController_HandleExitLL() |
|
439 { |
|
440 |
|
441 |
|
442 |
|
443 EUNIT_ASSERT( EFalse ); |
|
444 } |
|
445 |
|
446 |
|
447 void UT_CMusUiEventController::UT_CMusUiEventController_InspectKeypadLL() |
|
448 { |
|
449 |
|
450 // Initalize |
|
451 iLiveSharingObserverAdapter->iErrorCode = KErrNone; |
|
452 iEventObserver->iErrorCode = KErrNone; |
|
453 |
|
454 |
|
455 // Basic case cannot test, nothing changes |
|
456 // iEventController->iKeypadAvailable = EAvailable; |
|
457 // iEventController->InspectKeypadL(); |
|
458 |
|
459 |
|
460 // case EAvailableInLandscapeOrientation |
|
461 iEventController->iKeypadAvailable = EAvailableInLandscapeOrientation; |
|
462 iEventController->InspectKeypadL(); |
|
463 EUNIT_ASSERT( iLiveSharingObserverAdapter->iCalledObserver == CMusUiLiveSharingObserverAdapter::EChangeOrientationL ); |
|
464 EUNIT_ASSERT( iLiveSharingObserverAdapter->iOrientation == CAknAppUiBase::EAppUiOrientationLandscape ); |
|
465 |
|
466 |
|
467 // case EAvailableInPortraitOrientation |
|
468 iEventController->iKeypadAvailable = EAvailableInPortraitOrientation; |
|
469 iEventController->InspectKeypadL(); |
|
470 EUNIT_ASSERT( iLiveSharingObserverAdapter->iCalledObserver == CMusUiLiveSharingObserverAdapter::EChangeOrientationL ); |
|
471 EUNIT_ASSERT( iLiveSharingObserverAdapter->iOrientation == CAknAppUiBase::EAppUiOrientationPortrait ); |
|
472 |
|
473 // case ENotDefined |
|
474 iEventController->iKeypadAvailable = ENotDefined; |
|
475 iEventController->InspectKeypadL(); |
|
476 EUNIT_ASSERT( iEventObserver->iCalledObserver == CMusUiEventObserverAdapter::EHandleExitL ); |
|
477 |
|
478 // case ENotAvailable |
|
479 iEventController->iKeypadAvailable = ENotAvailable; |
|
480 iEventController->InspectKeypadL(); |
|
481 EUNIT_ASSERT( iEventObserver->iCalledObserver == CMusUiEventObserverAdapter::EHandleExitL ); |
|
482 |
|
483 |
|
484 } |
|
485 |
|
486 |
|
487 void UT_CMusUiEventController::UT_CMusUiEventController_UpdateContactLL() |
|
488 { |
|
489 EUNIT_ASSERT( EFalse ); |
|
490 } |
|
491 |
|
492 |
|
493 void UT_CMusUiEventController::UT_CMusUiEventController_UpdateContactNameL() |
|
494 { |
|
495 EUNIT_ASSERT( EFalse ); |
|
496 } |
|
497 |
|
498 |
|
499 void UT_CMusUiEventController::UT_CMusUiEventController_UpdateContactPictureLL() |
|
500 { |
|
501 EUNIT_ASSERT( EFalse ); |
|
502 } |
|
503 |
|
504 |
|
505 void UT_CMusUiEventController::UT_CMusUiEventController_HandleChangedStatusLL() |
|
506 { |
|
507 EUNIT_ASSERT( EFalse ); |
|
508 } |
|
509 |
|
510 |
|
511 |
|
512 // TEST TABLE |
|
513 |
|
514 EUNIT_BEGIN_TEST_TABLE( |
|
515 UT_CMusUiEventController, |
|
516 "UT_CMusUiEventController", |
|
517 "UNIT" ) |
|
518 |
|
519 EUNIT_TEST( |
|
520 "ResourcePropertyChangedL - test ", |
|
521 "CMusUiEventController", |
|
522 "ResourcePropertyChangedL", |
|
523 "FUNCTIONALITY", |
|
524 SetupL, UT_CMusUiEventController_ResourcePropertyChangedL, Teardown) |
|
525 |
|
526 EUNIT_TEST( |
|
527 "SessionPropertyChangedL - test ", |
|
528 "CMusUiEventController", |
|
529 "SessionPropertyChangedL", |
|
530 "FUNCTIONALITY", |
|
531 SetupL, UT_CMusUiEventController_SessionPropertyChangedL, Teardown) |
|
532 |
|
533 EUNIT_TEST( |
|
534 "HandleError - test ", |
|
535 "CMusUiEventController", |
|
536 "HandleError", |
|
537 "FUNCTIONALITY", |
|
538 SetupL, UT_CMusUiEventController_HandleErrorL, Teardown) |
|
539 |
|
540 EUNIT_TEST( |
|
541 "UpdateBitmap - test ", |
|
542 "CMusUiEventController", |
|
543 "UpdateBitmap", |
|
544 "FUNCTIONALITY", |
|
545 SetupL, UT_CMusUiEventController_UpdateBitmapL, Teardown) |
|
546 |
|
547 EUNIT_TEST( |
|
548 "SetEventObserver - test ", |
|
549 "CMusUiEventController", |
|
550 "SetEventObserver", |
|
551 "FUNCTIONALITY", |
|
552 SetupL, UT_CMusUiEventController_SetEventObserverL, Teardown) |
|
553 |
|
554 EUNIT_TEST( |
|
555 "HandleForegroundEventL - test ", |
|
556 "CMusUiEventController", |
|
557 "HandleForegroundEventL", |
|
558 "FUNCTIONALITY", |
|
559 SetupL, UT_CMusUiEventController_HandleForegroundEventLL, Teardown) |
|
560 |
|
561 EUNIT_TEST( |
|
562 "SetCameraStatus - test ", |
|
563 "CMusUiEventController", |
|
564 "SetCameraStatus", |
|
565 "FUNCTIONALITY", |
|
566 SetupL, UT_CMusUiEventController_SetCameraStatusL, Teardown) |
|
567 |
|
568 EUNIT_TEST( |
|
569 "SetKeypadStatus - test ", |
|
570 "CMusUiEventController", |
|
571 "SetKeypadStatus", |
|
572 "FUNCTIONALITY", |
|
573 SetupL, UT_CMusUiEventController_SetKeypadStatusL, Teardown) |
|
574 |
|
575 EUNIT_TEST( |
|
576 "SetVideoPlayerStatus - test ", |
|
577 "CMusUiEventController", |
|
578 "SetVideoPlayerStatus", |
|
579 "FUNCTIONALITY", |
|
580 SetupL, UT_CMusUiEventController_SetVideoPlayerStatusL, Teardown) |
|
581 |
|
582 EUNIT_TEST( |
|
583 "SetCameraAvailabilityInProgress - test ", |
|
584 "CMusUiEventController", |
|
585 "SetCameraAvailabilityInProgress", |
|
586 "FUNCTIONALITY", |
|
587 SetupL, UT_CMusUiEventController_SetCameraAvailabilityInProgressL, Teardown) |
|
588 |
|
589 EUNIT_TEST( |
|
590 "EnableLoudspeaker - test ", |
|
591 "CMusUiEventController", |
|
592 "EnableLoudspeaker", |
|
593 "FUNCTIONALITY", |
|
594 SetupL, UT_CMusUiEventController_SetCameraStatusL, Teardown) |
|
595 |
|
596 EUNIT_TEST( |
|
597 "CameraAvailable - test ", |
|
598 "CMusUiEventController", |
|
599 "CameraAvailable", |
|
600 "FUNCTIONALITY", |
|
601 SetupL, UT_CMusUiEventController_CameraAvailableL, Teardown) |
|
602 |
|
603 EUNIT_TEST( |
|
604 "KeypadAvailable - test ", |
|
605 "CMusUiEventController", |
|
606 "KeypadAvailable", |
|
607 "FUNCTIONALITY", |
|
608 SetupL, UT_CMusUiEventController_KeypadAvailableL, Teardown) |
|
609 |
|
610 EUNIT_TEST( |
|
611 "VideoPlayerAvailable - test ", |
|
612 "CMusUiEventController", |
|
613 "VideoPlayerAvailable", |
|
614 "FUNCTIONALITY", |
|
615 SetupL, UT_CMusUiEventController_VideoPlayerAvailableL, Teardown) |
|
616 |
|
617 EUNIT_TEST( |
|
618 "CameraAvailibilityInProgress - test ", |
|
619 "CMusUiEventController", |
|
620 "CameraAvailibilityInProgress", |
|
621 "FUNCTIONALITY", |
|
622 SetupL, UT_CMusUiEventController_CameraAvailibilityInProgressL, Teardown) |
|
623 |
|
624 EUNIT_TEST( |
|
625 "MusRemoteSipAddressValue - test ", |
|
626 "CMusUiEventController", |
|
627 "MusRemoteSipAddressValue", |
|
628 "FUNCTIONALITY", |
|
629 SetupL, UT_CMusUiEventController_MusRemoteSipAddressValueL, Teardown) |
|
630 |
|
631 EUNIT_TEST( |
|
632 "MusProposalAddressValue - test ", |
|
633 "CMusUiEventController", |
|
634 "MusProposalAddressValue", |
|
635 "FUNCTIONALITY", |
|
636 SetupL, UT_CMusUiEventController_MusProposalAddressValueL, Teardown) |
|
637 |
|
638 EUNIT_TEST( |
|
639 "MusContactName - test ", |
|
640 "CMusUiEventController", |
|
641 "MusContactName", |
|
642 "FUNCTIONALITY", |
|
643 SetupL, UT_CMusUiEventController_MusContactNameL, Teardown) |
|
644 |
|
645 EUNIT_TEST( |
|
646 "EnableLoudspeakerL - test ", |
|
647 "CMusUiEventController", |
|
648 "EnableLoudspeakerL", |
|
649 "FUNCTIONALITY", |
|
650 SetupL, UT_CMusUiEventController_SetCameraStatusL, Teardown) |
|
651 |
|
652 EUNIT_TEST( |
|
653 "MusContactBitmap - test ", |
|
654 "CMusUiEventController", |
|
655 "MusContactBitmap", |
|
656 "FUNCTIONALITY", |
|
657 SetupL, UT_CMusUiEventController_MusContactBitmapL, Teardown) |
|
658 |
|
659 EUNIT_TEST( |
|
660 "MusVideoCodecValue - test ", |
|
661 "CMusUiEventController", |
|
662 "MusVideoCodecValue", |
|
663 "FUNCTIONALITY", |
|
664 SetupL, UT_CMusUiEventController_MusVideoCodecValueL, Teardown) |
|
665 |
|
666 EUNIT_TEST( |
|
667 "MusTelNumberValue - test ", |
|
668 "CMusUiEventController", |
|
669 "MusTelNumberValue", |
|
670 "FUNCTIONALITY", |
|
671 SetupL, UT_CMusUiEventController_MusTelNumberValueL, Teardown) |
|
672 |
|
673 EUNIT_TEST( |
|
674 "SipProfileId - test ", |
|
675 "CMusUiEventController", |
|
676 "SipProfileId", |
|
677 "FUNCTIONALITY", |
|
678 SetupL, UT_CMusUiEventController_SipProfileIdL, Teardown) |
|
679 |
|
680 EUNIT_TEST( |
|
681 "SipRegistrationPending - test ", |
|
682 "CMusUiEventController", |
|
683 "SipRegistrationPending", |
|
684 "FUNCTIONALITY", |
|
685 SetupL, UT_CMusUiEventController_SipRegistrationPendingL, Teardown) |
|
686 |
|
687 EUNIT_TEST( |
|
688 "SessionTimeFormatted - test ", |
|
689 "CMusUiEventController", |
|
690 "SessionTimeFormatted", |
|
691 "FUNCTIONALITY", |
|
692 SetupL, UT_CMusUiEventController_SessionTimeFormattedL, Teardown) |
|
693 |
|
694 EUNIT_TEST( |
|
695 "EnableLoudspeakerL - test ", |
|
696 "CMusUiEventController", |
|
697 "EnableLoudspeakerL", |
|
698 "FUNCTIONALITY", |
|
699 SetupL, UT_CMusUiEventController_SetCameraStatusL, Teardown) |
|
700 |
|
701 EUNIT_TEST( |
|
702 "SaveContact - test ", |
|
703 "CMusUiEventController", |
|
704 "SaveContact", |
|
705 "FUNCTIONALITY", |
|
706 SetupL, UT_CMusUiEventController_SaveContactL, Teardown) |
|
707 |
|
708 EUNIT_TEST( |
|
709 "SetCameraStatus - test ", |
|
710 "CMusUiEventController", |
|
711 "SetCameraStatus", |
|
712 "FUNCTIONALITY", |
|
713 SetupL, UT_CMusUiEventController_SetCameraStatusL, Teardown) |
|
714 |
|
715 EUNIT_TEST( |
|
716 "HandleExitL - test ", |
|
717 "CMusUiEventController", |
|
718 "HandleExitL", |
|
719 "FUNCTIONALITY", |
|
720 SetupL, UT_CMusUiEventController_HandleExitLL, Teardown) |
|
721 |
|
722 |
|
723 EUNIT_TEST( |
|
724 "InspectKeypadL - test ", |
|
725 "CMusUiEventController", |
|
726 "InspectKeypadL", |
|
727 "FUNCTIONALITY", |
|
728 SetupL, UT_CMusUiEventController_InspectKeypadLL, Teardown) |
|
729 |
|
730 EUNIT_TEST( |
|
731 "UpdateContactL - test ", |
|
732 "CMusUiEventController", |
|
733 "UpdateContactL", |
|
734 "FUNCTIONALITY", |
|
735 SetupL, UT_CMusUiEventController_UpdateContactLL, Teardown) |
|
736 |
|
737 EUNIT_TEST( |
|
738 "UpdateContactName - test ", |
|
739 "CMusUiEventController", |
|
740 "UpdateContactName", |
|
741 "FUNCTIONALITY", |
|
742 SetupL, UT_CMusUiEventController_UpdateContactNameL, Teardown) |
|
743 |
|
744 EUNIT_TEST( |
|
745 "UpdateContactPictureL - test ", |
|
746 "CMusUiEventController", |
|
747 "UpdateContactPictureL", |
|
748 "FUNCTIONALITY", |
|
749 SetupL, UT_CMusUiEventController_UpdateContactPictureLL, Teardown) |
|
750 |
|
751 EUNIT_TEST( |
|
752 "HandleChangedStatusL - test ", |
|
753 "CMusUiEventController", |
|
754 "HandleChangedStatusL", |
|
755 "FUNCTIONALITY", |
|
756 SetupL, UT_CMusUiEventController_HandleChangedStatusLL, Teardown) |
|
757 |
|
758 EUNIT_END_TEST_TABLE |
|
759 |
|
760 |
|
761 // END OF FILE |