equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007 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" |
40 |
41 |
41 // CONSTANTS |
42 // CONSTANTS |
42 |
43 |
43 _LIT_SECURITY_POLICY_PASS( KPassSec ); |
44 _LIT_SECURITY_POLICY_PASS( KPassSec ); |
44 _LIT_SECURITY_POLICY_FAIL( KFailSec ); |
45 _LIT_SECURITY_POLICY_FAIL( KFailSec ); |
303 |
304 |
304 // Destructor (virtual by CBase) |
305 // Destructor (virtual by CBase) |
305 MT_CFClient::~MT_CFClient( ) |
306 MT_CFClient::~MT_CFClient( ) |
306 { |
307 { |
307 Teardown(); |
308 Teardown(); |
|
309 |
|
310 // Enable screen saver |
|
311 CFEnvUtils::EnableScreenSaver( ETrue ); |
308 } |
312 } |
309 |
313 |
310 // Default constructor |
314 // Default constructor |
311 MT_CFClient::MT_CFClient( ) |
315 MT_CFClient::MT_CFClient( ) |
312 { |
316 { |
316 void MT_CFClient::ConstructL( ) |
320 void MT_CFClient::ConstructL( ) |
317 { |
321 { |
318 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
322 // The ConstructL from the base class CEUnitTestSuiteClass must be called. |
319 // It generates the test case table. |
323 // It generates the test case table. |
320 CEUnitTestSuiteClass::ConstructL ( ); |
324 CEUnitTestSuiteClass::ConstructL ( ); |
|
325 |
|
326 // Disable screen saver |
|
327 CFEnvUtils::EnableScreenSaver( EFalse ); |
321 } |
328 } |
322 |
329 |
323 // METHODS |
330 // METHODS |
324 |
331 |
325 void MT_CFClient::ContextIndicationL(const CCFContextIndication& aChangedContext ) |
332 void MT_CFClient::ContextIndicationL(const CCFContextIndication& aChangedContext ) |