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