sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
/**
|
sl@0
|
22 |
@file
|
sl@0
|
23 |
@internalTechnology
|
sl@0
|
24 |
*/
|
sl@0
|
25 |
|
sl@0
|
26 |
#ifndef __T_CONCURRENTCERTSTORE_H__
|
sl@0
|
27 |
#define __T_CONCURRENTCERTSTORE_H__
|
sl@0
|
28 |
|
sl@0
|
29 |
#include "t_certstoreactions.h"
|
sl@0
|
30 |
#include "t_testactionspec.h"
|
sl@0
|
31 |
#include "t_output.h"
|
sl@0
|
32 |
|
sl@0
|
33 |
// This class can be used to flag concurrent certstore testing
|
sl@0
|
34 |
// It inherits from CTestAction so it can be used in the script
|
sl@0
|
35 |
// but otherwise doesn't carry out any test.
|
sl@0
|
36 |
// When in a script and enabled, the concurrent tester singleton
|
sl@0
|
37 |
// is initialised and can then be referenced by all following tests in
|
sl@0
|
38 |
// various performance operations
|
sl@0
|
39 |
|
sl@0
|
40 |
class CTestConcurrentCertStore : public CCertStoreTestAction
|
sl@0
|
41 |
{
|
sl@0
|
42 |
public:
|
sl@0
|
43 |
static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, Output& aOut,
|
sl@0
|
44 |
const TTestActionSpec& aTestActionSpec);
|
sl@0
|
45 |
static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole, Output& aOut,
|
sl@0
|
46 |
const TTestActionSpec& aTestActionSpec);
|
sl@0
|
47 |
~CTestConcurrentCertStore();
|
sl@0
|
48 |
public:
|
sl@0
|
49 |
virtual void PerformAction(TRequestStatus& aStatus);
|
sl@0
|
50 |
protected:
|
sl@0
|
51 |
CTestConcurrentCertStore(RFs& aFs, CConsoleBase& aConsole, Output& aOut);
|
sl@0
|
52 |
private:
|
sl@0
|
53 |
virtual void DoReportAction();
|
sl@0
|
54 |
virtual void DoCheckResult(TInt aError);
|
sl@0
|
55 |
virtual void DoPerformPrerequisite(TRequestStatus& aStatus);
|
sl@0
|
56 |
virtual void DoPerformPostrequisite(TRequestStatus& aStatus);
|
sl@0
|
57 |
private:
|
sl@0
|
58 |
void ConstructL(const TTestActionSpec& aTestActionSpec);
|
sl@0
|
59 |
};
|
sl@0
|
60 |
|
sl@0
|
61 |
class CConcurrentTester : public CBase
|
sl@0
|
62 |
{
|
sl@0
|
63 |
public:
|
sl@0
|
64 |
static void SetDoingConcurrentTesting(TBool aTestConcurrent);
|
sl@0
|
65 |
static TBool IsDoingConcurrentTesting();
|
sl@0
|
66 |
public:
|
sl@0
|
67 |
static void SanitizeTestResult(Output& aOut, TBool& aResult);
|
sl@0
|
68 |
private:
|
sl@0
|
69 |
CConcurrentTester();
|
sl@0
|
70 |
~CConcurrentTester();
|
sl@0
|
71 |
};
|
sl@0
|
72 |
|
sl@0
|
73 |
|
sl@0
|
74 |
|
sl@0
|
75 |
|
sl@0
|
76 |
|
sl@0
|
77 |
|
sl@0
|
78 |
|
sl@0
|
79 |
#endif // __T_CONCURRENTCERTSTORE_H__
|