|
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_MUSUICLIPSHARINGCONTROLLER_H__ |
|
20 #define __UT_MUSUICLIPSHARINGCONTROLLER_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMusUiClipSharingObserverAdapter; |
|
29 class CMusUiClipSharingController; |
|
30 class CMusUiEventObserverAdapter; |
|
31 class CMusUiEventController; |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * Tester class for CMusEngSession. |
|
36 * Since CMusEngSession is abstract, it is tested via object of its' |
|
37 * concrete descendant class CMusEngLiveSession. Only concrete |
|
38 * implementations are tested in this tester class. |
|
39 * |
|
40 */ |
|
41 NONSHARABLE_CLASS( UT_CMusUiClipSharingController ): public CEUnitTestSuiteClass |
|
42 { |
|
43 public: // Constructors and destructors |
|
44 |
|
45 /** |
|
46 * Two phase construction |
|
47 */ |
|
48 static UT_CMusUiClipSharingController* NewL(); |
|
49 static UT_CMusUiClipSharingController* NewLC(); |
|
50 |
|
51 /** |
|
52 * Destructor |
|
53 */ |
|
54 ~UT_CMusUiClipSharingController(); |
|
55 |
|
56 private: // Constructors and destructors |
|
57 |
|
58 UT_CMusUiClipSharingController(); |
|
59 void ConstructL(); |
|
60 |
|
61 private: // Test case setup and teardown |
|
62 |
|
63 void SetupL(); |
|
64 |
|
65 void Teardown(); |
|
66 |
|
67 private: // Test methods |
|
68 |
|
69 |
|
70 void UT_CMusUiClipSharingController_StartInvitationLL(); |
|
71 void UT_CMusUiClipSharingController_AddressFoundLL(); |
|
72 void UT_CMusUiClipSharingController_InviteLL(); |
|
73 void UT_CMusUiClipSharingController_InviteL2L(); |
|
74 void UT_CMusUiClipSharingController_SetRectL(); |
|
75 void UT_CMusUiClipSharingController_CancelInvitationLL(); |
|
76 void UT_CMusUiClipSharingController_HandleCommandLL(); |
|
77 void UT_CMusUiClipSharingController_PlayingL(); |
|
78 void UT_CMusUiClipSharingController_SetFileNameLL(); |
|
79 void UT_CMusUiClipSharingController_ClipEndedL(); |
|
80 void UT_CMusUiClipSharingController_ZoomInLL(); |
|
81 void UT_CMusUiClipSharingController_ZoomOutLL(); |
|
82 void UT_CMusUiClipSharingController_SplitLL(); |
|
83 void UT_CMusUiClipSharingController_ShowErrorDialogL(); |
|
84 void UT_CMusUiClipSharingController_DismissWaitDialogL(); |
|
85 void UT_CMusUiClipSharingController_EndOfClipL(); |
|
86 void UT_CMusUiClipSharingController_SessionRejectedL(); |
|
87 void UT_CMusUiClipSharingController_SessionBadRequestL(); |
|
88 void UT_CMusUiClipSharingController_SessionUnauthorizedL(); |
|
89 void UT_CMusUiClipSharingController_SessionPaymentRequiredL(); |
|
90 void UT_CMusUiClipSharingController_SessionRecipientNotFoundL(); |
|
91 void UT_CMusUiClipSharingController_SessionProxyAuthenticationRequiredL(); |
|
92 void UT_CMusUiClipSharingController_SessionRequestTimeOutL(); |
|
93 void UT_CMusUiClipSharingController_SessionUnsupportedMediaTypeL(); |
|
94 void UT_CMusUiClipSharingController_SessionRequestCancelledL(); |
|
95 void UT_CMusUiClipSharingController_SessionEstablishedL(); |
|
96 void UT_CMusUiClipSharingController_SessionTerminatedL(); |
|
97 void UT_CMusUiClipSharingController_SessionConnectionLostL(); |
|
98 void UT_CMusUiClipSharingController_SessionFailedL(); |
|
99 void UT_CMusUiClipSharingController_StreamIdleL(); |
|
100 void UT_CMusUiClipSharingController_StreamStreamingL(); |
|
101 void UT_CMusUiClipSharingController_SessionTimeChangedL(); |
|
102 void UT_CMusUiClipSharingController_InactivityTimeoutL(); |
|
103 |
|
104 |
|
105 private: // Data |
|
106 |
|
107 CMusUiClipSharingObserverAdapter* iClipSharingObserverAdapter; |
|
108 CMusUiEventObserverAdapter* iEventObserver; |
|
109 |
|
110 CMusUiClipSharingController* iClipSharingController; |
|
111 CMusUiEventController* iEventController; |
|
112 |
|
113 |
|
114 EUNIT_DECLARE_TEST_TABLE; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // __UT_MUSENGSESSION_H__ |
|
119 |
|
120 // End of file |