24
|
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 TestNotifyStatusChange0004aL();
|
|
55 |
void TestNotifyStatusChange0001aL();
|
|
56 |
void TestSetPreferredBearer0001L();
|
|
57 |
void TestSetPreferredBearer0004L();
|
|
58 |
void TestSetPreferredBearer0005L();
|
|
59 |
void TestGetContextNameInNif0001L();
|
|
60 |
void TestGetContextNameInNif0003L();
|
|
61 |
void TestGetContextNameInNif0004L();
|
|
62 |
void TestNotifyMSClassChange0001L();
|
|
63 |
void TestNotifyMSClassChange0002L();
|
|
64 |
void TestNotifyMSClassChange0004L();
|
|
65 |
void TestGetCurrentReleaseMode0001L();
|
|
66 |
void TestEnumerateContextsInNif0001L();
|
|
67 |
void TestEnumerateContextsInNif0003L();
|
|
68 |
void TestEnumerateContextsInNif0004L();
|
|
69 |
void TestNotifyAttachModeChange0001L();
|
|
70 |
void TestGetDefaultContextParams0001L();
|
|
71 |
void TestGetDefaultContextParams0003L();
|
|
72 |
void TestGetDefaultContextParams0004L();
|
|
73 |
void TestNotifyDynamicCapsChange0001L();
|
|
74 |
void TestNotifyDynamicCapsChange0001bL();
|
|
75 |
void TestNotifyDynamicCapsChange0001cL();
|
|
76 |
void TestNotifyDynamicCapsChange0002L();
|
|
77 |
void TestNotifyDynamicCapsChange0004L();
|
|
78 |
void TestNotifyReleaseModeChange0001L();
|
|
79 |
void TestRejectActivationRequest0001L();
|
|
80 |
void TestRejectActivationRequest0002L();
|
|
81 |
void TestRejectActivationRequest0004L();
|
|
82 |
void TestRejectActivationRequest0005L();
|
|
83 |
void TestSetDefaultContextParams0001L();
|
|
84 |
void TestSetDefaultContextParams0002L();
|
|
85 |
void TestSetDefaultContextParams0003L();
|
|
86 |
void TestSetDefaultContextParams0004L();
|
|
87 |
void TestSetDefaultContextParams0005L();
|
|
88 |
void TestNotifyChangeOfNtwkRegStatus0001L();
|
|
89 |
void TestNotifyChangeOfNtwkRegStatus0002L();
|
|
90 |
void TestNotifyChangeOfNtwkRegStatus0004L();
|
|
91 |
void TestNotifyContextActivationRequested0001L();
|
|
92 |
void TestNotifyContextActivationRequested0001bL();
|
|
93 |
void TestNotifyContextActivationRequested0002L();
|
|
94 |
void TestNotifyContextActivationRequested0003L();
|
|
95 |
void TestNotifyContextActivationRequested0004L();
|
|
96 |
void TestAttach0001L();
|
|
97 |
void TestAttach0002L();
|
|
98 |
void TestAttach0004L();
|
|
99 |
void TestAttach0005L();
|
|
100 |
void TestDetach0001L();
|
|
101 |
void TestDetach0002L();
|
|
102 |
void TestDetach0004L();
|
|
103 |
void TestDetach0005L();
|
|
104 |
void TestGetStatus0001L();
|
|
105 |
void TestOpen0001L();
|
|
106 |
void TestOpen0003L();
|
|
107 |
void TestOpen0004L();
|
|
108 |
void TestGetMSClass0001L();
|
|
109 |
void TestGetMSClass0004L();
|
|
110 |
void TestGetNifInfo0001L();
|
|
111 |
void TestGetNifInfo0003L();
|
|
112 |
void TestGetNifInfo0004L();
|
|
113 |
void TestSetMSClass0001L();
|
|
114 |
void TestDeactivateNIF0001L();
|
|
115 |
void TestEnumerateNifs0001L();
|
|
116 |
void TestEnumerateNifs0004L();
|
|
117 |
void TestGetAttachMode0001L();
|
|
118 |
void TestGetAttachMode0004L();
|
|
119 |
void TestGetAttachMode0005L();
|
|
120 |
void TestGetStaticCaps0001L();
|
|
121 |
void TestGetStaticCaps0001bL();
|
|
122 |
void TestGetStaticCaps0003L();
|
|
123 |
void TestSetAttachMode0001L();
|
|
124 |
void TestSetAttachMode0004L();
|
|
125 |
void TestSetAttachMode0005L();
|
|
126 |
void TestGetContextInfo0001L();
|
|
127 |
void TestGetContextInfo0003L();
|
|
128 |
void TestGetContextInfo0004L();
|
|
129 |
void TestGetDynamicCaps0001L();
|
|
130 |
void TestGetDynamicCaps0001bL();
|
|
131 |
void TestGetNtwkRegStatus0001L();
|
|
132 |
void TestGetNtwkRegStatus0004L();
|
|
133 |
void TestGetNtwkRegStatus0005L();
|
|
134 |
void TestEnumerateContexts0001L();
|
|
135 |
void TestEnumerateContexts0004L();
|
|
136 |
void TestNotifyContextAdded0002();
|
|
137 |
void TestNotifyContextAdded0004();
|
|
138 |
void TestNotifyStatusChange0002();
|
|
139 |
void TestNotifyDynamicCapsChange0001b();
|
|
140 |
void TestNotifyContextActivationRequested0001b();
|
|
141 |
|
|
142 |
// for testing internal CompleteNotifyEGprsInfoChange()
|
|
143 |
void TestCompleteNotifyEGprsInfoChange0001L();
|
|
144 |
// for testing internal CompleteSetAlwaysOn()
|
|
145 |
void TestCompleteSetAlwaysOn0001L();
|
|
146 |
void TestTsyMbmsSupportCaps0001L();
|
|
147 |
void TestTsyMbmsSupportCaps0001bL();
|
|
148 |
void TestNotifyMbmsNetworkServiceStatusChange0001L();
|
|
149 |
void TestNotifyMbmsNetworkServiceStatusChange0002L();
|
|
150 |
void TestNotifyMbmsNetworkServiceStatusChange0003L();
|
|
151 |
void TestGetMbmsNetworkServiceStatus0001L();
|
|
152 |
void TestGetMbmsNetworkServiceStatus0001bL();
|
|
153 |
void TestGetMbmsNetworkServiceStatus0001cL();
|
|
154 |
void TestGetMbmsNetworkServiceStatus0002L();
|
|
155 |
void TestGetMbmsNetworkServiceStatus0003L();
|
|
156 |
void TestGetMbmsNetworkServiceStatus0005L();
|
|
157 |
void TestNotifyMbmsServiceAvailabilityChange0001L();
|
|
158 |
void TestNotifyMbmsServiceAvailabilityChange0002L();
|
|
159 |
void TestNotifyMbmsServiceAvailabilityChange0004L();
|
|
160 |
void TestUpdateMbmsMonitorServiceList0001L();
|
|
161 |
void TestUpdateMbmsMonitorServiceList0002L();
|
|
162 |
void TestUpdateMbmsMonitorServiceList0003L();
|
|
163 |
void TestUpdateMbmsMonitorServiceList0005L();
|
|
164 |
void TestStart0001L();
|
|
165 |
void TestStart0002L();
|
|
166 |
void TestEnumerateMbmsMonitorServiceList0001L();
|
|
167 |
void TestEnumerateMbmsMonitorServiceList0002L();
|
|
168 |
void TestEnumerateMbmsMonitorServiceList0004L();
|
|
169 |
void TestEnumerateMbmsActiveServiceList0001L();
|
|
170 |
void TestEnumerateMbmsActiveServiceList0002L();
|
|
171 |
void TestUpdateMbmsSessionList0001L();
|
|
172 |
void TestUpdateMbmsSessionList0002L();
|
|
173 |
void TestUpdateMbmsSessionList0003L();
|
|
174 |
void TestUpdateMbmsSessionList0005L();
|
|
175 |
void TestRetrievePcktMbmsSessionListStart0001L();
|
|
176 |
void TestRetrievePcktMbmsSessionListStart0002L();
|
|
177 |
|
|
178 |
private:
|
|
179 |
|
|
180 |
TBool contains( TUint item, TUint* array);
|
|
181 |
|
|
182 |
TBool contains( TUint item, const RArray<TUint> &array );
|
|
183 |
|
|
184 |
}; // class CCTsyPacketServiceFU
|
|
185 |
|
|
186 |
#endif // CCTSYPACKETSERVICEFU_H
|
|
187 |
|