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