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) 2006-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 |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
22 |
#include <StifTestInterface.h> |
19 | 23 |
#include <gmxmlparser.h> |
24 |
#include <gmxmlnode.h> |
|
25 |
#include "tmediaprovidertest.h" |
|
26 |
using namespace LIW; |
|
27 |
||
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 |
// Csapi_getlistapplication:Csapi_getlistapplication |
|
81 |
// C++ default constructor can NOT contain any code, that |
|
82 |
// might leave. |
|
83 |
// ----------------------------------------------------------------------------- |
|
84 |
// |
|
85 |
CProviderTest::CProviderTest( |
|
86 |
CTestModuleIf& aTestModuleIf ): |
|
87 |
CScriptBase( aTestModuleIf ) |
|
88 |
{ |
|
89 |
} |
|
90 |
||
91 |
||
92 |
//TInt CProviderTest::iCount=1; |
|
93 |
// ----------------------------------------------------------------------------- |
|
94 |
// CProviderTest:ConstructL |
|
95 |
// Symbian 2nd phase constructor can leave. |
|
96 |
// ----------------------------------------------------------------------------- |
|
97 |
// |
|
98 |
void CProviderTest::ConstructL() |
|
99 |
{ |
|
100 |
iLog = CStifLogger::NewL( KappmanagertestLogPath, |
|
101 |
KappmanagertestLogFile, |
|
102 |
CStifLogger::ETxt, |
|
103 |
CStifLogger::EFile, |
|
104 |
EFalse ); |
|
105 |
||
106 |
} |
|
107 |
||
108 |
// ----------------------------------------------------------------------------- |
|
109 |
// CProviderTest:NewL |
|
110 |
// Two-phased constructor. |
|
111 |
// ----------------------------------------------------------------------------- |
|
112 |
// |
|
113 |
CProviderTest* CProviderTest::NewL( |
|
114 |
CTestModuleIf& aTestModuleIf ) |
|
115 |
{ |
|
116 |
||
117 |
||
118 |
CProviderTest* self = new (ELeave) CProviderTest( aTestModuleIf ); |
|
119 |
||
120 |
CleanupStack::PushL( self ); |
|
121 |
self->ConstructL(); |
|
122 |
CleanupStack::Pop(); |
|
123 |
||
124 |
return self; |
|
125 |
||
126 |
} |
|
127 |
||
128 |
// Destructor |
|
129 |
CProviderTest::~CProviderTest() |
|
130 |
{ |
|
131 |
#ifdef LIBC_OLD_BACKEND |
|
132 |
MrtClose(); |
|
133 |
#endif |
|
134 |
||
135 |
// Delete resources allocated from test methods |
|
136 |
Delete(); |
|
137 |
||
138 |
// Delete logger |
|
139 |
delete iLog; |
|
140 |
||
141 |
} |
|
142 |
||
143 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
144 |
||
145 |
// ----------------------------------------------------------------------------- |
|
146 |
// LibEntryL is a polymorphic Dll entry point. |
|
147 |
// Returns: CScriptBase: New CScriptBase derived object |
|
148 |
// ----------------------------------------------------------------------------- |
|
149 |
// |
|
150 |
EXPORT_C CScriptBase* LibEntryL( |
|
151 |
CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
152 |
{ |
|
153 |
||
154 |
return ( CScriptBase* ) CProviderTest::NewL( aTestModuleIf ); |
|
155 |
||
156 |
} |
|
157 |
||
158 |
// ----------------------------------------------------------------------------- |
|
159 |
// E32Dll is a DLL entry point function. |
|
160 |
// Returns: KErrNone |
|
161 |
// ----------------------------------------------------------------------------- |
|
162 |
// |
|
163 |
#ifndef EKA2 // Hide Dll entry point to EKA2 |
|
164 |
GLDEF_C TInt E32Dll( |
|
165 |
TDllReason /*aReason*/) // Reason code |
|
166 |
{ |
|
167 |
return(KErrNone); |
|
168 |
||
169 |
} |
|
170 |
#endif // EKA2 |
|
171 |
||
172 |
// End of File |