|
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_CMccJitterCalculator_H__ |
|
22 #define __UT_CMccJitterCalculator_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 #include "mccjittercalculator.h" |
|
29 #include "mmccevents.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * |
|
36 * EUnitWizard generated test class. |
|
37 * |
|
38 */ |
|
39 class UT_CMccJitterCalculator |
|
40 : public CEUnitTestSuiteClass, public MRtpJitterObserver |
|
41 { |
|
42 public: // Constructors and destructors |
|
43 |
|
44 /** |
|
45 * Two phase construction |
|
46 */ |
|
47 static UT_CMccJitterCalculator* NewL(); |
|
48 static UT_CMccJitterCalculator* NewLC(); |
|
49 /** |
|
50 * Destructor |
|
51 */ |
|
52 ~UT_CMccJitterCalculator(); |
|
53 |
|
54 private: // Constructors and destructors |
|
55 |
|
56 UT_CMccJitterCalculator(); |
|
57 void ConstructL(); |
|
58 |
|
59 public: // From observer interface |
|
60 |
|
61 void SendJitterEvent( TMccRtpEventData aEvent, TInt aError ); |
|
62 |
|
63 public: // Helpers |
|
64 |
|
65 private: // New methods |
|
66 |
|
67 void SetupL(); |
|
68 |
|
69 void Teardown(); |
|
70 |
|
71 void UT_CMccJitterCalculator_StartObservingL(); |
|
72 |
|
73 void UT_CMccJitterCalculator_JitterObservingL(); |
|
74 |
|
75 void UT_CMccJitterCalculator_RtpPacketReceivedL(); |
|
76 |
|
77 |
|
78 private: // Data |
|
79 |
|
80 CMccJitterCalculator* iCalculator; |
|
81 TMccRtpEventData iLastEvent; |
|
82 TInt iLastError; |
|
83 |
|
84 EUNIT_DECLARE_TEST_TABLE; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // __UT_CMccJitterCalculator_H__ |
|
89 |
|
90 // End of file |