equal
deleted
inserted
replaced
1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2007-2009 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 TInt err = (iProperty.Define(RProcess().SecureId(), KSwpTestKey1, RProperty::EInt)); |
284 TEST(KErrNone == iProperty.Define(RProcess().SecureId(), KSwpTestKey1, RProperty::EInt)); |
285 INFO_PRINTF2(_L("doTestRequestSimpleL :: Define KSwpTestKey1 returns : %d "), err); |
|
286 TEST ((KErrNone == err) ||(KErrAlreadyExists == err)); |
|
287 TEST(KErrNone == iProperty.Set(RProcess().SecureId(), KSwpTestKey1, 0)); |
285 TEST(KErrNone == iProperty.Set(RProcess().SecureId(), KSwpTestKey1, 0)); |
288 |
286 |
289 TInt value; |
287 TInt value; |
290 TEST(KErrNone == iProperty.Get(RProcess().SecureId(), KSwpTestKey1, value)); |
288 TEST(KErrNone == iProperty.Get(RProcess().SecureId(), KSwpTestKey1, value)); |
291 TEST(value == 0); |
289 TEST(value == 0); |