|
1 /** |
|
2 * Copyright (c) 2002-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_uloggerapiteststep.h |
|
22 @internalTechnology |
|
23 */ |
|
24 #if (!defined __TE_ULOGGERAPITESTSTEP_H__) |
|
25 #define __TE_ULOGGERAPITESTSTEP_H__ |
|
26 #include <testexecutestepbase.h> |
|
27 #include "te_uloggermclsuitestepbase.h" |
|
28 #include <e32base.h> |
|
29 #include <e32math.h> |
|
30 #include <uloggerclient.h> |
|
31 #include "te_setfilterparameters.h" |
|
32 #include "te_utracecmds.h" |
|
33 #include "te_utracekernelcmds.h" |
|
34 |
|
35 |
|
36 |
|
37 /*should put in a general filter test step class do derive the primary and secondary tests from*/ |
|
38 /*pass the filter values, have get/setfilter(0) as members*/ |
|
39 /*derive the relavent primary/secondary specifics*/ |
|
40 |
|
41 class CULoggerAPIPrimTestStep : public CTe_ULoggerMCLSuiteStepBase |
|
42 { |
|
43 public: |
|
44 CULoggerAPIPrimTestStep(); |
|
45 ~CULoggerAPIPrimTestStep(); |
|
46 virtual TVerdict doTestStepPreambleL(); |
|
47 virtual TVerdict doTestStepL(); |
|
48 virtual TVerdict doTestStepPostambleL(); |
|
49 |
|
50 // Please add/modify your class members here: |
|
51 private: |
|
52 }; |
|
53 |
|
54 class CULoggerAPISecondTestStep : public CTe_ULoggerMCLSuiteStepBase |
|
55 { |
|
56 public: |
|
57 CULoggerAPISecondTestStep(); |
|
58 ~CULoggerAPISecondTestStep(); |
|
59 virtual TVerdict doTestStepPreambleL(); |
|
60 virtual TVerdict doTestStepL(); |
|
61 virtual TVerdict doTestStepPostambleL(); |
|
62 |
|
63 // Please add/modify your class members here: |
|
64 private: |
|
65 }; |
|
66 |
|
67 |
|
68 /*import UTrace code for this - sandwich e.g UTraceFunctionStep between ULooger start/stop*/ |
|
69 /* include more than one type of primary and secondary filter, ensure corresponding and unrelated tracing available from UTrace*/ |
|
70 class CULoggerAPILoggingTestStep : public CTe_ULoggerMCLSuiteStepBase |
|
71 { |
|
72 public: |
|
73 CULoggerAPILoggingTestStep(); |
|
74 ~CULoggerAPILoggingTestStep(); |
|
75 virtual TVerdict doTestStepPreambleL(); |
|
76 virtual TVerdict doTestStepL(); |
|
77 virtual TVerdict doTestStepPostambleL(); |
|
78 |
|
79 // Please add/modify your class members here: |
|
80 private: |
|
81 }; |
|
82 |
|
83 class CULoggerAPIKernelTestStep : public CTe_ULoggerMCLSuiteStepBase |
|
84 { |
|
85 public: |
|
86 CULoggerAPIKernelTestStep(); |
|
87 ~CULoggerAPIKernelTestStep(); |
|
88 virtual TVerdict doTestStepPreambleL(); |
|
89 virtual TVerdict doTestStepL(); |
|
90 virtual TVerdict doTestStepPostambleL(); |
|
91 |
|
92 // Please add/modify your class members here: |
|
93 private: |
|
94 }; |
|
95 |
|
96 |
|
97 class CULoggerAPIPrintfTestStep : public CTe_ULoggerMCLSuiteStepBase |
|
98 { |
|
99 public: |
|
100 CULoggerAPIPrintfTestStep(); |
|
101 ~CULoggerAPIPrintfTestStep(); |
|
102 virtual TVerdict doTestStepPreambleL(); |
|
103 virtual TVerdict doTestStepL(); |
|
104 virtual TVerdict doTestStepPostambleL(); |
|
105 |
|
106 // Please add/modify your class members here: |
|
107 private: |
|
108 }; |
|
109 |
|
110 class CULoggerAPIKernelPrintfTestStep : public CTe_ULoggerMCLSuiteStepBase |
|
111 { |
|
112 public: |
|
113 CULoggerAPIKernelPrintfTestStep(); |
|
114 ~CULoggerAPIKernelPrintfTestStep(); |
|
115 virtual TVerdict doTestStepPreambleL(); |
|
116 virtual TVerdict doTestStepL(); |
|
117 virtual TVerdict doTestStepPostambleL(); |
|
118 |
|
119 // Please add/modify your class members here: |
|
120 private: |
|
121 }; |
|
122 |
|
123 |
|
124 _LIT(KULoggerAPIPrimTestStep,"ULoggerAPIPrimTestStep"); |
|
125 _LIT(KULoggerAPISecondTestStep,"ULoggerAPISecondTestStep"); |
|
126 _LIT(KULoggerAPILoggingTestStep,"ULoggerAPILoggingTestStep"); |
|
127 _LIT(KULoggerAPIKernelTestStep,"ULoggerAPIKernelTestStep"); |
|
128 _LIT(KULoggerAPIPrintfTestStep,"ULoggerAPIPrintfTestStep"); |
|
129 _LIT(KULoggerAPIKernelPrintfTestStep,"ULoggerAPIKernelPrintfTestStep"); |
|
130 |
|
131 #endif |