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 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> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
23 |
#include <liwcommon.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
24 |
#include <liwservicehandler.h> |
19 | 25 |
|
26 |
#include "sensrprovidertest.h" |
|
27 |
||
28 |
||
29 |
||
30 |
||
31 |
||
32 |
||
33 |
// ============================ MEMBER FUNCTIONS =============================== |
|
34 |
||
35 |
// ----------------------------------------------------------------------------- |
|
36 |
// CSensrProviderTest::CSensrProviderTest |
|
37 |
// C++ default constructor can NOT contain any code, that |
|
38 |
// might leave. |
|
39 |
// ----------------------------------------------------------------------------- |
|
40 |
// |
|
41 |
CSensrProviderTest::CSensrProviderTest( |
|
42 |
CTestModuleIf& aTestModuleIf ): |
|
43 |
CScriptBase( aTestModuleIf ) |
|
44 |
{ |
|
45 |
} |
|
46 |
||
47 |
// ----------------------------------------------------------------------------- |
|
48 |
// CSensrProviderTest::ConstructL |
|
49 |
// Symbian 2nd phase constructor can leave. |
|
50 |
// ----------------------------------------------------------------------------- |
|
51 |
// |
|
52 |
void CSensrProviderTest::ConstructL() |
|
53 |
{ |
|
54 |
iLog = CStifLogger::NewL( KTSensrProviderLogPath, |
|
55 |
KTSensrProviderLogFile, |
|
56 |
CStifLogger::ETxt, |
|
57 |
CStifLogger::ERDebug, |
|
58 |
EFalse ); |
|
59 |
||
60 |
||
61 |
||
62 |
} |
|
63 |
||
64 |
// ----------------------------------------------------------------------------- |
|
65 |
// CSensrProviderTest::NewL |
|
66 |
// Two-phased constructor. |
|
67 |
// ----------------------------------------------------------------------------- |
|
68 |
// |
|
69 |
CSensrProviderTest* CSensrProviderTest::NewL( |
|
70 |
CTestModuleIf& aTestModuleIf ) |
|
71 |
{ |
|
72 |
CSensrProviderTest* self = new (ELeave) CSensrProviderTest( aTestModuleIf ); |
|
73 |
||
74 |
CleanupStack::PushL( self ); |
|
75 |
self->ConstructL(); |
|
76 |
CleanupStack::Pop(); |
|
77 |
||
78 |
return self; |
|
79 |
||
80 |
} |
|
81 |
||
82 |
// Destructor |
|
83 |
CSensrProviderTest::~CSensrProviderTest() |
|
84 |
{ |
|
85 |
// Delete resources allocated from test methods |
|
86 |
Delete(); |
|
87 |
||
88 |
// Delete logger |
|
89 |
delete iLog; |
|
90 |
||
91 |
||
92 |
} |
|
93 |
||
94 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
95 |
||
96 |
// ----------------------------------------------------------------------------- |
|
97 |
// LibEntryL is a polymorphic Dll entry point. |
|
98 |
// Returns: CScriptBase: New CScriptBase derived object |
|
99 |
// ----------------------------------------------------------------------------- |
|
100 |
// |
|
101 |
EXPORT_C CScriptBase* LibEntryL( |
|
102 |
CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
103 |
{ |
|
104 |
||
105 |
return ( CScriptBase* ) CSensrProviderTest::NewL( aTestModuleIf ); |
|
106 |
||
107 |
} |
|
108 |
||
109 |
// ----------------------------------------------------------------------------- |
|
110 |
// E32Dll is a DLL entry point function. |
|
111 |
// Returns: KErrNone |
|
112 |
// ----------------------------------------------------------------------------- |
|
113 |
// |
|
114 |
#ifndef EKA2 // Hide Dll entry point to EKA2 |
|
115 |
GLDEF_C TInt E32Dll( |
|
116 |
TDllReason /*aReason*/) // Reason code |
|
117 |
{ |
|
118 |
return(KErrNone); |
|
119 |
||
120 |
} |
|
121 |
#endif // EKA2 |
|
122 |
||
123 |
// End of File |