|
1 /** |
|
2 * Copyright (c) 2004-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 "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 @file Te_UTraceSuiteStepBase.h |
|
22 @internalTechnology |
|
23 */ |
|
24 |
|
25 #if (!defined __TE_UTRACE_STEP_BASE__) |
|
26 #define __TE_UTRACE_STEP_BASE__ |
|
27 #include <testexecutestepbase.h> |
|
28 #include <e32utrace.h> |
|
29 #include "te_btracecmds.h" |
|
30 // Please add your include here if you have |
|
31 |
|
32 /**************************************************************************** |
|
33 * The reason to have a new step base is that it is very much possible |
|
34 * that the all individual test steps have project related common variables |
|
35 * and members |
|
36 * and this is the place to define these common variable and members. |
|
37 * |
|
38 ****************************************************************************/ |
|
39 _LIT16(KName16,"A _LIT16 string with integer parameter %i !"); |
|
40 _LIT8(KName8,"A _LIT8 string with integer parameter %i !"); |
|
41 _LIT16(KAny16,"TAny16 buffer!"); |
|
42 _LIT8(KAny8,"TAny8 buffer!"); |
|
43 _LIT(KLogFileName, "c:\\Logs\\testexecute\\utrace.btl"); |
|
44 _LIT(KLogUBenchFileName, "c:\\Logs\\testexecute\\ubench.btl"); |
|
45 _LIT(KLogKBenchFileName, "c:\\Logs\\testexecute\\kbench.btl"); |
|
46 |
|
47 |
|
48 class CTe_UTraceSuiteStepBase : public CTestStep |
|
49 { |
|
50 public: |
|
51 virtual ~CTe_UTraceSuiteStepBase(); |
|
52 CTe_UTraceSuiteStepBase(); |
|
53 virtual TVerdict doTestStepPreambleL(); |
|
54 virtual TVerdict doTestStepPostambleL(); |
|
55 void ReplaceFile(const TDesC& aFilename); |
|
56 void OpenFile(const TDesC& aFilename); |
|
57 //Please add your class members which will be common to all individual test steps: |
|
58 protected: |
|
59 TInt GetConfigs(); |
|
60 TInt StartLogging(); |
|
61 TInt StopLogging(); |
|
62 |
|
63 HBufC8* iReadData; |
|
64 HBufC8* iWriteData; |
|
65 |
|
66 TPrimaryFilter iPF1; |
|
67 TPrimaryFilter iPF2; |
|
68 TSecondaryFilter iSF1; |
|
69 TBool iLoggingEnabled; |
|
70 TBool iTraceEnabled; |
|
71 |
|
72 TBuf16<0x100> iBuf16; |
|
73 TBuf8<0x100> iBuf8; |
|
74 TBuf16<0x100> iAny16; |
|
75 TBuf8<0x100> iAny8; |
|
76 TUint32 iA1; |
|
77 TUint32 iA2; |
|
78 TUint32 iA3; |
|
79 TUint32 iUid; |
|
80 TUint32 iTid; |
|
81 TUint32 iUidReal; |
|
82 |
|
83 Tracer iTracer; |
|
84 TPtrC iFilename; |
|
85 }; |
|
86 |
|
87 #endif |