|
1 /* |
|
2 * Copyright (c) 2004 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 |
|
20 |
|
21 #ifndef __UT_CMccSYMSIMPLEDLSTREAM_H__ |
|
22 #define __UT_CMccSYMSIMPLEDLSTREAM_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 #include <mmf/common/mmfcontrollerframework.h> |
|
27 |
|
28 // INTERNAL INCLUDES |
|
29 #include "MccInternalDef.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CMccSymSimpleDlStream; |
|
33 class CMccRtpManager; |
|
34 class MDataSource; |
|
35 class MDataSink; |
|
36 class CMccTestEventHandler; |
|
37 class CMccResourcePoolStub; |
|
38 class CMccRtpMediaClock; |
|
39 |
|
40 #include <e32def.h> |
|
41 #ifndef NONSHARABLE_CLASS |
|
42 #define NONSHARABLE_CLASS(x) class x |
|
43 #endif |
|
44 |
|
45 // CLASS DEFINITION |
|
46 /** |
|
47 * |
|
48 * EUnitWizard generated test class. |
|
49 * |
|
50 */ |
|
51 NONSHARABLE_CLASS( UT_CMccSymSimpleDlStream ) |
|
52 : public CEUnitTestSuiteClass, |
|
53 public MAsyncEventHandler |
|
54 { |
|
55 public: // Constructors and destructors |
|
56 |
|
57 /** |
|
58 * Two phase construction |
|
59 */ |
|
60 static UT_CMccSymSimpleDlStream* NewL(); |
|
61 static UT_CMccSymSimpleDlStream* NewLC(); |
|
62 /** |
|
63 * Destructor |
|
64 */ |
|
65 ~UT_CMccSymSimpleDlStream(); |
|
66 |
|
67 private: // Constructors and destructors |
|
68 |
|
69 UT_CMccSymSimpleDlStream(); |
|
70 void ConstructL(); |
|
71 |
|
72 public: // From observer interface MAsyncEventHandler |
|
73 TInt SendEventToClient(const TMMFEvent& /*aEvent*/) |
|
74 { |
|
75 return KErrNone; |
|
76 } |
|
77 |
|
78 private: // New methods |
|
79 |
|
80 void SetupL(); |
|
81 |
|
82 void Teardown(); |
|
83 |
|
84 void UT_CMccSymSimpleDlStream_CreatePayloadFormatDecoderLL(); |
|
85 |
|
86 |
|
87 void UT_CMccSymSimpleDlStream_SetPrioritySettingsLL(); |
|
88 |
|
89 |
|
90 void UT_CMccSymSimpleDlStream_AddSinkAndSourceLL(); |
|
91 |
|
92 |
|
93 void UT_CMccSymSimpleDlStream_LoadCodecLL(); |
|
94 |
|
95 |
|
96 void UT_CMccSymSimpleDlStream_UpdateCodecInformationLL(); |
|
97 |
|
98 |
|
99 void UT_CMccSymSimpleDlStream_PrimeLL(); |
|
100 |
|
101 |
|
102 void UT_CMccSymSimpleDlStream_PlayLL(); |
|
103 |
|
104 |
|
105 void UT_CMccSymSimpleDlStream_PauseLL(); |
|
106 |
|
107 |
|
108 void UT_CMccSymSimpleDlStream_ResumeLL(); |
|
109 |
|
110 |
|
111 void UT_CMccSymSimpleDlStream_StopLL(); |
|
112 |
|
113 |
|
114 void UT_CMccSymSimpleDlStream_SetBalanceLL(); |
|
115 |
|
116 |
|
117 void UT_CMccSymSimpleDlStream_GetBalanceLL(); |
|
118 |
|
119 |
|
120 void UT_CMccSymSimpleDlStream_GetSSRCLL(); |
|
121 |
|
122 |
|
123 void UT_CMccSymSimpleDlStream_ResetCountersLL(); |
|
124 |
|
125 |
|
126 void UT_CMccSymSimpleDlStream_SendRTCPReceiverReportLL(); |
|
127 |
|
128 |
|
129 void UT_CMccSymSimpleDlStream_SendRTCPSenderReportLL(); |
|
130 |
|
131 |
|
132 void UT_CMccSymSimpleDlStream_SendRTCPReceiverReportL(); |
|
133 |
|
134 |
|
135 void UT_CMccSymSimpleDlStream_StartInactivityTimerLL(); |
|
136 |
|
137 |
|
138 void UT_CMccSymSimpleDlStream_StopInactivityTimerLL(); |
|
139 |
|
140 |
|
141 void UT_CMccSymSimpleDlStream_IsUplinkL(); |
|
142 |
|
143 |
|
144 void UT_CMccSymSimpleDlStream_StandByLL(); |
|
145 |
|
146 |
|
147 void UT_CMccSymSimpleDlStream_JitterBufferErrorL(); |
|
148 |
|
149 void UT_CMccSymSimpleDlStream_SendEventToClientL(); |
|
150 |
|
151 |
|
152 private: // Data |
|
153 |
|
154 EUNIT_DECLARE_TEST_TABLE; |
|
155 CMccSymSimpleDlStream* iSimpleDlStream; |
|
156 CMccRtpManager* iRtpManager; |
|
157 TUint32 iStreamId; |
|
158 MDataSource* iSourceStub; |
|
159 MDataSink* iSinkStub; |
|
160 CMccTestEventHandler* iEventHandler; |
|
161 |
|
162 CMccResourcePoolStub* iResources; |
|
163 |
|
164 TUint32 iMccSessionId; |
|
165 |
|
166 }; |
|
167 |
|
168 #endif // __UT_CMccSYMSIMPLEDLSTREAM_H__ |
|
169 |
|
170 // End of file |