|
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_CMCEEVENTREFERMTESTABLISHINGSTATE_H__ |
|
22 #define __UT_CMCEEVENTREFERMTESTABLISHINGSTATE_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 #include "MMCETestEventObserver.h" |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CMceEventReferMtEstablishingState; |
|
32 class CMceComEvent; |
|
33 class CMceSipEvent; |
|
34 class CSIPMessageElements; |
|
35 class CMceSipConnection; |
|
36 class CSIPProfile; |
|
37 |
|
38 |
|
39 // CLASS DEFINITION |
|
40 /** |
|
41 * |
|
42 * EUnitWizard generated test class. |
|
43 * |
|
44 */ |
|
45 class UT_CMceEventReferMtEstablishingState |
|
46 : public CEUnitTestSuiteClass, |
|
47 public MMCETestEventObserver |
|
48 |
|
49 { |
|
50 public: // Constructors and destructors |
|
51 |
|
52 /** |
|
53 * Two phase construction |
|
54 */ |
|
55 static UT_CMceEventReferMtEstablishingState* NewL(); |
|
56 static UT_CMceEventReferMtEstablishingState* NewLC(); |
|
57 /** |
|
58 * Destructor |
|
59 */ |
|
60 ~UT_CMceEventReferMtEstablishingState(); |
|
61 |
|
62 private: // Constructors and destructors |
|
63 |
|
64 UT_CMceEventReferMtEstablishingState(); |
|
65 void ConstructL(); |
|
66 |
|
67 public: // From observer interface |
|
68 |
|
69 //From test event observer |
|
70 void IncomingSubscribeL( CDesC8Array* aHeaders, |
|
71 HBufC8* aContentType, |
|
72 HBufC8* aBody ); |
|
73 |
|
74 void IncomingReferL( HBufC8* aReferTo, |
|
75 CDesC8Array* aHeaders, |
|
76 HBufC8* aContentType, |
|
77 HBufC8* aBody ); |
|
78 |
|
79 void EventStateChangedL( TUint32 aState ); |
|
80 |
|
81 void NotifyReceivedL( CDesC8Array* aHeaders, |
|
82 HBufC8* aContentType, |
|
83 HBufC8* aBody ); |
|
84 |
|
85 |
|
86 private: // New methods |
|
87 |
|
88 private: // New methods |
|
89 |
|
90 void SetupL(); |
|
91 |
|
92 void SetupFullL(); |
|
93 |
|
94 void SetupEmptyL(); |
|
95 |
|
96 void Teardown(); |
|
97 |
|
98 void UT_CMceEventReferMtEstablishingState_HandleLL(); |
|
99 |
|
100 void UT_CMceEventReferMtEstablishingState_HandleL2L(); |
|
101 |
|
102 void UT_CMceEventReferMtEstablishingState_HandleL3L(); |
|
103 |
|
104 void UT_CMceEventReferMtEstablishingState_HandleL4L(); |
|
105 |
|
106 void UT_CMceEventReferMtEstablishingState_HandleL5L(); |
|
107 |
|
108 void UT_CMceEventReferMtEstablishingState_HandleL6L(); |
|
109 |
|
110 void UT_CMceEventReferMtEstablishingState_HandleReceiveRequestLL(); |
|
111 |
|
112 void UT_CMceEventReferMtEstablishingState_HandleResponseReceivedLL(); |
|
113 |
|
114 void UT_CMceEventReferMtEstablishingState_HandleResponseReceivedL2L(); |
|
115 |
|
116 void UT_CMceEventReferMtEstablishingState_HandleResponseReceivedL3L(); |
|
117 |
|
118 void UT_CMceEventReferMtEstablishingState_HandleResponseReceivedL4L(); |
|
119 |
|
120 |
|
121 private: // Data |
|
122 |
|
123 CMceEventReferMtEstablishingState* iState; |
|
124 CMceSipEvent* iSIPEvent; |
|
125 CMceComEvent* iEvent; |
|
126 CSIPProfile* iSipProfile; |
|
127 CMceSipConnection* iConnection; |
|
128 CSIPMessageElements* iMsgElem; // not owned |
|
129 TUint iEventState; |
|
130 |
|
131 EUNIT_DECLARE_TEST_TABLE; |
|
132 friend class CMceSipEvent; |
|
133 |
|
134 }; |
|
135 |
|
136 #endif // __UT_CMCEEVENTREFERMTESTABLISHINGSTATE_H__ |
|
137 |
|
138 // End of file |