|
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_CMccFILEAUDIO_H__ |
|
22 #define __UT_CMccFILEAUDIO_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 #include <3gplibrary/mp4lib.h> |
|
27 |
|
28 // INTERNAL INCLUDES |
|
29 |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CMccFileAudio; |
|
33 class CMccFileVideo; |
|
34 class CMccFileSourceImpl; |
|
35 class CMMFDataBuffer; |
|
36 class CMccUlDataPath; |
|
37 class CMccUlDataPath; |
|
38 class CMccFrameItem; |
|
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_CMccFileAudio ) |
|
52 : public CEUnitTestSuiteClass |
|
53 { |
|
54 public: // Constructors and destructors |
|
55 |
|
56 /** |
|
57 * Two phase construction |
|
58 */ |
|
59 static UT_CMccFileAudio* NewL(); |
|
60 static UT_CMccFileAudio* NewLC(); |
|
61 /** |
|
62 * Destructor |
|
63 */ |
|
64 ~UT_CMccFileAudio(); |
|
65 |
|
66 private: // Constructors and destructors |
|
67 |
|
68 UT_CMccFileAudio(); |
|
69 void ConstructL(); |
|
70 |
|
71 public: // From observer interface |
|
72 |
|
73 |
|
74 |
|
75 private: // New methods |
|
76 |
|
77 void SetupL(); |
|
78 void Setup2L(); |
|
79 void Setup3L(); |
|
80 void Teardown(); |
|
81 |
|
82 void UT_CMccFileAudio_NewLL(); |
|
83 |
|
84 |
|
85 void UT_CMccFileAudio_SetPositionLL(); |
|
86 |
|
87 |
|
88 void UT_CMccFileAudio_TypeL(); |
|
89 |
|
90 |
|
91 void UT_CMccFileAudio_PositionLL(); |
|
92 |
|
93 |
|
94 void UT_CMccFileAudio_DurationLL(); |
|
95 |
|
96 |
|
97 void UT_CMccFileAudio_AudioBitRateLL(); |
|
98 |
|
99 |
|
100 void UT_CMccFileAudio_VideoFrameSizeLL(); |
|
101 |
|
102 |
|
103 void UT_CMccFileAudio_VideoFrameRateLL(); |
|
104 |
|
105 |
|
106 void UT_CMccFileAudio_StartTimerL(); |
|
107 |
|
108 |
|
109 void UT_CMccFileAudio_StopTimerL(); |
|
110 |
|
111 |
|
112 void UT_CMccFileAudio_GetFourCCL(); |
|
113 |
|
114 |
|
115 void UT_CMccFileAudio_ResetTimeL(); |
|
116 |
|
117 |
|
118 void UT_CMccFileAudio_TickAudioLL(); |
|
119 |
|
120 |
|
121 void UT_CMccFileAudio_ReadFrameLL(); |
|
122 |
|
123 void UT_CMccFileAudio_ReadFrameL2L(); |
|
124 |
|
125 void UT_CMccFileAudio_ParseUpdateAudioDescriptionsL(); |
|
126 |
|
127 void UT_CMccFileAudio_GetFrameLengthL(); |
|
128 |
|
129 void UT_CMccFileAudio_SetStartTimeL(); |
|
130 |
|
131 void UT_CMccFileAudio_IsPausedL(); |
|
132 |
|
133 void UT_CMccFileSink_GetTimeStampL(); |
|
134 |
|
135 void UT_CMccFileAudio_FillBufferL(); |
|
136 |
|
137 void UT_CMccFileAudio_WriteBufferL(); |
|
138 |
|
139 void UT_CMccFileAudio_TimingCorrectionL(); |
|
140 |
|
141 void UT_CMccFileAudio_ConfigKeyL(); |
|
142 |
|
143 private: |
|
144 |
|
145 static CMccFrameItem* CreateFrameItemLC( TInt aSize ); |
|
146 |
|
147 private: // Data |
|
148 |
|
149 EUNIT_DECLARE_TEST_TABLE; |
|
150 |
|
151 CMccFileAudio* iAudio; |
|
152 CMccFileVideo* iVideo; |
|
153 MP4Handle iMP4Handle; |
|
154 CMccFileSourceImpl* iFileSourceImpl; |
|
155 CMMFDataBuffer* iBuffer; |
|
156 CMccUlDataPath* iAudioULDPStub; |
|
157 CMccUlDataPath* iVideoULDPStub; |
|
158 |
|
159 |
|
160 }; |
|
161 |
|
162 #endif // __UT_CMccFILEAUDIO_H__ |
|
163 |
|
164 // End of file |