mmsharing/mmshui/tsrc/ut_ui/inc/ut_musuilivesharingcontroller.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 0 f0cf47e981f9
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
       
     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 #ifndef __UT_MUSUILIVESHARINGCONTROLLER_H__
       
    20 #define __UT_MUSUILIVESHARINGCONTROLLER_H__
       
    21 
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 #include <digia/eunit/eunitmacros.h>
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CMusUiLiveSharingObserverAdapter;
       
    29 class CMusUiLiveSharingController;
       
    30 class CMusUiEventObserverAdapter;
       
    31 class CMusUiEventController;
       
    32 
       
    33 
       
    34 //  CLASS DEFINITION
       
    35 /**
       
    36  * Tester class for CMusEngSession.
       
    37  * Since CMusEngSession is abstract, it is tested via object of its'
       
    38  * concrete descendant class CMusEngLiveSession. Only concrete
       
    39  * implementations are tested in this tester class.
       
    40  *
       
    41  */
       
    42 NONSHARABLE_CLASS( UT_CMusUiLiveSharingController ): public CEUnitTestSuiteClass
       
    43     {
       
    44     public:     // Constructors and destructors
       
    45 
       
    46         /**
       
    47          * Two phase construction
       
    48          */
       
    49         static UT_CMusUiLiveSharingController* NewL();
       
    50         static UT_CMusUiLiveSharingController* NewLC();
       
    51 
       
    52         /**
       
    53          * Destructor
       
    54          */
       
    55         ~UT_CMusUiLiveSharingController();
       
    56 
       
    57     private: // Constructors and destructors
       
    58 
       
    59         UT_CMusUiLiveSharingController();
       
    60         void ConstructL();
       
    61 
       
    62     private: // Test case setup and teardown
       
    63 
       
    64         void SetupL();
       
    65 
       
    66         void Teardown();
       
    67 
       
    68     private: // Test methods
       
    69 
       
    70 		//public:	// new functions:
       
    71 
       
    72 		void UT_CMusUiLiveSharingController_StartInvitationLL();
       
    73 		void UT_CMusUiLiveSharingController_AddressFoundLL();
       
    74 		void UT_CMusUiLiveSharingController_InviteLL();
       
    75 		void UT_CMusUiLiveSharingController_InviteL2L();
       
    76 		void UT_CMusUiLiveSharingController_SetRectL();
       
    77 		void UT_CMusUiLiveSharingController_CancelInvitationLL();
       
    78 		void UT_CMusUiLiveSharingController_HandleCommandLL();
       
    79 		void UT_CMusUiLiveSharingController_PlayingL();
       
    80 		void UT_CMusUiLiveSharingController_CurrentZoomLL();
       
    81 		void UT_CMusUiLiveSharingController_MinZoomLL();
       
    82 		void UT_CMusUiLiveSharingController_MaxZoomLL();
       
    83 		    
       
    84 		//private:	// new functions:
       
    85 		    
       
    86 		void UT_CMusUiLiveSharingController_CenteredRectL();
       
    87 		void UT_CMusUiLiveSharingController_ZoomInLL();
       
    88 		void UT_CMusUiLiveSharingController_ZoomOutLL();
       
    89 		void UT_CMusUiLiveSharingController_SplitLL();
       
    90 		void UT_CMusUiLiveSharingController_ShowErrorDialogL();
       
    91 		void UT_CMusUiLiveSharingController_DismissWaitDialogL();
       
    92 
       
    93 		    
       
    94 		//public: // From MMusEngLiveSessionObserver
       
    95 
       
    96 		    // Empty so far
       
    97 			
       
    98 		//public: // from MMusEngOutSessionObserver
       
    99 			
       
   100 		void UT_CMusUiLiveSharingController_SessionRejectedL();                // e.g. 603 DECLINE
       
   101 		void UT_CMusUiLiveSharingController_SessionBadRequestL();                   // 400 
       
   102 		void UT_CMusUiLiveSharingController_SessionUnauthorizedL();                 // 401 
       
   103 		void UT_CMusUiLiveSharingController_SessionPaymentRequiredL();              // 402
       
   104 		void UT_CMusUiLiveSharingController_SessionRecipientNotFoundL();            // 404
       
   105 		void UT_CMusUiLiveSharingController_SessionProxyAuthenticationRequiredL();  // 407
       
   106 		void UT_CMusUiLiveSharingController_SessionRequestTimeOutL();               // 408
       
   107 		void UT_CMusUiLiveSharingController_SessionUnsupportedMediaTypeL();         // 415
       
   108 		void UT_CMusUiLiveSharingController_SessionRequestCancelledL();             // 487
       
   109 
       
   110 		//public:	// from MMusEngSessionObserver
       
   111 
       
   112 		void UT_CMusUiLiveSharingController_SessionEstablishedL();
       
   113 		void UT_CMusUiLiveSharingController_SessionTerminatedL();
       
   114 		void UT_CMusUiLiveSharingController_SessionConnectionLostL();
       
   115 		void UT_CMusUiLiveSharingController_SessionFailedL();
       
   116 		void UT_CMusUiLiveSharingController_StreamIdleL();
       
   117 		void UT_CMusUiLiveSharingController_StreamStreamingL();	
       
   118 		void UT_CMusUiLiveSharingController_SessionTimeChangedL();
       
   119 		void UT_CMusUiLiveSharingController_InactivityTimeoutL();
       
   120 
       
   121     private:    // Data
       
   122 
       
   123 	    CMusUiLiveSharingObserverAdapter* iLiveSharingObserverAdapter;
       
   124 	    CMusUiEventObserverAdapter* iEventObserver;
       
   125 
       
   126         CMusUiLiveSharingController* iLiveSharingController;
       
   127         CMusUiEventController* iEventController;
       
   128         
       
   129 
       
   130 
       
   131 
       
   132         EUNIT_DECLARE_TEST_TABLE;
       
   133 
       
   134     };
       
   135 
       
   136 #endif      //  __UT_MUSENGSESSION_H__
       
   137 
       
   138 // End of file