|
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_MUSUIRECEIVECONTROLLER_H__ |
|
20 #define __UT_MUSUIRECEIVECONTROLLER_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMusUiReceiveObserverAdapter; |
|
29 class CMusUiReceiveController; |
|
30 class CMusUiEventObserverAdapter; |
|
31 class CMusUiEventController; |
|
32 |
|
33 |
|
34 |
|
35 // CLASS DEFINITION |
|
36 /** |
|
37 * Tester class for CMusEngSession. |
|
38 * Since CMusEngSession is abstract, it is tested via object of its' |
|
39 * concrete descendant class CMusEngLiveSession. Only concrete |
|
40 * implementations are tested in this tester class. |
|
41 * |
|
42 */ |
|
43 NONSHARABLE_CLASS( UT_CMusUiReceiveController ): public CEUnitTestSuiteClass |
|
44 { |
|
45 public: // Constructors and destructors |
|
46 |
|
47 /** |
|
48 * Two phase construction |
|
49 */ |
|
50 static UT_CMusUiReceiveController* NewL(); |
|
51 static UT_CMusUiReceiveController* NewLC(); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 ~UT_CMusUiReceiveController(); |
|
57 |
|
58 private: // Constructors and destructors |
|
59 |
|
60 UT_CMusUiReceiveController(); |
|
61 void ConstructL(); |
|
62 |
|
63 private: // Test case setup and teardown |
|
64 |
|
65 void SetupL(); |
|
66 |
|
67 void Teardown(); |
|
68 |
|
69 private: // Test methods |
|
70 |
|
71 void UT_CMusUiReceiveController_HandleCommandLL(); |
|
72 void UT_CMusUiReceiveController_SizeChangedL(); |
|
73 void UT_CMusUiReceiveController_ShowErrorDialogLL(); |
|
74 void UT_CMusUiReceiveController_HandleIncomingSessionLL(); |
|
75 void UT_CMusUiReceiveController_CancelInvitationLL(); |
|
76 |
|
77 public: // from CMusUiEventController |
|
78 |
|
79 void UT_CMusUiReceiveController_ContinueInvitationLL(); |
|
80 void UT_CMusUiReceiveController_HandleAsyncEventLL(); |
|
81 void UT_CMusUiReceiveController_ConnectionEstablishedL(); |
|
82 void UT_CMusUiReceiveController_PlayLL(); |
|
83 void UT_CMusUiReceiveController_PauseLL(); |
|
84 void UT_CMusUiReceiveController_EnableDisplayLL(); |
|
85 void UT_CMusUiReceiveController_ShowNaviPaneIconLL(); |
|
86 void UT_CMusUiReceiveController_ChangeOrientationLL(); |
|
87 void UT_CMusUiReceiveController_CenteredRectL(); |
|
88 void UT_CMusUiReceiveController_ManualAddressTypedL(); |
|
89 void UT_CMusUiReceiveController_ShowInformationDialogLL(); |
|
90 void UT_CMusUiReceiveController_ShutdownLL(); |
|
91 |
|
92 public: // from MMusEngReceiveSessionObserver |
|
93 |
|
94 void UT_CMusUiReceiveController_IncomingSessionL(); |
|
95 void UT_CMusUiReceiveController_StreamBufferingL(); |
|
96 |
|
97 public: // from MMusEngSessionObserver |
|
98 |
|
99 void UT_CMusUiReceiveController_SessionEstablishedL(); |
|
100 void UT_CMusUiReceiveController_SessionTerminatedL(); |
|
101 void UT_CMusUiReceiveController_SessionConnectionLostL(); |
|
102 void UT_CMusUiReceiveController_SessionFailedL(); |
|
103 void UT_CMusUiReceiveController_StreamIdleL(); |
|
104 void UT_CMusUiReceiveController_StreamStreamingL(); |
|
105 void UT_CMusUiReceiveController_SessionTimeChangedL(); |
|
106 void UT_CMusUiReceiveController_InactivityTimeoutL(); |
|
107 |
|
108 public: // from MMusUiInvitationQueryObserver |
|
109 |
|
110 void UT_CMusUiReceiveController_InvitationAcceptedLL(); |
|
111 void UT_CMusUiReceiveController_InvitationRejectedLL(); |
|
112 |
|
113 private: // new functions: |
|
114 |
|
115 void UT_CMusUiReceiveController_UpdateStatusPaneLL(); |
|
116 void UT_CMusUiReceiveController_InspectVideoPlayerLL(); |
|
117 void UT_CMusUiReceiveController_ShowWaitDialogLL(); |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 private: // Data |
|
124 |
|
125 CMusUiReceiveObserverAdapter* iReceiveObserverAdapter; |
|
126 CMusUiEventObserverAdapter* iEventObserver; |
|
127 |
|
128 CMusUiReceiveController* iReceiveController; |
|
129 CMusUiEventController* iEventController; |
|
130 |
|
131 |
|
132 EUNIT_DECLARE_TEST_TABLE; |
|
133 |
|
134 }; |
|
135 |
|
136 #endif // __UT_MUSENGSESSION_H__ |
|
137 |
|
138 // End of file |