void CListCertificates::PerformAction(TRequestStatus& aStatus) { switch (iState) { case EList: if (iDNs.Count() == 1) { UnifiedCertStore().List(iCertInfos, *iFilter, *iDNs[0], aStatus); } else if (iDNs.Count() > 1) { UnifiedCertStore().List(iCertInfos, *iFilter, iDNs, aStatus); } else { CertStore().List(iCertInfos, *iFilter, aStatus); } iState = EFinished; break; case EFinished: { // Check certificates have unique handles if (aStatus == KErrNone) { for (TInt i = 0 ; i < iCertInfos.Count() ; ++i) { for (TInt j = i + 1 ; j < iCertInfos.Count() ; ++j) { if (iCertInfos[i]->Handle() == iCertInfos[j]->Handle()) { aStatus = KErrBadHandle; break; } } } } if (aStatus == iExpectedResult) { TestAction(); } else { iResult = EFalse; } iActionState = EPostrequisite; TRequestStatus* status = &aStatus; User::RequestComplete(status, aStatus.Int()); } break; default: User::Invariant(); break; } }
ASBoolean DidWinUncapturedLeftButtonGoUp() { return TestAction(kWinUncapturedLeftButtonUpAction); }
ASBoolean DidWinAltKeyGoDown() { return TestAction(kWinAltKeyDownAction); }
ASBoolean DidWinRightButtonGoDown() { return TestAction(kWinRightButtonDownAction); }
ASBoolean DidWinMiddleButtonGoDown() { return TestAction(kWinMiddleButtonDownAction); }
ASBoolean DidLeave() { return TestAction(kADMLeaveAction); }
ASBoolean DidTabKeyGoUp() { return TestAction(kADMTabKeyUpAction); }
ASBoolean DidSpaceKeyGoUp() { return TestAction(kADMSpaceKeyUpAction); }
/* * Action Testers */ ASBoolean DidMouseMove() { return TestAction(kADMMouseMoveAction); } /**** Get rid of this FIX ME pja****/
ASBoolean DidMacControlKeyGoUp() { return TestAction(kMacControlKeyUpAction); }
ASBoolean DidMacControlKeyGoDown() { return TestAction(kMacControlKeyDownAction); }
ASBoolean DidMacOptionKeyGoUp() { return TestAction(kMacOptionKeyUpAction); }
ASBoolean DidMacOptionKeyGoDown() { return TestAction(kMacOptionKeyDownAction); }
ASBoolean DidMacCommandKeyGoUp() { return TestAction(kMacCommandKeyUpAction); }
ASBoolean DidMacCommandKeyGoDown() { return TestAction(kMacCommandKeyDownAction); }
ASBoolean DidModKeyGoUp() { return TestAction(kADMModKeyUpAction); }
ASBoolean DidSpaceKeyGoDown() { return TestAction(kADMSpaceKeyDownAction); }
ASBoolean DidMouseMoveWhileDown() { return TestAction(kADMMouseMovedDownAction); }
ASBoolean DidTabKeyGoDown() { return TestAction(kADMTabKeyDownAction); }
ASBoolean DidMouseMoveWhileUp() { return TestAction(kADMMouseMovedUpAction); }
ASBoolean DidEnter() { return TestAction(kADMEnterAction); }
ASBoolean DidButtonGoDown() { return TestAction(kADMButtonDownAction); }
ASBoolean DidUncapturedButtonGoUp() { return TestAction(kADMUncapturedButtonUpAction); }
ASBoolean DidButtonGoUp() { return TestAction(kADMButtonUpAction); }
ASBoolean DidWinMiddleButtonGoUp() { return TestAction(kWinMiddleButtonUpAction); }
ASBoolean DidShiftKeyGoDown() { return TestAction(kADMShiftKeyDownAction); }
ASBoolean DidWinRightButtonGoUp() { return TestAction(kWinRightButtonUpAction); }
ASBoolean DidShiftKeyGoUp() { return TestAction(kADMShiftKeyUpAction); }
ASBoolean DidWinAltKeyGoUp() { return TestAction(kWinAltKeyUpAction); }
ASBoolean DidModKeyGoDown() { return TestAction(kADMModKeyDownAction); }