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;
		}
	}
예제 #2
0
	ASBoolean DidWinUncapturedLeftButtonGoUp()		{ return TestAction(kWinUncapturedLeftButtonUpAction); }
예제 #3
0
	ASBoolean DidWinAltKeyGoDown() 					{ return TestAction(kWinAltKeyDownAction); }
예제 #4
0
	ASBoolean DidWinRightButtonGoDown() 			{ return TestAction(kWinRightButtonDownAction); }
예제 #5
0
	ASBoolean DidWinMiddleButtonGoDown()			{ return TestAction(kWinMiddleButtonDownAction); }
예제 #6
0
	ASBoolean DidLeave()							{ return TestAction(kADMLeaveAction); }
예제 #7
0
	ASBoolean DidTabKeyGoUp() 						{ return TestAction(kADMTabKeyUpAction); }
예제 #8
0
	ASBoolean DidSpaceKeyGoUp() 					{ return TestAction(kADMSpaceKeyUpAction); }
예제 #9
0
	/*
	 * Action Testers
	 */
	ASBoolean DidMouseMove()						{ return TestAction(kADMMouseMoveAction); }		/**** Get rid of this  FIX ME pja****/
예제 #10
0
	ASBoolean DidMacControlKeyGoUp() 				{ return TestAction(kMacControlKeyUpAction); }
예제 #11
0
	ASBoolean DidMacControlKeyGoDown() 				{ return TestAction(kMacControlKeyDownAction); }
예제 #12
0
	ASBoolean DidMacOptionKeyGoUp() 				{ return TestAction(kMacOptionKeyUpAction); }
예제 #13
0
	ASBoolean DidMacOptionKeyGoDown() 				{ return TestAction(kMacOptionKeyDownAction); }
예제 #14
0
	ASBoolean DidMacCommandKeyGoUp() 				{ return TestAction(kMacCommandKeyUpAction); }
예제 #15
0
	ASBoolean DidMacCommandKeyGoDown() 				{ return TestAction(kMacCommandKeyDownAction); }
예제 #16
0
	ASBoolean DidModKeyGoUp() 						{ return TestAction(kADMModKeyUpAction); }
예제 #17
0
	ASBoolean DidSpaceKeyGoDown() 					{ return TestAction(kADMSpaceKeyDownAction); }
예제 #18
0
	ASBoolean DidMouseMoveWhileDown()				{ return TestAction(kADMMouseMovedDownAction); }
예제 #19
0
	ASBoolean DidTabKeyGoDown() 					{ return TestAction(kADMTabKeyDownAction); }
예제 #20
0
	ASBoolean DidMouseMoveWhileUp()					{ return TestAction(kADMMouseMovedUpAction); }
예제 #21
0
	ASBoolean DidEnter()							{ return TestAction(kADMEnterAction); }
예제 #22
0
	ASBoolean DidButtonGoDown() 					{ return TestAction(kADMButtonDownAction); }
예제 #23
0
	ASBoolean DidUncapturedButtonGoUp()				{ return TestAction(kADMUncapturedButtonUpAction); }
예제 #24
0
	ASBoolean DidButtonGoUp() 						{ return TestAction(kADMButtonUpAction); }
예제 #25
0
	ASBoolean DidWinMiddleButtonGoUp() 				{ return TestAction(kWinMiddleButtonUpAction); }
예제 #26
0
	ASBoolean DidShiftKeyGoDown() 					{ return TestAction(kADMShiftKeyDownAction); }
예제 #27
0
	ASBoolean DidWinRightButtonGoUp() 				{ return TestAction(kWinRightButtonUpAction); }
예제 #28
0
	ASBoolean DidShiftKeyGoUp() 					{ return TestAction(kADMShiftKeyUpAction); }
예제 #29
0
	ASBoolean DidWinAltKeyGoUp() 					{ return TestAction(kWinAltKeyUpAction); }
예제 #30
0
	ASBoolean DidModKeyGoDown() 					{ return TestAction(kADMModKeyDownAction); }