|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The TEFUnit header file which tests the PacketService |
|
15 // functional unit of the Common TSY. |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef CCTSYPACKETSERVICEFU_H |
|
20 #define CCTSYPACKETSERVICEFU_H |
|
21 |
|
22 #include <test/tefunit.h> |
|
23 |
|
24 #include <etelmm.h> |
|
25 #include <etelmmcs.h> |
|
26 |
|
27 #include "pcktretrieve.h" |
|
28 |
|
29 #include "cctsycomponenttestbase.h" |
|
30 |
|
31 const TInt KMaxSessionsInSet1 = 3; |
|
32 const TInt KMaxSessionsInSet2 = 5; |
|
33 const TInt KMaxSessionsInSet3 = 4; |
|
34 const TInt KMaxNumberMbmsContexts = 10; |
|
35 const TInt KZero = 0; |
|
36 |
|
37 class CCTsyPacketServiceFU : public CCtsyComponentTestBase |
|
38 { |
|
39 public: |
|
40 // Create a suite of all the tests |
|
41 static CTestSuite* CreateSuiteL(const TDesC& aName); |
|
42 |
|
43 public: |
|
44 // Individual test steps |
|
45 |
|
46 void TestGetPreferredBearer0001L(); |
|
47 void TestGetPreferredBearer0004L(); |
|
48 void TestNotifyContextAdded0001L(); |
|
49 void TestNotifyContextAdded0002L(); |
|
50 void TestNotifyContextAdded0004L(); |
|
51 void TestNotifyStatusChange0001L(); |
|
52 void TestNotifyStatusChange0002L(); |
|
53 void TestNotifyStatusChange0004L(); |
|
54 void TestNotifyStatusChange0001aL(); |
|
55 void TestSetPreferredBearer0001L(); |
|
56 void TestSetPreferredBearer0004L(); |
|
57 void TestSetPreferredBearer0005L(); |
|
58 void TestGetContextNameInNif0001L(); |
|
59 void TestGetContextNameInNif0003L(); |
|
60 void TestGetContextNameInNif0004L(); |
|
61 void TestNotifyMSClassChange0001L(); |
|
62 void TestNotifyMSClassChange0002L(); |
|
63 void TestNotifyMSClassChange0004L(); |
|
64 void TestGetCurrentReleaseMode0001L(); |
|
65 void TestEnumerateContextsInNif0001L(); |
|
66 void TestEnumerateContextsInNif0003L(); |
|
67 void TestEnumerateContextsInNif0004L(); |
|
68 void TestNotifyAttachModeChange0001L(); |
|
69 void TestGetDefaultContextParams0001L(); |
|
70 void TestGetDefaultContextParams0003L(); |
|
71 void TestGetDefaultContextParams0004L(); |
|
72 void TestNotifyDynamicCapsChange0001L(); |
|
73 void TestNotifyDynamicCapsChange0001bL(); |
|
74 void TestNotifyDynamicCapsChange0001cL(); |
|
75 void TestNotifyDynamicCapsChange0002L(); |
|
76 void TestNotifyDynamicCapsChange0004L(); |
|
77 void TestNotifyReleaseModeChange0001L(); |
|
78 void TestRejectActivationRequest0001L(); |
|
79 void TestRejectActivationRequest0002L(); |
|
80 void TestRejectActivationRequest0004L(); |
|
81 void TestRejectActivationRequest0005L(); |
|
82 void TestSetDefaultContextParams0001L(); |
|
83 void TestSetDefaultContextParams0002L(); |
|
84 void TestSetDefaultContextParams0003L(); |
|
85 void TestSetDefaultContextParams0004L(); |
|
86 void TestSetDefaultContextParams0005L(); |
|
87 void TestNotifyChangeOfNtwkRegStatus0001L(); |
|
88 void TestNotifyChangeOfNtwkRegStatus0002L(); |
|
89 void TestNotifyChangeOfNtwkRegStatus0004L(); |
|
90 void TestNotifyContextActivationRequested0001L(); |
|
91 void TestNotifyContextActivationRequested0001bL(); |
|
92 void TestNotifyContextActivationRequested0002L(); |
|
93 void TestNotifyContextActivationRequested0003L(); |
|
94 void TestNotifyContextActivationRequested0004L(); |
|
95 void TestAttach0001L(); |
|
96 void TestAttach0002L(); |
|
97 void TestAttach0004L(); |
|
98 void TestAttach0005L(); |
|
99 void TestDetach0001L(); |
|
100 void TestDetach0002L(); |
|
101 void TestDetach0004L(); |
|
102 void TestDetach0005L(); |
|
103 void TestGetStatus0001L(); |
|
104 void TestOpen0001L(); |
|
105 void TestOpen0003L(); |
|
106 void TestOpen0004L(); |
|
107 void TestGetMSClass0001L(); |
|
108 void TestGetMSClass0004L(); |
|
109 void TestGetNifInfo0001L(); |
|
110 void TestGetNifInfo0003L(); |
|
111 void TestGetNifInfo0004L(); |
|
112 void TestSetMSClass0001L(); |
|
113 void TestDeactivateNIF0001L(); |
|
114 void TestEnumerateNifs0001L(); |
|
115 void TestEnumerateNifs0004L(); |
|
116 void TestGetAttachMode0001L(); |
|
117 void TestGetAttachMode0004L(); |
|
118 void TestGetAttachMode0005L(); |
|
119 void TestGetStaticCaps0001L(); |
|
120 void TestGetStaticCaps0001bL(); |
|
121 void TestGetStaticCaps0003L(); |
|
122 void TestSetAttachMode0001L(); |
|
123 void TestSetAttachMode0004L(); |
|
124 void TestSetAttachMode0005L(); |
|
125 void TestGetContextInfo0001L(); |
|
126 void TestGetContextInfo0003L(); |
|
127 void TestGetContextInfo0004L(); |
|
128 void TestGetDynamicCaps0001L(); |
|
129 void TestGetDynamicCaps0001bL(); |
|
130 void TestGetNtwkRegStatus0001L(); |
|
131 void TestGetNtwkRegStatus0004L(); |
|
132 void TestGetNtwkRegStatus0005L(); |
|
133 void TestEnumerateContexts0001L(); |
|
134 void TestEnumerateContexts0004L(); |
|
135 void TestNotifyContextAdded0002(); |
|
136 void TestNotifyContextAdded0004(); |
|
137 void TestNotifyStatusChange0002(); |
|
138 void TestNotifyDynamicCapsChange0001b(); |
|
139 void TestNotifyContextActivationRequested0001b(); |
|
140 |
|
141 // for testing internal CompleteNotifyEGprsInfoChange() |
|
142 void TestCompleteNotifyEGprsInfoChange0001L(); |
|
143 // for testing internal CompleteSetAlwaysOn() |
|
144 void TestCompleteSetAlwaysOn0001L(); |
|
145 void TestTsyMbmsSupportCaps0001L(); |
|
146 void TestTsyMbmsSupportCaps0001bL(); |
|
147 void TestNotifyMbmsNetworkServiceStatusChange0001L(); |
|
148 void TestNotifyMbmsNetworkServiceStatusChange0002L(); |
|
149 void TestNotifyMbmsNetworkServiceStatusChange0003L(); |
|
150 void TestGetMbmsNetworkServiceStatus0001L(); |
|
151 void TestGetMbmsNetworkServiceStatus0001bL(); |
|
152 void TestGetMbmsNetworkServiceStatus0001cL(); |
|
153 void TestGetMbmsNetworkServiceStatus0002L(); |
|
154 void TestGetMbmsNetworkServiceStatus0003L(); |
|
155 void TestGetMbmsNetworkServiceStatus0005L(); |
|
156 void TestNotifyMbmsServiceAvailabilityChange0001L(); |
|
157 void TestNotifyMbmsServiceAvailabilityChange0002L(); |
|
158 void TestNotifyMbmsServiceAvailabilityChange0004L(); |
|
159 void TestUpdateMbmsMonitorServiceList0001L(); |
|
160 void TestUpdateMbmsMonitorServiceList0002L(); |
|
161 void TestUpdateMbmsMonitorServiceList0003L(); |
|
162 void TestUpdateMbmsMonitorServiceList0005L(); |
|
163 void TestStart0001L(); |
|
164 void TestStart0002L(); |
|
165 void TestEnumerateMbmsMonitorServiceList0001L(); |
|
166 void TestEnumerateMbmsMonitorServiceList0002L(); |
|
167 void TestEnumerateMbmsMonitorServiceList0004L(); |
|
168 void TestEnumerateMbmsActiveServiceList0001L(); |
|
169 void TestEnumerateMbmsActiveServiceList0002L(); |
|
170 void TestUpdateMbmsSessionList0001L(); |
|
171 void TestUpdateMbmsSessionList0002L(); |
|
172 void TestUpdateMbmsSessionList0003L(); |
|
173 void TestUpdateMbmsSessionList0005L(); |
|
174 void TestRetrievePcktMbmsSessionListStart0001L(); |
|
175 void TestRetrievePcktMbmsSessionListStart0002L(); |
|
176 |
|
177 private: |
|
178 |
|
179 TBool contains( TUint item, TUint* array); |
|
180 |
|
181 TBool contains( TUint item, const RArray<TUint> &array ); |
|
182 |
|
183 }; // class CCTsyPacketServiceFU |
|
184 |
|
185 #endif // CCTSYPACKETSERVICEFU_H |
|
186 |