os/security/cryptoservices/certificateandkeymgmt/tcertstore/T_unifiedcertstorecount.cpp
First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
23 #include "t_unifiedcertstorecount.h"
24 #include "tcertutils.h"
25 #include "t_certstoredefs.h"
26 #include "t_certstoreout.h"
28 CUnifiedCertStoreCount::~CUnifiedCertStoreCount()
32 CUnifiedCertStoreCount::CUnifiedCertStoreCount(RFs& aFs, CConsoleBase& aConsole,
34 : CCertStoreTestAction(aFs, aConsole, aOut)
38 void CUnifiedCertStoreCount::ConstructL(const TTestActionSpec& aTestActionSpec)
40 CCertStoreTestAction::ConstructL(aTestActionSpec);
43 void CUnifiedCertStoreCount::PerformAction(TRequestStatus& aStatus)
47 TRequestStatus* status = &aStatus;
48 User::RequestComplete(status, KErrNone);
51 void CUnifiedCertStoreCount::PerformCancel()
55 void CUnifiedCertStoreCount::Reset()
57 __ASSERT_DEBUG(EFalse, User::Panic(_L("CUnifiedCertStoreCount::Reset()"), 1));
60 void CUnifiedCertStoreCount::DoReportAction()
62 // iOut.writeString(_L("Getting applications..."));
64 /* iOut.writeString(_L("\tExpected applications :"));
65 TInt iEnd = iExpectedApplications.Count();
66 for (TInt i = 0; i < iEnd; i++)
68 iOut.writeString(_L(" "));
69 iOut.writeNum(iExpectedApplications[i].iUid);
72 iOut.writeNewLine();*/
75 void CUnifiedCertStoreCount::DoCheckResult(TInt /*aError*/)
79 iOut.writeNum(iCount);
80 iConsole.Printf(_L(" %D\n"),iCount);