|
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_CFCPLUGINENGINE_H__ |
|
22 #define __UT_CFCPLUGINENGINE_H__ |
|
23 |
|
24 // EXTERNAL INCLUDES |
|
25 #include <digia/eunit/ceunittestsuiteclass.h> |
|
26 |
|
27 // INTERNAL INCLUDES |
|
28 #include "fcobserver.h" |
|
29 #include "fcsession.h" |
|
30 // FORWARD DECLARATIONS |
|
31 class CFCPlugInEngine; |
|
32 class MFCObserver; |
|
33 // CLASS DEFINITION |
|
34 /** |
|
35 * |
|
36 * EUnitWizard generated test class. |
|
37 * |
|
38 */ |
|
39 class UT_CFCPlugInEngine |
|
40 : public CEUnitTestSuiteClass, |
|
41 public MFCObserver |
|
42 { |
|
43 public: // Constructors and destructors |
|
44 |
|
45 /** |
|
46 * Two phase construction |
|
47 */ |
|
48 static UT_CFCPlugInEngine* NewL(); |
|
49 static UT_CFCPlugInEngine* NewLC(); |
|
50 /** |
|
51 * Destructor |
|
52 */ |
|
53 ~UT_CFCPlugInEngine(); |
|
54 |
|
55 private: // Constructors and destructors |
|
56 |
|
57 UT_CFCPlugInEngine(); |
|
58 void ConstructL(); |
|
59 |
|
60 public: // From observer interface |
|
61 |
|
62 |
|
63 |
|
64 private: // New methods |
|
65 |
|
66 void SetupL(); |
|
67 |
|
68 |
|
69 void Teardown(); |
|
70 |
|
71 |
|
72 void UT_CFCPlugInEngine_NewLL(); |
|
73 |
|
74 |
|
75 void UT_CFCPlugInEngine_NewLCL(); |
|
76 |
|
77 |
|
78 void UT_CFCPlugInEngine_FCPlugInIterL(); |
|
79 |
|
80 |
|
81 void UT_CFCPlugInEngine_ListMechanismImplementationsLL(); |
|
82 |
|
83 |
|
84 void UT_CFCPlugInEngine_SupportedProtocolLL(); |
|
85 |
|
86 |
|
87 void UT_CFCPlugInEngine_PlugInByNameLL(); |
|
88 |
|
89 |
|
90 void UT_CFCPlugInEngine_CreateNewSessionLL(); |
|
91 |
|
92 |
|
93 void UT_CFCPlugInEngine_ReleaseSessionL(); |
|
94 |
|
95 |
|
96 void UT_CFCPlugInEngine_FormatAttributeFieldsL(); |
|
97 |
|
98 |
|
99 void UT_CFCPlugInEngine_SetFormatAttributeFieldsLL(); |
|
100 |
|
101 |
|
102 void UT_CFCPlugInEngine_PeekDocumentLL(); |
|
103 |
|
104 |
|
105 void UT_CFCPlugInEngine_UpdateOfferLL(); |
|
106 |
|
107 |
|
108 void UT_CFCPlugInEngine_UpdateAnswerLL(); |
|
109 |
|
110 |
|
111 void UT_CFCPlugInEngine_StartConnectionLL(); |
|
112 |
|
113 |
|
114 void UT_CFCPlugInEngine_IsReceiverLL(); |
|
115 |
|
116 |
|
117 void UT_CFCPlugInEngine_SendToNetLL(); |
|
118 |
|
119 |
|
120 void UT_CFCPlugInEngine_UpdateSessionLL(); |
|
121 |
|
122 |
|
123 void UT_CFCPlugInEngine_SetSessionPortLL(); |
|
124 |
|
125 |
|
126 void UT_CFCPlugInEngine_ReceivedDataL(); |
|
127 |
|
128 |
|
129 void UT_CFCPlugInEngine_ErrorNotifyL(); |
|
130 |
|
131 |
|
132 void UT_CFCPlugInEngine_ArrayCleanupL(); |
|
133 |
|
134 |
|
135 void FCReceivedData(HBufC8* aData, const CFCSession* aFCSession); |
|
136 |
|
137 |
|
138 void FCErrorNotify(TInt aErrCode, const CFCSession* aFCSession) ; |
|
139 |
|
140 |
|
141 private: // Data |
|
142 |
|
143 EUNIT_DECLARE_TEST_TABLE; |
|
144 TInt iErr; |
|
145 HBufC8* iData; |
|
146 CFCSession* iSession; |
|
147 CFCPlugInEngine* iEngine; |
|
148 }; |
|
149 |
|
150 #endif // __UT_CFCPLUGINENGINE_H__ |
|
151 |
|
152 // End of file |