sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: */ sl@0: sl@0: #include "t_unifiedcertstorecount.h" sl@0: #include "tcertutils.h" sl@0: #include "t_certstoredefs.h" sl@0: #include "t_certstoreout.h" sl@0: sl@0: CUnifiedCertStoreCount::~CUnifiedCertStoreCount() sl@0: { sl@0: } sl@0: sl@0: CUnifiedCertStoreCount::CUnifiedCertStoreCount(RFs& aFs, CConsoleBase& aConsole, sl@0: Output& aOut) sl@0: : CCertStoreTestAction(aFs, aConsole, aOut) sl@0: { sl@0: } sl@0: sl@0: void CUnifiedCertStoreCount::ConstructL(const TTestActionSpec& aTestActionSpec) sl@0: { sl@0: CCertStoreTestAction::ConstructL(aTestActionSpec); sl@0: } sl@0: sl@0: void CUnifiedCertStoreCount::PerformAction(TRequestStatus& aStatus) sl@0: { sl@0: iFinished = ETrue; sl@0: DoPerformAction(); sl@0: TRequestStatus* status = &aStatus; sl@0: User::RequestComplete(status, KErrNone); sl@0: } sl@0: sl@0: void CUnifiedCertStoreCount::PerformCancel() sl@0: { sl@0: } sl@0: sl@0: void CUnifiedCertStoreCount::Reset() sl@0: { sl@0: __ASSERT_DEBUG(EFalse, User::Panic(_L("CUnifiedCertStoreCount::Reset()"), 1)); sl@0: } sl@0: sl@0: void CUnifiedCertStoreCount::DoReportAction() sl@0: { sl@0: // iOut.writeString(_L("Getting applications...")); sl@0: iOut.writeNewLine(); sl@0: /* iOut.writeString(_L("\tExpected applications :")); sl@0: TInt iEnd = iExpectedApplications.Count(); sl@0: for (TInt i = 0; i < iEnd; i++) sl@0: { sl@0: iOut.writeString(_L(" ")); sl@0: iOut.writeNum(iExpectedApplications[i].iUid); sl@0: } sl@0: iOut.writeNewLine(); sl@0: iOut.writeNewLine();*/ sl@0: } sl@0: sl@0: void CUnifiedCertStoreCount::DoCheckResult(TInt /*aError*/) sl@0: { sl@0: DoWriteResult(); sl@0: iOut.writeNewLine(); sl@0: iOut.writeNum(iCount); sl@0: iConsole.Printf(_L(" %D\n"),iCount); sl@0: iOut.writeNewLine(); sl@0: } sl@0: