|
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_CMCEEVENTSUBSCRIBEMOESTABLISHINGSTATE_H__ |
|
22 #define __UT_CMCEEVENTSUBSCRIBEMOESTABLISHINGSTATE_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 CMceEventSubscribeMoEstablishingState; |
|
32 class CMceComEvent; |
|
33 class CMceSipEvent; |
|
34 class CMceSipConnection; |
|
35 class CSIPProfile; |
|
36 |
|
37 // CLASS DEFINITION |
|
38 /** |
|
39 * |
|
40 * EUnitWizard generated test class. |
|
41 * |
|
42 */ |
|
43 class UT_CMceEventSubscribeMoEstablishingState |
|
44 : public CEUnitTestSuiteClass, |
|
45 public MMCETestEventObserver |
|
46 |
|
47 { |
|
48 public: // Constructors and destructors |
|
49 |
|
50 /** |
|
51 * Two phase construction |
|
52 */ |
|
53 static UT_CMceEventSubscribeMoEstablishingState* NewL(); |
|
54 static UT_CMceEventSubscribeMoEstablishingState* NewLC(); |
|
55 /** |
|
56 * Destructor |
|
57 */ |
|
58 ~UT_CMceEventSubscribeMoEstablishingState(); |
|
59 |
|
60 private: // Constructors and destructors |
|
61 |
|
62 UT_CMceEventSubscribeMoEstablishingState(); |
|
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 private: // New methods |
|
84 |
|
85 void SetupL(); |
|
86 |
|
87 void SetupEmptyL(); |
|
88 |
|
89 void Teardown(); |
|
90 |
|
91 void UT_CMceEventSubscribeMoEstablishingState_HandleLL(); |
|
92 |
|
93 void UT_CMceEventSubscribeMoEstablishingState_HandleReceiveRequestLL(); |
|
94 |
|
95 void UT_CMceEventSubscribeMoEstablishingState_HandleResponseReceivedLL(); |
|
96 |
|
97 void UT_CMceEventSubscribeMoEstablishingState_HandleResponseReceivedL2L(); |
|
98 |
|
99 void UT_CMceEventSubscribeMoEstablishingState_HandleResponseReceivedL3L(); |
|
100 |
|
101 void UT_CMceEventSubscribeMoEstablishingState_HandleResponseReceivedL4L(); |
|
102 |
|
103 |
|
104 private: // Data |
|
105 |
|
106 CMceEventSubscribeMoEstablishingState* iState; |
|
107 CMceSipEvent* iSIPEvent; |
|
108 CMceComEvent* iEvent; |
|
109 CSIPProfile* iSipProfile; |
|
110 CMceSipConnection* iConnection; |
|
111 TUint iEventState; |
|
112 |
|
113 EUNIT_DECLARE_TEST_TABLE; |
|
114 friend class CMceSipEvent; |
|
115 |
|
116 }; |
|
117 |
|
118 #endif // __UT_CMCEEVENTSUBSCRIBEMOESTABLISHINGSTATE_H__ |
|
119 |
|
120 // End of file |