24
|
1 |
|
|
2 |
// Copyright (c) 2001-2009 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 |
// Header file: Basic tests.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
/**
|
|
20 |
@file
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef TE_SimSS_H__
|
|
24 |
#define TE_SimSS_H__
|
|
25 |
|
|
26 |
#include "Te_SimSSTestStepBase.h"
|
|
27 |
|
|
28 |
#define CHECKPOINT(code,expected,msg){\
|
|
29 |
TEST((code)==(expected));\
|
|
30 |
if (TestStepResult() != EPass ) INFO_PRINTF2(_L(" : %s "),(msg));\
|
|
31 |
}
|
|
32 |
|
|
33 |
const TUint KAddressType=129;
|
|
34 |
|
|
35 |
|
|
36 |
//------------------------------------------------------------------
|
|
37 |
|
|
38 |
|
|
39 |
//------------------------------------------------------------------
|
|
40 |
|
|
41 |
/**
|
|
42 |
* This class substitutes function TestCallBarring()
|
|
43 |
*
|
|
44 |
*/
|
|
45 |
class CTestCallBarring : public CSimSSTestStepBase
|
|
46 |
{
|
|
47 |
public:
|
|
48 |
CTestCallBarring() ;
|
|
49 |
~CTestCallBarring(){} ;
|
|
50 |
virtual TVerdict doTestStepL( void );
|
|
51 |
friend class CTestGetCBList;
|
|
52 |
};
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
class CTestGetCBList : public CActive
|
|
57 |
{
|
|
58 |
public:
|
|
59 |
static CTestGetCBList* NewLC(RMobilePhone& aPhone, CTestCallBarring* aTest);
|
|
60 |
~CTestGetCBList();
|
|
61 |
void Start(RMobilePhone::TMobilePhoneCBCondition aCondition);
|
|
62 |
CMobilePhoneCBList* RetrieveListL();
|
|
63 |
TInt SetExpectedResultsL(RMobilePhone::TMobilePhoneCBInfoEntryV1 aExpectedEntry);
|
|
64 |
void PrintCondition(RMobilePhone::TMobilePhoneCBCondition aCondition);
|
|
65 |
protected:
|
|
66 |
void PrintEntry(RMobilePhone::TMobilePhoneCBInfoEntryV1 aCbEntry, TInt aEntryNumber);
|
|
67 |
TInt CheckResultsL();
|
|
68 |
CTestGetCBList(RMobilePhone& aPhone, CTestCallBarring* aTest);
|
|
69 |
void ConstructL();
|
|
70 |
void RunL();
|
|
71 |
void DoCancel();
|
|
72 |
protected:
|
|
73 |
CRetrieveMobilePhoneCBList* iRetrieveCB;
|
|
74 |
RMobilePhone& iPhone;
|
|
75 |
CMobilePhoneCBList* iExpectedcbList;
|
|
76 |
TBool iChecked;
|
|
77 |
public:
|
|
78 |
CTestCallBarring* iTest;
|
|
79 |
};
|
|
80 |
|
|
81 |
/**
|
|
82 |
* This class substitutes function testCallForwarding
|
|
83 |
*
|
|
84 |
*/
|
|
85 |
class CTestCallForwarding : public CSimSSTestStepBase
|
|
86 |
{
|
|
87 |
public:
|
|
88 |
CTestCallForwarding() ;
|
|
89 |
~CTestCallForwarding(){} ;
|
|
90 |
virtual TVerdict doTestStepL( void );
|
|
91 |
friend class CTestGetCFList;
|
|
92 |
};
|
|
93 |
|
|
94 |
class CTestGetCFList : public CActive
|
|
95 |
{
|
|
96 |
public:
|
|
97 |
static CTestGetCFList* NewLC(RMobilePhone& aPhone, CTestCallForwarding* aTest);
|
|
98 |
~CTestGetCFList();
|
|
99 |
void Start(RMobilePhone::TMobilePhoneCFCondition aCondition);
|
|
100 |
void Start(RMobilePhone::TMobilePhoneCFCondition aCondition,
|
|
101 |
RMobilePhone::TMobileService aServiceGroup);
|
|
102 |
CMobilePhoneCFList* RetrieveListL();
|
|
103 |
TInt SetExpectedResultsL(RMobilePhone::TMobilePhoneCFInfoEntryV1 aExpectedEntry);
|
|
104 |
void PrintCondition(RMobilePhone::TMobilePhoneCFCondition aCondition);
|
|
105 |
protected:
|
|
106 |
void PrintEntry(RMobilePhone::TMobilePhoneCFInfoEntryV1 aCfEntry, TInt aEntryNumber);
|
|
107 |
TInt CheckResultsL();
|
|
108 |
CTestGetCFList(RMobilePhone& aPhone, CTestCallForwarding* aTest);
|
|
109 |
void ConstructL();
|
|
110 |
void RunL();
|
|
111 |
void DoCancel();
|
|
112 |
protected:
|
|
113 |
CRetrieveMobilePhoneCFList* iRetrieveCF;
|
|
114 |
RMobilePhone& iPhone;
|
|
115 |
CMobilePhoneCFList* iExpectedCfList;
|
|
116 |
TBool iChecked;
|
|
117 |
public:
|
|
118 |
CTestCallForwarding* iTest;
|
|
119 |
};
|
|
120 |
|
|
121 |
//------------------------------------------------------------------
|
|
122 |
|
|
123 |
/**
|
|
124 |
* This class substitutes function TestCallWaiting()
|
|
125 |
*
|
|
126 |
*/
|
|
127 |
class CTestCallWaiting : public CSimSSTestStepBase
|
|
128 |
{
|
|
129 |
public:
|
|
130 |
CTestCallWaiting() ;
|
|
131 |
~CTestCallWaiting(){} ;
|
|
132 |
virtual TVerdict doTestStepL( void );
|
|
133 |
friend class CTestGetCWList;
|
|
134 |
};
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
class CTestGetCWList : public CActive
|
|
139 |
{
|
|
140 |
public:
|
|
141 |
static CTestGetCWList* NewLC(RMobilePhone& aPhone, CTestCallWaiting* aTest);
|
|
142 |
~CTestGetCWList();
|
|
143 |
void Start();
|
|
144 |
CMobilePhoneCWList* RetrieveListL();
|
|
145 |
TInt SetExpectedResultsL(RMobilePhone::TMobilePhoneCWInfoEntryV1 aExpectedEntry);
|
|
146 |
//void PrintCondition(RMobilePhone::TMobilePhoneCBCondition aCondition);
|
|
147 |
protected:
|
|
148 |
void PrintEntry(RMobilePhone::TMobilePhoneCWInfoEntryV1 aCwEntry, TInt aEntryNumber);
|
|
149 |
TInt CheckResultsL();
|
|
150 |
CTestGetCWList(RMobilePhone& aPhone, CTestCallWaiting* aTest);
|
|
151 |
void ConstructL();
|
|
152 |
void RunL();
|
|
153 |
void DoCancel();
|
|
154 |
protected:
|
|
155 |
CRetrieveMobilePhoneCWList* iRetrieveCW;
|
|
156 |
RMobilePhone& iPhone;
|
|
157 |
CMobilePhoneCWList* iExpectedcwList;
|
|
158 |
TBool iChecked;
|
|
159 |
public:
|
|
160 |
CTestCallWaiting* iTest;
|
|
161 |
};
|
|
162 |
|
|
163 |
/**
|
|
164 |
* This class substitutes function testCallForwarding
|
|
165 |
*
|
|
166 |
*/
|
|
167 |
class CTestIdentityService : public CSimSSTestStepBase
|
|
168 |
{
|
|
169 |
public:
|
|
170 |
CTestIdentityService() ;
|
|
171 |
~CTestIdentityService(){} ;
|
|
172 |
virtual TVerdict doTestStepL( void );
|
|
173 |
void PrintIdServiceStatus(RMobilePhone::TMobilePhoneIdServiceStatus aIdServiceStat, RMobilePhone::TMobilePhoneIdService aIdService);
|
|
174 |
|
|
175 |
};
|
|
176 |
|
|
177 |
|
|
178 |
//------------------------------------------------------------------
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
#endif// TE_SimSS_H__
|
|
183 |
|