equal
deleted
inserted
replaced
|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Class to handle the acumulation of pass/fail data on the tests |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalTechnology |
|
21 */ |
|
22 |
|
23 #ifndef __TOCSP_RESULT_H__ |
|
24 #define __TOCSP_RESULT_H__ |
|
25 |
|
26 #include "e32base.h" |
|
27 |
|
28 class CTOCSPLogger; |
|
29 |
|
30 class CTOCSPResult : public CBase |
|
31 { |
|
32 public: |
|
33 static CTOCSPResult* NewLC(); |
|
34 static CTOCSPResult* NewL(); |
|
35 ~CTOCSPResult(); |
|
36 |
|
37 // Call this when you're starting a new test |
|
38 void NewTestL(const TDesC& aName); |
|
39 |
|
40 // Then call this to say if it passed |
|
41 void ResultL(const TBool aResult); |
|
42 |
|
43 // Print text report on conclusions |
|
44 void LogSummaryL(CTOCSPLogger& aLog); |
|
45 |
|
46 private: |
|
47 void CheckL() const; |
|
48 |
|
49 private: |
|
50 RPointerArray<HBufC> iNames; |
|
51 RArray<TBool> iResults; |
|
52 |
|
53 TInt iTotal; |
|
54 TInt iPassed; |
|
55 TInt iFailed; |
|
56 }; |
|
57 |
|
58 #endif // __TOCSP_RESULT_H__ |