author | William Roberts <williamr@symbian.org> |
Thu, 22 Jul 2010 16:33:21 +0100 | |
branch | GCC_SURGE |
changeset 51 | f39ed5e045e0 |
parent 27 | 2f8f8080a020 |
parent 45 | 6b911d05207e |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 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 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include "ut_cpplugincommon.h" |
|
19 |
#include "qtestmains60.h" |
|
20 |
#include <gsmerror.h> |
|
21 |
#include <exterror.h> |
|
22 |
#include <etelmm.h> |
|
23 |
#include <btsapdomainpskeys.h> |
|
24 |
#define private public |
|
25 |
#include "cpplugincommon.h" |
|
26 |
||
27 |
/*! |
|
28 |
UT_CpPluginCommon::UT_CpPluginCommon |
|
29 |
*/ |
|
30 |
UT_CpPluginCommon::UT_CpPluginCommon() |
|
31 |
: mWrapper(NULL) |
|
32 |
{ |
|
33 |
} |
|
34 |
||
35 |
/*! |
|
36 |
UT_CpPluginCommon::~UT_CpPluginCommon |
|
37 |
*/ |
|
38 |
UT_CpPluginCommon::~UT_CpPluginCommon() |
|
39 |
{ |
|
40 |
delete mWrapper; |
|
41 |
} |
|
42 |
||
43 |
/*! |
|
44 |
UT_CpPluginCommon::init |
|
45 |
*/ |
|
46 |
void UT_CpPluginCommon::init() |
|
47 |
{ |
|
48 |
initialize(); |
|
49 |
||
50 |
mWrapper = new CpSettingsWrapper(); |
|
51 |
} |
|
52 |
||
53 |
/*! |
|
54 |
UT_CpPluginCommon::cleanup |
|
55 |
*/ |
|
56 |
void UT_CpPluginCommon::cleanup() |
|
57 |
{ |
|
58 |
reset(); |
|
59 |
||
60 |
delete mWrapper; |
|
61 |
mWrapper = NULL; |
|
62 |
} |
|
63 |
||
64 |
/*! |
|
65 |
UT_CpPluginCommon::t_memleak |
|
66 |
*/ |
|
67 |
void UT_CpPluginCommon::t_memleak() |
|
68 |
{ |
|
69 |
||
70 |
} |
|
71 |
||
72 |
/*! |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
73 |
UT_CpPluginCommon::t_showCallDuration |
37 | 74 |
*/ |
75 |
void UT_CpPluginCommon::t_showCallDuration() |
|
76 |
{ |
|
77 |
expect("XQSettingsManager::readItemValue"). |
|
78 |
returns(QVariant(23324)); |
|
79 |
||
80 |
mWrapper->showCallDuration(); |
|
81 |
QVERIFY(verify()); |
|
82 |
} |
|
83 |
||
84 |
/*! |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
85 |
UT_CpPluginCommon::t_setShowCallDuration |
37 | 86 |
*/ |
87 |
void UT_CpPluginCommon::t_setShowCallDuration() |
|
88 |
{ |
|
89 |
mWrapper->setShowCallDuration(true); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
90 |
mWrapper->setShowCallDuration(false); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
91 |
QVERIFY(verify()); |
37 | 92 |
} |
93 |
||
94 |
/*! |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
95 |
UT_CpPluginCommon::t_readSoftRejectText |
37 | 96 |
*/ |
97 |
void UT_CpPluginCommon::t_readSoftRejectText() |
|
98 |
{ |
|
99 |
QString text=""; |
|
100 |
bool userDefined=true; |
|
101 |
expect("XQSettingsManager::readItemValue"). |
|
102 |
returns(QVariant(true)); |
|
103 |
||
104 |
expect("XQSettingsManager::readItemValue"). |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
105 |
returns(QVariant("text")); |
37 | 106 |
|
107 |
mWrapper->readSoftRejectText(text, userDefined); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
108 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
109 |
userDefined=false; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
110 |
expect("XQSettingsManager::readItemValue"). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
111 |
returns(QVariant(false)); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
112 |
expect("XQSettingsManager::readItemValue"). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
113 |
returns(QVariant("text")); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
114 |
mWrapper->readSoftRejectText(text, userDefined); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
115 |
|
37 | 116 |
QVERIFY(verify()); |
117 |
} |
|
118 |
||
119 |
/*! |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
120 |
UT_CpPluginCommon::t_writeSoftRejectText |
37 | 121 |
*/ |
122 |
void UT_CpPluginCommon::t_writeSoftRejectText() |
|
123 |
{ |
|
124 |
QString text=""; |
|
125 |
bool userDefined=true; |
|
126 |
mWrapper->writeSoftRejectText(text, userDefined); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
127 |
userDefined=false; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
128 |
mWrapper->writeSoftRejectText(text, userDefined); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
129 |
QVERIFY(verify()); |
37 | 130 |
} |
131 |
||
132 |
/*! |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
133 |
UT_CpPluginCommon::t_numberGroupingSupported |
37 | 134 |
*/ |
135 |
void UT_CpPluginCommon::t_numberGroupingSupported() |
|
136 |
{ |
|
137 |
expect("XQSettingsManager::readItemValue"). |
|
138 |
returns(QVariant(true)); |
|
139 |
||
140 |
mWrapper->numberGroupingSupported(); |
|
141 |
QVERIFY(verify()); |
|
142 |
} |
|
143 |
||
144 |
/*! |
|
145 |
UT_CpPluginCommon::t_voipSupported |
|
146 |
*/ |
|
147 |
||
148 |
void UT_CpPluginCommon::t_voipSupported() |
|
149 |
{ |
|
150 |
expect("XQSysInfo::isSupported").with( |
|
151 |
KFeatureIdCommonVoip).returns(false); |
|
152 |
QCOMPARE( Tools::voipSupported(), false ); |
|
153 |
expect("XQSysInfo::isSupported").with( |
|
154 |
KFeatureIdCommonVoip).returns(true); |
|
155 |
QCOMPARE( Tools::voipSupported(), true ); |
|
156 |
||
157 |
QVERIFY( verify() ); |
|
158 |
} |
|
159 |
||
160 |
/*! |
|
161 |
UT_CpPluginCommon::t_videoSupported |
|
162 |
*/ |
|
163 |
void UT_CpPluginCommon::t_videoSupported() |
|
164 |
{ |
|
165 |
expect("XQSysInfo::isSupported").with( |
|
166 |
KFeatureIdCsVideoTelephony).returns(true); |
|
167 |
QCOMPARE( Tools::videoSupported(), true ); |
|
168 |
expect("XQSysInfo::isSupported").with( |
|
169 |
KFeatureIdCsVideoTelephony).returns(false); |
|
170 |
QCOMPARE( Tools::videoSupported(), false ); |
|
171 |
||
172 |
QVERIFY( verify() ); |
|
173 |
} |
|
174 |
||
175 |
/*! |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
176 |
UT_CpPluginCommon::t_errorCodeTextMapping |
37 | 177 |
*/ |
178 |
void UT_CpPluginCommon::t_errorCodeTextMapping() |
|
179 |
{ |
|
180 |
QString text = ""; |
|
181 |
Tools::errorCodeTextMapping(KErrGsmSSSubscriptionViolation, text); |
|
182 |
QCOMPARE( text, QString( |
|
183 |
"txt_phone_info_barring_operation_not_successful")); |
|
184 |
Tools::errorCodeTextMapping(KErrGsmSSUnknownSubscriber, text); |
|
185 |
QCOMPARE( text, QString( |
|
186 |
"txt_phone_info_not_allowed")); |
|
187 |
Tools::errorCodeTextMapping(KErrGsmSSAbsentSubscriber, text); |
|
188 |
QCOMPARE( text, QString( |
|
189 |
"txt_phone_info_not_allowed")); |
|
190 |
Tools::errorCodeTextMapping(KErrGsmSSIllegalOperation, text); |
|
191 |
QCOMPARE( text, QString( |
|
192 |
"txt_phone_info_not_allowed")); |
|
193 |
Tools::errorCodeTextMapping(KErrGsmSSIllegalSubscriber, text); |
|
194 |
QCOMPARE( text, QString( |
|
195 |
"txt_phone_info_not_allowed")); |
|
196 |
Tools::errorCodeTextMapping(KErrGsmSSIllegalEquipment, text); |
|
197 |
QCOMPARE( text, QString( |
|
198 |
"txt_phone_info_not_allowed")); |
|
199 |
Tools::errorCodeTextMapping(KErrGsmSSCallBarred, text); |
|
200 |
QCOMPARE( text, QString( |
|
201 |
"txt_phone_info_not_allowed")); |
|
202 |
Tools::errorCodeTextMapping(KErrGsmSSDataMissing, text); |
|
203 |
QCOMPARE( text, QString( |
|
204 |
"txt_phone_info_not_allowed")); |
|
205 |
Tools::errorCodeTextMapping(KErrGsmSSIncompatibility, text); |
|
206 |
QCOMPARE( text, QString( |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
207 |
"txt_phone_info_conflict_error")); |
37 | 208 |
Tools::errorCodeTextMapping(KErrGsmSSSystemFailure, text); |
209 |
QCOMPARE( text, QString( |
|
210 |
"txt_phone_info_result_unknown")); |
|
211 |
Tools::errorCodeTextMapping(KErrGsmSSUnexpectedDataValue, text); |
|
212 |
QCOMPARE( text, QString( |
|
213 |
"txt_phone_info_request_rejected")); |
|
214 |
Tools::errorCodeTextMapping(KErrGsmSSResourcesUnavailable, text); |
|
215 |
QCOMPARE( text, QString( |
|
216 |
"txt_phone_info_request_rejected")); |
|
217 |
Tools::errorCodeTextMapping(KErrGsmSSNegativePasswordCheck, text); |
|
218 |
QCOMPARE( text, QString( |
|
219 |
"Password error")); |
|
220 |
Tools::errorCodeTextMapping(KErrGsmSSPasswordRegistrationFailure, text); |
|
221 |
QCOMPARE( text, QString( |
|
222 |
"Password error")); |
|
223 |
Tools::errorCodeTextMapping(KErrGsmSSPasswordAttemptsViolation, text); |
|
224 |
QCOMPARE( text, QString( |
|
225 |
"txt_phone_info_barring_password_blocked")); |
|
226 |
Tools::errorCodeTextMapping(KErrGsmSMSNoNetworkService, text); |
|
227 |
QCOMPARE( text, QString( |
|
228 |
"No network coverage")); |
|
229 |
Tools::errorCodeTextMapping(KErrGsmNoService, text); |
|
230 |
QCOMPARE( text, QString( |
|
231 |
"No network coverage")); |
|
232 |
Tools::errorCodeTextMapping(KErrSsActivationDataLost, text); |
|
233 |
QCOMPARE( text, QString( |
|
234 |
"Check network services")); |
|
235 |
Tools::errorCodeTextMapping(KErrGsmSSUnknownAlphabet, text); |
|
236 |
QCOMPARE( text, QString("txt_phone_info_invalid_phone_number")); |
|
237 |
||
238 |
expect("XQSysInfo::isSupported").returns(false); |
|
239 |
Tools::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text); |
|
240 |
QCOMPARE( text, QString( |
|
241 |
"txt_phone_info_request_not_completed")); |
|
242 |
QVERIFY( verify() ); |
|
243 |
||
244 |
expect("XQSysInfo::isSupported").returns(true); |
|
245 |
expect("XQSettingsManager::readItemValue").returns(QVariant(EBTSapConnected)); |
|
246 |
Tools::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text); |
|
247 |
QCOMPARE( text, QString( |
|
248 |
"Operation not possible in SIM access profile mode")); |
|
249 |
QVERIFY( verify() ); |
|
250 |
||
251 |
expect("XQSysInfo::isSupported").returns(true); |
|
252 |
expect("XQSettingsManager::readItemValue").returns(QVariant(EBTSapNotConnected)); |
|
253 |
Tools::errorCodeTextMapping(KErrGsmOfflineOpNotAllowed, text); |
|
254 |
QCOMPARE( text, QString( |
|
255 |
"Operation not possible in Off-line mode")); |
|
256 |
||
257 |
Tools::errorCodeTextMapping(-1, text); |
|
258 |
QCOMPARE( text, QString( |
|
259 |
"txt_phone_info_request_not_completed")); |
|
260 |
||
261 |
QVERIFY( verify() ); |
|
262 |
||
263 |
} |
|
264 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
265 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
266 |
UT_CpPluginCommon::t_readVtVideoSending |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
267 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
268 |
void UT_CpPluginCommon::t_readVtVideoSending() |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
269 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
270 |
expect("XQSettingsManager::readItemValue"). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
271 |
returns(QVariant(1)); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
272 |
mWrapper->readVtVideoSending(); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
273 |
QVERIFY( verify() ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
274 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
275 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
276 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
277 |
UT_CpPluginCommon::t_writeVtVideoSending |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
278 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
279 |
void UT_CpPluginCommon::t_writeVtVideoSending() |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
280 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
281 |
expect("XQSettingsManager::writeItemValue");//. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
282 |
//times(2); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
283 |
int i=0; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
284 |
mWrapper->writeVtVideoSending(i); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
285 |
QVERIFY( verify() ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
286 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
287 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
288 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
289 |
UT_CpPluginCommon::t_isFeatureCallWaitingDistiquishNotProvisionedEnabled |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
290 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
291 |
void UT_CpPluginCommon::t_isFeatureCallWaitingDistiquishNotProvisionedEnabled() |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
292 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
293 |
expect("XQSettingsManager::readItemValue"). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
294 |
returns(QVariant(1)); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
295 |
mWrapper->isFeatureCallWaitingDistiquishNotProvisionedEnabled(); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
296 |
QVERIFY( verify() ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
297 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
298 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
299 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
300 |
UT_CpPluginCommon::t_isPhoneOffline |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
301 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
302 |
void UT_CpPluginCommon::t_isPhoneOffline() |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
303 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
304 |
expect("XQSysInfo::isSupported"); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
305 |
mWrapper->isPhoneOffline(); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
306 |
QVERIFY( verify() ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
307 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
308 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
309 |
/*! |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
310 |
UT_CpPluginCommon::t_isOngoingCall |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
311 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
312 |
void UT_CpPluginCommon::t_isOngoingCall() |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
313 |
{ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
314 |
expect("XQSettingsManager::readItemValue"). |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
315 |
returns(QVariant(1)); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
316 |
mWrapper->isOngoingCall(); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
317 |
QVERIFY( verify() ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
318 |
} |
37 | 319 |
|
320 |
QTEST_MAIN_S60(UT_CpPluginCommon) |