equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
35 #include "testcontextdata.h" |
35 #include "testcontextdata.h" |
36 #include "cfcontextobjectimpl.h" |
36 #include "cfcontextobjectimpl.h" |
37 #include "testcontextsourceplugin.h" |
37 #include "testcontextsourceplugin.h" |
38 #include "testcontextsourcepluginconst.hrh" |
38 #include "testcontextsourcepluginconst.hrh" |
39 #include "CFTestDelay.h" |
39 #include "CFTestDelay.h" |
40 #include "cfenvutils.h" |
|
41 |
40 |
42 // CONSTANTS |
41 // CONSTANTS |
43 |
42 |
44 _LIT_SECURITY_POLICY_PASS( KPassSec ); |
43 _LIT_SECURITY_POLICY_PASS( KPassSec ); |
45 _LIT_SECURITY_POLICY_FAIL( KFailSec ); |
44 _LIT_SECURITY_POLICY_FAIL( KFailSec ); |
304 |
303 |
305 // Destructor (virtual by CBase) |
304 // Destructor (virtual by CBase) |
306 MT_CFClient::~MT_CFClient( ) |
305 MT_CFClient::~MT_CFClient( ) |
307 { |
306 { |
308 Teardown(); |
307 Teardown(); |
309 |
|
310 // Enable screen saver |
|
311 CFEnvUtils::EnableScreenSaver( ETrue ); |
|
312 } |
308 } |
313 |
309 |
314 // Default constructor |
310 // Default constructor |
315 MT_CFClient::MT_CFClient( ) |
311 MT_CFClient::MT_CFClient( ) |
316 { |
312 { |
320 void MT_CFClient::ConstructL( ) |
316 void MT_CFClient::ConstructL( ) |
321 { |
317 { |
322 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
318 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
323 // It generates the test case table. |
319 // It generates the test case table. |
324 CEUnitTestSuiteClass::ConstructL ( ); |
320 CEUnitTestSuiteClass::ConstructL ( ); |
325 |
|
326 // Disable screen saver |
|
327 CFEnvUtils::EnableScreenSaver( EFalse ); |
|
328 } |
321 } |
329 |
322 |
330 // METHODS |
323 // METHODS |
331 |
324 |
332 void MT_CFClient::ContextIndicationL(const CCFContextIndication& aChangedContext ) |
325 void MT_CFClient::ContextIndicationL(const CCFContextIndication& aChangedContext ) |