|
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_MCESIPEVENTHELPER_H__ |
|
22 #define __UT_MCESIPEVENTHELPER_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 #include "mmcetesteventobserver.h" |
|
27 |
|
28 // INTERNAL INCLUDES |
|
29 |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CMceComEvent; |
|
33 class CMceSipEvent; |
|
34 class CMceSipConnection; |
|
35 class CSIPProfile; |
|
36 |
|
37 |
|
38 // CLASS DEFINITION |
|
39 /** |
|
40 * |
|
41 * EUnitWizard generated test class. |
|
42 * |
|
43 */ |
|
44 class UT_MCESIPEventHelper |
|
45 : public CEUnitTestSuiteClass, |
|
46 public MMCETestEventObserver |
|
47 { |
|
48 public: // Constructors and destructors |
|
49 |
|
50 /** |
|
51 * Two phase construction |
|
52 */ |
|
53 static UT_MCESIPEventHelper* NewL(); |
|
54 static UT_MCESIPEventHelper* NewLC(); |
|
55 /** |
|
56 * Destructor |
|
57 */ |
|
58 ~UT_MCESIPEventHelper(); |
|
59 |
|
60 private: // Constructors and destructors |
|
61 |
|
62 UT_MCESIPEventHelper(); |
|
63 void ConstructL(); |
|
64 |
|
65 public: // From observer interface |
|
66 |
|
67 //From test event observer |
|
68 void IncomingSubscribeL( CDesC8Array* aHeaders, |
|
69 HBufC8* aContentType, |
|
70 HBufC8* aBody ); |
|
71 |
|
72 void IncomingReferL( HBufC8* aReferTo, |
|
73 CDesC8Array* aHeaders, |
|
74 HBufC8* aContentType, |
|
75 HBufC8* aBody ); |
|
76 |
|
77 void EventStateChangedL( TUint32 aState ); |
|
78 |
|
79 void NotifyReceivedL( CDesC8Array* aHeaders, |
|
80 HBufC8* aContentType, |
|
81 HBufC8* aBody ); |
|
82 |
|
83 |
|
84 |
|
85 private: // New methods |
|
86 |
|
87 void SetupL(); |
|
88 |
|
89 void SetupEmpty(); |
|
90 |
|
91 void Teardown(); |
|
92 |
|
93 void UT_MCESIPEventHelper_SetContentLCL(); |
|
94 |
|
95 void UT_MCESIPEventHelper_CreateMessageElementsLCL(); |
|
96 |
|
97 void UT_MCESIPEventHelper_CreateMessageElementsLC2L(); |
|
98 |
|
99 void UT_MCESIPEventHelper_CreateMessageElementsLC3L(); |
|
100 |
|
101 void UT_MCESIPEventHelper_CreateReferNotifyMessageElementsLCL(); |
|
102 |
|
103 void UT_MCESIPEventHelper_HandleSubscriptionStateHeaderLL(); |
|
104 |
|
105 void UT_MCESIPEventHelper_HandleSubscriptionStateHeaderL2L(); |
|
106 |
|
107 void UT_MCESIPEventHelper_HandleSubscriptionStateHeaderL3L(); |
|
108 |
|
109 void UT_MCESIPEventHelper_HandleSubscriptionStateHeaderL4L(); |
|
110 |
|
111 void UT_MCESIPEventHelper_HandleSubscriptionStateHeaderL5L(); |
|
112 |
|
113 void UT_MCESIPEventHelper_FindHeaderL(); |
|
114 |
|
115 void UT_MCESIPEventHelper_NotifyRequestReceivedLCL(); |
|
116 |
|
117 void UT_MCESIPEventHelper_NotifyRequestReceivedLC2L(); |
|
118 |
|
119 void UT_MCESIPEventHelper_NotifyRequestReceivedLC3L(); |
|
120 |
|
121 void UT_MCESIPEventHelper_ReferNotifyRequestReceivedLCL(); |
|
122 |
|
123 void UT_MCESIPEventHelper_ReferNotifyRequestReceivedLC2L(); |
|
124 |
|
125 void UT_MCESIPEventHelper_ReferNotifyRequestReceivedLC3L(); |
|
126 |
|
127 void UT_MCESIPEventHelper_SubscribeRequestReceivedLCL(); |
|
128 |
|
129 void UT_MCESIPEventHelper_HandleExpireHeaderLL(); |
|
130 |
|
131 void UT_MCESIPEventHelper_ResolveReferTypeLL(); |
|
132 |
|
133 void UT_MCESIPEventHelper_ResolveReferTypeL2L(); |
|
134 |
|
135 void UT_MCESIPEventHelper_ResolveReferTypeL3L(); |
|
136 |
|
137 void UT_MCESIPEventHelper_ResolveReferTypeL4L(); |
|
138 |
|
139 void UT_MCESIPEventHelper_MatchEventsL(); |
|
140 |
|
141 void UT_MCESIPEventHelper_MatchEventsLL(); |
|
142 |
|
143 void UT_MCESIPEventHelper_CreateResponseLL(); |
|
144 |
|
145 void UT_MCESIPEventHelper_CreateResponseL2L(); |
|
146 |
|
147 private: // Data |
|
148 |
|
149 CMceComEvent* iEvent; |
|
150 CMceSipEvent* iSIPEvent; |
|
151 CSIPProfile* iSipProfile; |
|
152 CMceSipConnection* iConnection; |
|
153 EUNIT_DECLARE_TEST_TABLE; |
|
154 |
|
155 }; |
|
156 |
|
157 #endif // __UT_MCESIPEVENTHELPER_H__ |
|
158 |
|
159 // End of file |