sysstatemgmt/systemstatemgr/test/tssm/src/tssm_step_swptransitionengine.cpp
changeset 41 c87e5f80c17d
parent 0 4e1aa6a622a0
child 61 8cb079868133
equal deleted inserted replaced
35:f7565e9c9ce8 41:c87e5f80c17d
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   279 	// published swp value is used to stop the scheduler.
   279 	// published swp value is used to stop the scheduler.
   280 	CCleSessionProxy* cleSession = CCleSessionProxy::NewL();
   280 	CCleSessionProxy* cleSession = CCleSessionProxy::NewL();
   281 	CleanupStack::PushL(cleSession);
   281 	CleanupStack::PushL(cleSession);
   282 
   282 
   283 	// Define and set the rproperty
   283 	// Define and set the rproperty
   284 	TEST(KErrNone == iProperty.Define(RProcess().SecureId(), KSwpTestKey1, RProperty::EInt));
   284 	TInt err = (iProperty.Define(RProcess().SecureId(), KSwpTestKey1, RProperty::EInt));
       
   285 	INFO_PRINTF2(_L("doTestRequestSimpleL :: Define KSwpTestKey1 returns : %d "), err);
       
   286 	TEST ((KErrNone == err) ||(KErrAlreadyExists == err));
   285 	TEST(KErrNone == iProperty.Set(RProcess().SecureId(), KSwpTestKey1, 0));
   287 	TEST(KErrNone == iProperty.Set(RProcess().SecureId(), KSwpTestKey1, 0));
   286 
   288 
   287 	TInt value;
   289 	TInt value;
   288 	TEST(KErrNone == iProperty.Get(RProcess().SecureId(), KSwpTestKey1, value));
   290 	TEST(KErrNone == iProperty.Get(RProcess().SecureId(), KSwpTestKey1, value));
   289 	TEST(value == 0);
   291 	TEST(value == 0);