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> |
19 | 23 |
//#include <SAPI_TEST\testprg.h> |
24 |
//#include <sendmessage.h> |
|
25 |
//#include<messagenotify.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
26 |
#include "tdeletemessagetest.h" |
19 | 27 |
//#include <SAPI_TEST\testprg.h> |
28 |
||
29 |
||
30 |
||
31 |
// ============================ MEMBER FUNCTIONS =============================== |
|
32 |
||
33 |
// ----------------------------------------------------------------------------- |
|
34 |
// CTDeleteMessageTest::CTDeleteMessageTest |
|
35 |
// C++ default constructor can NOT contain any code, that |
|
36 |
// might leave. |
|
37 |
// ----------------------------------------------------------------------------- |
|
38 |
// |
|
39 |
CTDeleteMessageTest::CTDeleteMessageTest( |
|
40 |
CTestModuleIf& aTestModuleIf ): |
|
41 |
CScriptBase( aTestModuleIf ) |
|
42 |
{ |
|
43 |
||
44 |
} |
|
45 |
||
46 |
// ----------------------------------------------------------------------------- |
|
47 |
// CTDeleteMessageTest::ConstructL |
|
48 |
// Symbian 2nd phase constructor can leave. |
|
49 |
// ----------------------------------------------------------------------------- |
|
50 |
// |
|
51 |
void CTDeleteMessageTest::ConstructL() |
|
52 |
{ |
|
53 |
//iLog = CStifLogger::NewL( KTMsgTestLogPath, |
|
54 |
// KTMsgTestLogFile, |
|
55 |
// CStifLogger::ETxt, |
|
56 |
// CStifLogger::EFile, |
|
57 |
// EFalse ); |
|
58 |
||
59 |
||
60 |
||
61 |
} |
|
62 |
||
63 |
// ----------------------------------------------------------------------------- |
|
64 |
// CTDeleteMessageTest::NewL |
|
65 |
// Two-phased constructor. |
|
66 |
// ----------------------------------------------------------------------------- |
|
67 |
// |
|
68 |
CTDeleteMessageTest* CTDeleteMessageTest::NewL( |
|
69 |
CTestModuleIf& aTestModuleIf ) |
|
70 |
{ |
|
71 |
CTDeleteMessageTest* self = new (ELeave) CTDeleteMessageTest( aTestModuleIf ); |
|
72 |
||
73 |
CleanupStack::PushL( self ); |
|
74 |
self->ConstructL(); |
|
75 |
CleanupStack::Pop(); |
|
76 |
||
77 |
return self; |
|
78 |
||
79 |
} |
|
80 |
||
81 |
// Destructor |
|
82 |
CTDeleteMessageTest::~CTDeleteMessageTest() |
|
83 |
{ |
|
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* ) CTDeleteMessageTest::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 |