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 |
|
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 "tsysinfoservicetests.h" |
24 |
||
25 |
||
26 |
// ============================ MEMBER FUNCTIONS =============================== |
|
27 |
||
28 |
// ----------------------------------------------------------------------------- |
|
29 |
// Ctsysinfoservicetests::Ctsysinfoservicetests |
|
30 |
// C++ default constructor can NOT contain any code, that |
|
31 |
// might leave. |
|
32 |
// ----------------------------------------------------------------------------- |
|
33 |
// |
|
34 |
Ctsysinfoservicetests::Ctsysinfoservicetests( |
|
35 |
CTestModuleIf& aTestModuleIf ): |
|
36 |
CScriptBase( aTestModuleIf ) |
|
37 |
{ |
|
38 |
} |
|
39 |
||
40 |
// ----------------------------------------------------------------------------- |
|
41 |
// Ctsysinfoservicetests::ConstructL |
|
42 |
// Symbian 2nd phase constructor can leave. |
|
43 |
// ----------------------------------------------------------------------------- |
|
44 |
// |
|
45 |
void Ctsysinfoservicetests::ConstructL() |
|
46 |
{ |
|
47 |
iLog = CStifLogger::NewL( KtsysinfoservicetestsLogPath, |
|
48 |
KtsysinfoservicetestsLogFile, |
|
49 |
CStifLogger::ETxt, |
|
50 |
CStifLogger::EFile, |
|
51 |
EFalse ); |
|
52 |
||
53 |
} |
|
54 |
||
55 |
// ----------------------------------------------------------------------------- |
|
56 |
// Ctsysinfoservicetests::NewL |
|
57 |
// Two-phased constructor. |
|
58 |
// ----------------------------------------------------------------------------- |
|
59 |
// |
|
60 |
Ctsysinfoservicetests* Ctsysinfoservicetests::NewL( |
|
61 |
CTestModuleIf& aTestModuleIf ) |
|
62 |
{ |
|
63 |
Ctsysinfoservicetests* self = new (ELeave) Ctsysinfoservicetests( aTestModuleIf ); |
|
64 |
||
65 |
CleanupStack::PushL( self ); |
|
66 |
self->ConstructL(); |
|
67 |
CleanupStack::Pop(); |
|
68 |
||
69 |
return self; |
|
70 |
||
71 |
} |
|
72 |
||
73 |
// Destructor |
|
74 |
Ctsysinfoservicetests::~Ctsysinfoservicetests() |
|
75 |
{ |
|
76 |
||
77 |
// Delete resources allocated from test methods |
|
78 |
Delete(); |
|
79 |
||
80 |
// Delete logger |
|
81 |
delete iLog; |
|
82 |
||
83 |
} |
|
84 |
||
85 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
86 |
||
87 |
// ----------------------------------------------------------------------------- |
|
88 |
// LibEntryL is a polymorphic Dll entry point. |
|
89 |
// Returns: CScriptBase: New CScriptBase derived object |
|
90 |
// ----------------------------------------------------------------------------- |
|
91 |
// |
|
92 |
EXPORT_C CScriptBase* LibEntryL( |
|
93 |
CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
94 |
{ |
|
95 |
||
96 |
return ( CScriptBase* ) Ctsysinfoservicetests::NewL( aTestModuleIf ); |
|
97 |
||
98 |
} |
|
99 |
||
100 |
||
101 |
// End of File |