|
1 // Copyright (c) 2007-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 // Name : CTe_multiparttrace.h |
|
15 // Version : 1.0 |
|
16 // CCTe_multiparttrace declaration |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 #ifndef _CTE_MULTIPARTTRACE_H |
|
22 #define _CTE_MULTIPARTTRACE_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 #include <e32base.h> |
|
27 #include <testexecutestepbase.h> |
|
28 #include <e32math.h> |
|
29 #include <uloggerclient.h> |
|
30 #include "te_suite_step_base.h" |
|
31 #include "te_suite_defs.h" |
|
32 |
|
33 _LIT(KMultiTraceTestStep, "CMultiTraceTestStep"); |
|
34 |
|
35 |
|
36 /** |
|
37 * CCTe_multiparttrace |
|
38 * |
|
39 */ |
|
40 class CCTe_multiparttrace : public CTe_UTraceSuiteStepBase |
|
41 { |
|
42 public: |
|
43 enum TTraceMethod |
|
44 { |
|
45 ETraceUsingPrintF = 0, |
|
46 ETraceUsingTraceBig, |
|
47 }; |
|
48 |
|
49 // Constructor and destructor |
|
50 CCTe_multiparttrace(); |
|
51 ~CCTe_multiparttrace(); |
|
52 |
|
53 //from CTe_ULoggerMCLSuiteStepBase |
|
54 virtual TVerdict doTestStepPreambleL(); |
|
55 virtual TVerdict doTestStepL(); |
|
56 virtual TVerdict doTestStepPostambleL(); |
|
57 |
|
58 private: |
|
59 TInt GenerateTraceDataL(TTraceMethod aTraceMethod, TUint aMaxDataSize, TUint8 aFillPattern); |
|
60 TInt CheckDataL(TTraceMethod aTraceMethod, TUint aMaxDataSize, TUint8 aFillPattern); |
|
61 TInt ValidateTraceDataL(const TUint8* aDataPtr, TUint aDataSize, TUint aTraceRecords, TUint8 aFillPattern); |
|
62 TInt ValidateTracePayloadL(const TUint8* aDataPtr, TUint aDataSize, TInt aTotalTraceSize, TBool aMultiPart, TUint8 aExpectedFirstVa, TBool aFirstTrace, TBool aLastTrace); |
|
63 |
|
64 //data |
|
65 Ulogger::RULogger iUlogger; |
|
66 }; |
|
67 |
|
68 #endif // CTE_MULTIPARTTRACE_H |