|
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_MUSUIEVENTCONTROLLER_H__ |
|
20 #define __UT_MUSUIEVENTCONTROLLER_H__ |
|
21 |
|
22 |
|
23 // EXTERNAL INCLUDES |
|
24 #include <digia/eunit/ceunittestsuiteclass.h> |
|
25 #include <digia/eunit/eunitmacros.h> |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 //class CMusEngLiveSession; |
|
30 //class CMusEngObserverStub; |
|
31 class CMusUiEventController; |
|
32 class CMusUiLiveSharingController; |
|
33 class CMusUiEventObserverAdapter; |
|
34 class CMusUiLiveSharingObserverAdapter; |
|
35 |
|
36 // CLASS DEFINITION |
|
37 /** |
|
38 * Tester class for CMusEngSession. |
|
39 * Since CMusEngSession is abstract, it is tested via object of its' |
|
40 * concrete descendant class CMusEngLiveSession. Only concrete |
|
41 * implementations are tested in this tester class. |
|
42 * |
|
43 */ |
|
44 NONSHARABLE_CLASS( UT_CMusUiEventController ): public CEUnitTestSuiteClass |
|
45 { |
|
46 public: // Constructors and destructors |
|
47 |
|
48 /** |
|
49 * Two phase construction |
|
50 */ |
|
51 static UT_CMusUiEventController* NewL(); |
|
52 static UT_CMusUiEventController* NewLC(); |
|
53 |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 ~UT_CMusUiEventController(); |
|
58 |
|
59 private: // Constructors and destructors |
|
60 |
|
61 UT_CMusUiEventController(); |
|
62 void ConstructL(); |
|
63 |
|
64 private: // Test case setup and teardown |
|
65 |
|
66 void SetupL(); |
|
67 |
|
68 void Teardown(); |
|
69 |
|
70 private: // Test methods |
|
71 |
|
72 |
|
73 public: // From MMusUiPropertyObserver |
|
74 |
|
75 void UT_CMusUiEventController_ResourcePropertyChangedL(); |
|
76 |
|
77 void UT_CMusUiEventController_SessionPropertyChangedL(); |
|
78 |
|
79 void UT_CMusUiEventController_SessionPropertyChanged2L(); |
|
80 |
|
81 void UT_CMusUiEventController_HandleErrorL(); |
|
82 |
|
83 |
|
84 public: // From MMusUiBitmapDecoderObserver |
|
85 |
|
86 void UT_CMusUiEventController_UpdateBitmapL(); |
|
87 |
|
88 |
|
89 public: // New functions |
|
90 |
|
91 void UT_CMusUiEventController_SetEventObserverL(); |
|
92 |
|
93 void UT_CMusUiEventController_HandleForegroundEventLL(); |
|
94 |
|
95 void UT_CMusUiEventController_SetCameraStatusL(); |
|
96 |
|
97 void UT_CMusUiEventController_SetKeypadStatusL(); |
|
98 |
|
99 void UT_CMusUiEventController_SetVideoPlayerStatusL(); |
|
100 |
|
101 void UT_CMusUiEventController_SetCameraAvailabilityInProgressL(); |
|
102 |
|
103 void UT_CMusUiEventController_CameraAvailableL(); |
|
104 |
|
105 void UT_CMusUiEventController_KeypadAvailableL(); |
|
106 |
|
107 void UT_CMusUiEventController_VideoPlayerAvailableL(); |
|
108 |
|
109 void UT_CMusUiEventController_CameraAvailibilityInProgressL(); |
|
110 |
|
111 void UT_CMusUiEventController_MusRemoteSipAddressValueL(); |
|
112 |
|
113 void UT_CMusUiEventController_MusProposalAddressValueL(); |
|
114 |
|
115 void UT_CMusUiEventController_MusContactNameL(); |
|
116 |
|
117 void UT_CMusUiEventController_MusContactBitmapL(); |
|
118 |
|
119 void UT_CMusUiEventController_MusVideoCodecValueL(); |
|
120 |
|
121 void UT_CMusUiEventController_MusTelNumberValueL(); |
|
122 |
|
123 void UT_CMusUiEventController_SipProfileIdL(); |
|
124 |
|
125 void UT_CMusUiEventController_SipRegistrationPendingL(); |
|
126 |
|
127 void UT_CMusUiEventController_SessionTimeFormattedL(); |
|
128 |
|
129 void UT_CMusUiEventController_SaveContactL(); |
|
130 |
|
131 void UT_CMusUiEventController_HandleExitLL(); |
|
132 |
|
133 void UT_CMusUiEventController_InspectKeypadLL(); |
|
134 |
|
135 void UT_CMusUiEventController_UpdateContactLL(); |
|
136 |
|
137 void UT_CMusUiEventController_UpdateContactNameL(); |
|
138 |
|
139 void UT_CMusUiEventController_UpdateContactPictureLL(); |
|
140 |
|
141 void UT_CMusUiEventController_HandleChangedStatusLL(); |
|
142 |
|
143 |
|
144 private: // Data |
|
145 |
|
146 |
|
147 CMusUiLiveSharingObserverAdapter* iLiveSharingObserverAdapter; |
|
148 CMusUiEventObserverAdapter* iEventObserver; |
|
149 |
|
150 CMusUiLiveSharingController* iLiveSharingController; |
|
151 CMusUiEventController* iEventController; |
|
152 |
|
153 |
|
154 HBufC* _iReturnValue; |
|
155 HBufC* iVideoFolder; |
|
156 |
|
157 EUNIT_DECLARE_TEST_TABLE; |
|
158 |
|
159 }; |
|
160 |
|
161 #endif // __UT_MUSENGSESSION_H__ |
|
162 |
|
163 // End of file |