os/security/cryptoservices/certificateandkeymgmt/tcertstore/t_certstoreactionsclient.h
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.
27 #ifndef __T_CERTSTOREACTIONSCLIENT_H__
28 #define __T_CERTSTOREACTIONSCLIENT_H__
30 #include "t_certstoreactions.h"
32 class CInitCertificateAppInfoManager : public CCertStoreTestAction
35 static CTestAction* NewL(RFs &aFs,
36 CConsoleBase& aConsole, Output& aOut, const TTestActionSpec& aTestActionSpec);
37 static CTestAction* NewLC(RFs &aFs,
38 CConsoleBase& aConsole, Output& aOut, const TTestActionSpec& aTestActionSpec);
39 virtual ~CInitCertificateAppInfoManager();
40 virtual void PerformAction(TRequestStatus& aStatus);
41 virtual void PerformCancel();
45 CInitCertificateAppInfoManager(RFs &aFs,
46 CConsoleBase& aConsole, Output& aOut);
47 void ConstructL(const TTestActionSpec& aTestActionSpec);
51 void DoReportAction();
52 void DoCheckResult(TInt aError);
66 class CDeleteCertificateAppInfoManager : public CCertStoreTestAction
69 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, Output& aOut,
70 const TTestActionSpec& aTestActionSpec);
71 ~CDeleteCertificateAppInfoManager();
72 virtual void PerformAction(TRequestStatus& aStatus);
73 virtual void PerformCancel();
77 CDeleteCertificateAppInfoManager(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
78 void ConstructL(const TTestActionSpec& aTestActionSpec);
79 void DoReportAction();
80 void DoCheckResult(TInt aError);
94 * Client management tests
96 class CAddClient : public CCertStoreTestAction
99 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, Output& aOut,
100 const TTestActionSpec& aTestActionSpec);
102 virtual void PerformAction(TRequestStatus& aStatus);
103 virtual void PerformCancel();
104 virtual void Reset();
107 CAddClient(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
108 void ConstructL(const TTestActionSpec& aTestActionSpec);
109 void DoReportAction();
110 void DoCheckResult(TInt aError);
121 TCertificateAppInfo* iClientInfo;
124 class CGetClients : public CCertStoreTestAction
127 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, Output& aOut,
128 const TTestActionSpec& aTestActionSpec);
130 virtual void PerformAction(TRequestStatus& aStatus);
131 virtual void PerformCancel();
132 virtual void Reset();
135 CGetClients(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
136 void ConstructL(const TTestActionSpec& aTestActionSpec);
137 void DoReportAction();
138 void DoCheckResult(TInt aError);
149 const RArray<TCertificateAppInfo>* iClients;
150 RArray<TUid> iExpectedClients;
153 class CRemoveClient : public CCertStoreTestAction
156 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, Output& aOut,
157 const TTestActionSpec& aTestActionSpec);
159 virtual void PerformAction(TRequestStatus& aStatus);
160 virtual void PerformCancel();
161 virtual void Reset();
164 CRemoveClient(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
165 void ConstructL(const TTestActionSpec& aTestActionSpec);
166 void DoReportAction();
167 void DoCheckResult(TInt aError);