|
1 /* |
|
2 * Copyright (c) 2002 - 2007 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 the License "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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <Stiftestinterface.h> |
|
23 #include "tprovidertest.h" |
|
24 #include "teventdetails.h" |
|
25 #include "tfilterdetails.h" |
|
26 |
|
27 // EXTERNAL DATA STRUCTURES |
|
28 //extern ?external_data; |
|
29 |
|
30 // EXTERNAL FUNCTION PROTOTYPES |
|
31 //extern ?external_function( ?arg_type,?arg_type ); |
|
32 |
|
33 // CONSTANTS |
|
34 //const ?type ?constant_var = ?constant; |
|
35 |
|
36 // MACROS |
|
37 //#define ?macro ?macro_def |
|
38 |
|
39 // LOCAL CONSTANTS AND MACROS |
|
40 //const ?type ?constant_var = ?constant; |
|
41 //#define ?macro_name ?macro_def |
|
42 |
|
43 // MODULE DATA STRUCTURES |
|
44 //enum ?declaration |
|
45 //typedef ?declaration |
|
46 |
|
47 // LOCAL FUNCTION PROTOTYPES |
|
48 //?type ?function_name( ?arg_type, ?arg_type ); |
|
49 |
|
50 // FORWARD DECLARATIONS |
|
51 //class ?FORWARD_CLASSNAME; |
|
52 |
|
53 // ============================= LOCAL FUNCTIONS =============================== |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // ?function_name ?description. |
|
57 // ?description |
|
58 // Returns: ?value_1: ?description |
|
59 // ?value_n: ?description_line1 |
|
60 // ?description_line2 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 /* |
|
64 ?type ?function_name( |
|
65 ?arg_type arg, // ?description |
|
66 ?arg_type arg) // ?description |
|
67 { |
|
68 |
|
69 ?code // ?comment |
|
70 |
|
71 // ?comment |
|
72 ?code |
|
73 } |
|
74 */ |
|
75 |
|
76 // ============================ MEMBER FUNCTIONS =============================== |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // Ctprovidertest::Ctprovidertest |
|
80 // C++ default constructor can NOT contain any code, that |
|
81 // might leave. |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 Ctprovidertest::Ctprovidertest( |
|
85 CTestModuleIf& aTestModuleIf ): |
|
86 CScriptBase( aTestModuleIf ) |
|
87 { |
|
88 } |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // Ctprovidertest::ConstructL |
|
92 // Symbian 2nd phase constructor can leave. |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 void Ctprovidertest::ConstructL() |
|
96 { |
|
97 iLog = CStifLogger::NewL( KtprovidertestLogPath, |
|
98 KtprovidertestLogFile, |
|
99 CStifLogger::ETxt, |
|
100 CStifLogger::EFile, |
|
101 EFalse ); |
|
102 |
|
103 } |
|
104 |
|
105 // ----------------------------------------------------------------------------- |
|
106 // Ctprovidertest::NewL |
|
107 // Two-phased constructor. |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 Ctprovidertest* Ctprovidertest::NewL( |
|
111 CTestModuleIf& aTestModuleIf ) |
|
112 { |
|
113 Ctprovidertest* self = new (ELeave) Ctprovidertest( aTestModuleIf ); |
|
114 |
|
115 CleanupStack::PushL( self ); |
|
116 self->ConstructL(); |
|
117 CleanupStack::Pop(); |
|
118 |
|
119 return self; |
|
120 |
|
121 } |
|
122 |
|
123 // Destructor |
|
124 Ctprovidertest::~Ctprovidertest() |
|
125 { |
|
126 |
|
127 // Delete resources allocated from test methods |
|
128 Delete(); |
|
129 |
|
130 // Delete logger |
|
131 delete iLog; |
|
132 |
|
133 } |
|
134 |
|
135 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
136 |
|
137 // ----------------------------------------------------------------------------- |
|
138 // LibEntryL is a polymorphic Dll entry point. |
|
139 // Returns: CScriptBase: New CScriptBase derived object |
|
140 // ----------------------------------------------------------------------------- |
|
141 // |
|
142 EXPORT_C CScriptBase* LibEntryL( |
|
143 CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
144 { |
|
145 |
|
146 return ( CScriptBase* ) Ctprovidertest::NewL( aTestModuleIf ); |
|
147 |
|
148 } |
|
149 |
|
150 |
|
151 // End of File |