|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 */ |
|
24 |
|
25 #include "t_unifiedcertstorecount.h" |
|
26 #include "tcertutils.h" |
|
27 #include "t_certstoredefs.h" |
|
28 #include "t_certstoreout.h" |
|
29 |
|
30 CUnifiedCertStoreCount::~CUnifiedCertStoreCount() |
|
31 { |
|
32 } |
|
33 |
|
34 CUnifiedCertStoreCount::CUnifiedCertStoreCount(RFs& aFs, CConsoleBase& aConsole, |
|
35 Output& aOut) |
|
36 : CCertStoreTestAction(aFs, aConsole, aOut) |
|
37 { |
|
38 } |
|
39 |
|
40 void CUnifiedCertStoreCount::ConstructL(const TTestActionSpec& aTestActionSpec) |
|
41 { |
|
42 CCertStoreTestAction::ConstructL(aTestActionSpec); |
|
43 } |
|
44 |
|
45 void CUnifiedCertStoreCount::PerformAction(TRequestStatus& aStatus) |
|
46 { |
|
47 iFinished = ETrue; |
|
48 DoPerformAction(); |
|
49 TRequestStatus* status = &aStatus; |
|
50 User::RequestComplete(status, KErrNone); |
|
51 } |
|
52 |
|
53 void CUnifiedCertStoreCount::PerformCancel() |
|
54 { |
|
55 } |
|
56 |
|
57 void CUnifiedCertStoreCount::Reset() |
|
58 { |
|
59 __ASSERT_DEBUG(EFalse, User::Panic(_L("CUnifiedCertStoreCount::Reset()"), 1)); |
|
60 } |
|
61 |
|
62 void CUnifiedCertStoreCount::DoReportAction() |
|
63 { |
|
64 // iOut.writeString(_L("Getting applications...")); |
|
65 iOut.writeNewLine(); |
|
66 /* iOut.writeString(_L("\tExpected applications :")); |
|
67 TInt iEnd = iExpectedApplications.Count(); |
|
68 for (TInt i = 0; i < iEnd; i++) |
|
69 { |
|
70 iOut.writeString(_L(" ")); |
|
71 iOut.writeNum(iExpectedApplications[i].iUid); |
|
72 } |
|
73 iOut.writeNewLine(); |
|
74 iOut.writeNewLine();*/ |
|
75 } |
|
76 |
|
77 void CUnifiedCertStoreCount::DoCheckResult(TInt /*aError*/) |
|
78 { |
|
79 DoWriteResult(); |
|
80 iOut.writeNewLine(); |
|
81 iOut.writeNum(iCount); |
|
82 iConsole.Printf(_L(" %D\n"),iCount); |
|
83 iOut.writeNewLine(); |
|
84 } |