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 "tcontactsprovider_sim.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 |
iCase =0; |
|
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(); |
|
82 |
delete iLog ; |
|
83 |
||
84 |
||
85 |
} |
|
86 |
||
87 |
||
88 |
// ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
89 |
||
90 |
// ----------------------------------------------------------------------------- |
|
91 |
// LibEntryL is a polymorphic Dll entry point. |
|
92 |
// Returns: CScriptBase: New CScriptBase derived object |
|
93 |
// ----------------------------------------------------------------------------- |
|
94 |
// |
|
95 |
EXPORT_C CScriptBase* LibEntryL( |
|
96 |
CTestModuleIf& aTestModuleIf ) // Backpointer to STIF Test Framework |
|
97 |
{ |
|
98 |
||
99 |
return ( CScriptBase* ) CContactsUT::NewL( aTestModuleIf ); |
|
100 |
||
101 |
} |
|
102 |
||
103 |
||
104 |
// End of File |