// ----------------------------------------------------------------------------- // CTestSDKKeyLock::TestKLDisableWithoutNoteL // ----------------------------------------------------------------------------- TInt CTestSDKKeyLock::TestKLDisableWithoutNoteL( CStifItemParser& /*aItem*/ ) { RAknKeyLock disablewithoutnote; CleanupClosePushL( disablewithoutnote ); STIF_ASSERT_NOT_LEAVES( disablewithoutnote.Connect() ); STIF_ASSERT_NOT_NULL( &disablewithoutnote ); disablewithoutnote.EnableWithoutNote(); STIF_ASSERT_TRUE( disablewithoutnote.IsKeyLockEnabled() ); disablewithoutnote.DisableWithoutNote(); STIF_ASSERT_FALSE( disablewithoutnote.IsKeyLockEnabled() ); CleanupStack::PopAndDestroy( &disablewithoutnote ); return KErrNone; }