// ----------------------------------------------------------------------------- // CUpnpSecurityDbConnection::CreateTablesL // Create tables. // ----------------------------------------------------------------------------- // void CUpnpSecurityDbConnection::CreateTablesL() { ExecuteL( KUpnpSecSqlDropAddressList ); ExecuteL( KUpnpSecSqlDropFileList ); ExecuteL( KUpnpSecSqlCreateAddressList ); ExecuteL( KUpnpSecSqlCreateFileList ); }
void CMdSSqLiteConnection::DoAnalyzeL() { _LIT( KAnalyze, "ANALYZE;"); RRowData emptyRow; CleanupClosePushL( emptyRow ); ExecuteL(KAnalyze, emptyRow); CleanupStack::PopAndDestroy( &emptyRow ); }
void CTcTestRunner::BearerCompletion( MTcBearerObserver::TOperation aOp, TInt aStatus ) { // If we get an error from the bearer, "recommend" disconnect to the AppUi :-) // (usually the only error is KErrDisconnected) if( aStatus != KErrNone ) { iObserver.NotifyDisconnect(); return; } switch( aOp ) { case MTcBearerObserver::ESend: { // Clear buffers iResponse.Zero(); iRequest.Zero(); // Start receiving data again Start(); break; } case MTcBearerObserver::EReceive: { // Update request data length (add new data). iRequest.SetLength( iRequest.Length() + iFreeRequest.Length() ); // Do we have a complete request in iRequest? if( !iCodec.IsComplete() ) { // No, read more Start(); } else { // Yes, try to execute the request TRAPD( err, ExecuteL() ); // Report any errors if( err ) { SendErrorResponse( err ); } iCurrentRequest.Zero(); iObserver.NotifyStatusChange(); } break; } default: { // does not happen, ignored break; } } }
TVerdict CT_DataTypeMappingWithSid1::doTestStepL() { INFO_PRINTF1(_L("APPFWK-APPARC-0036: DataTypeMappingWithSid1 - Started")); RTestableApaLsSession apaLsSession; TEST(apaLsSession.Connect()==KErrNone); CleanupClosePushL(apaLsSession); //DONT_CHECK since array in type store is uncompressed HEAP_TEST_LS_SESSION(apaLsSession, 0, DONT_CHECK, ExecuteL(apaLsSession), NO_CLEANUP); CleanupStack::PopAndDestroy(&apaLsSession); INFO_PRINTF1(_L("APPFWK-APPARC-0036: DataTypeMappingWithSid1 - Finished")); return TestStepResult(); }
TVerdict CTRuleBasedLaunchingStep::doTestStepL() { INFO_PRINTF1(_L("TRuleBasedLaunchingStep test started....")); User::LeaveIfError(FbsStartup()); TInt ret=RFbsSession::Connect(); User::LeaveIfError(iFs.Connect()); User::LeaveIfError(iWs.Connect()); TEST(ret==KErrNone); __UHEAP_MARK; TRAPD(err, ExecuteL()); TEST(err == KErrNone); INFO_PRINTF2(_L("execute tests ended with return value '%d'"), err); __UHEAP_MARKEND; RFbsSession::Disconnect(); INFO_PRINTF1(_L(".... TRuleBasedLaunchingStep test finished!!")); return TestStepResult(); }
void CMdSSqLiteConnection::TransactionRollbackL() { if ( !iTransactionOngoing ) { return; } _LIT(KRollback, "ROLLBACK;"); RRowData emptyRow; CleanupClosePushL( emptyRow ); TRAPD( err, ExecuteL(KRollback, emptyRow) ); if (err != KErrNone) { _LIT( KMdsTransactionRollback, "Transaction rollback error" ); TraceAndLeaveL( KMdsTransactionRollback, err ); } if( !iNotFinishFindQuery ) { iEnableTransaction = ETrue; } iTransactionOngoing = EFalse; CleanupStack::PopAndDestroy( &emptyRow ); }
void CMdSSqLiteConnection::TransactionBeginL() { if ( !iEnableTransaction || iMdeSqlDb.InTransaction() ) { return; } iEnableTransaction = EFalse; iTransactionOngoing = ETrue; _LIT(KBeginTransaction, "BEGIN;"); RRowData emptyRow; CleanupClosePushL( emptyRow ); TRAPD( err, ExecuteL(KBeginTransaction, emptyRow) ); if (err != KErrNone) { _LIT( KMdsTransactionBegin, "Transaction begin error" ); if( !iNotFinishFindQuery ) { iEnableTransaction = ETrue; } iTransactionOngoing = EFalse; TraceAndLeaveL( KMdsTransactionBegin, err ); } CleanupStack::PopAndDestroy( &emptyRow ); }
// From MTest: void CTestCase::ExecuteTestL(TTestResult& aResult, TInt /*aIndex */) { ExecuteL(aResult); }
// --------------------------------------------------------------------------- // CAknMemorySelectionDialogMultiDrive::ExecuteL // --------------------------------------------------------------------------- // EXPORT_C CAknCommonDialogsBase::TReturnKey CAknMemorySelectionDialogMultiDrive::ExecuteL( TDriveNumber& aSelectedDrive ) { return ExecuteL( aSelectedDrive, NULL, NULL ); }