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