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 |
#ifndef SENSRPROVIDERTEST_H |
|
22 |
#define SENSRPROVIDERTEST_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <StifLogger.h> |
|
26 |
#include <TestScripterInternal.h> |
|
27 |
#include <StifTestModule.h> |
|
28 |
||
29 |
||
30 |
#include <e32svr.h> |
|
31 |
#include <f32file.h> |
|
32 |
#include <StifParser.h> |
|
33 |
#include <e32std.h> |
|
33
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
34 |
#include <StifTestInterface.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
35 |
#include <liwgenericparam.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
36 |
#include <liwservicehandler.h> |
50974a8b132e
Revision: 200945
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
19
diff
changeset
|
37 |
#include <liwvariant.h> |
19 | 38 |
#include <utf.h> |
39 |
||
40 |
/*#include "sensorservice.h" |
|
41 |
#include "sensorservice.hrh" |
|
42 |
#include "sensrtestthread.h"*/ |
|
43 |
||
44 |
// Logging path |
|
45 |
_LIT( KTSensrProviderLogPath, "\\logs\\testframework\\" ); |
|
46 |
// Log file |
|
47 |
_LIT( KTSensrProviderLogFile, "sensrprovider.txt" ); |
|
48 |
||
49 |
||
50 |
_LIT8(KDataSource , "ISensor"); |
|
51 |
_LIT8(KService , "Service.Sensor") ; |
|
52 |
||
53 |
||
54 |
||
55 |
||
56 |
// CLASS DECLARATION |
|
57 |
||
58 |
/** |
|
59 |
* CSensrProviderTest test class for STIF Test Framework TestScripter. |
|
60 |
* ?other_description_lines |
|
61 |
* |
|
62 |
* @lib ?library |
|
63 |
* @since ?Series60_version |
|
64 |
*/ |
|
65 |
NONSHARABLE_CLASS(CSensrProviderTest) : public CScriptBase |
|
66 |
{ |
|
67 |
public: // Constructors and destructor |
|
68 |
||
69 |
/** |
|
70 |
* Two-phased constructor. |
|
71 |
*/ |
|
72 |
static CSensrProviderTest* NewL( CTestModuleIf& aTestModuleIf ); |
|
73 |
||
74 |
/** |
|
75 |
* Destructor. |
|
76 |
*/ |
|
77 |
virtual ~CSensrProviderTest(); |
|
78 |
||
79 |
public: // New functions |
|
80 |
||
81 |
/** |
|
82 |
* ?member_description. |
|
83 |
* @since ?Series60_version |
|
84 |
* @param ?arg1 ?description |
|
85 |
* @return ?description |
|
86 |
*/ |
|
87 |
//?type ?member_function( ?type ?arg1 ); |
|
88 |
||
89 |
public: // Functions from base classes |
|
90 |
||
91 |
/** |
|
92 |
* From CScriptBase Runs a script line. |
|
93 |
* @since ?Series60_version |
|
94 |
* @param aItem Script line containing method name and parameters |
|
95 |
* @return Symbian OS error code |
|
96 |
*/ |
|
97 |
virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
98 |
||
99 |
||
100 |
private: |
|
101 |
||
102 |
/** |
|
103 |
* C++ default constructor. |
|
104 |
*/ |
|
105 |
CSensrProviderTest( CTestModuleIf& aTestModuleIf ); |
|
106 |
||
107 |
/** |
|
108 |
* By default Symbian 2nd phase constructor is private. |
|
109 |
*/ |
|
110 |
void ConstructL(); |
|
111 |
||
112 |
// Prohibit copy constructor if not deriving from CBase. |
|
113 |
// ?classname( const ?classname& ); |
|
114 |
// Prohibit assigment operator if not deriving from CBase. |
|
115 |
// ?classname& operator=( const ?classname& ); |
|
116 |
||
117 |
/** |
|
118 |
* Frees all resources allocated from test methods. |
|
119 |
* @since ?Series60_version |
|
120 |
*/ |
|
121 |
void Delete(); |
|
122 |
virtual TInt TestEcomDiscovery(CStifItemParser &aItem ); |
|
123 |
virtual TInt TestFindSensorChannel(CStifItemParser &aItem ); |
|
124 |
virtual TInt GeneralNeg1(CStifItemParser &aItem ); |
|
125 |
virtual TInt GeneralNeg2(CStifItemParser &aItem ); |
|
126 |
virtual TInt TestGetChannelProperty(CStifItemParser &aItem ); |
|
127 |
virtual TInt TestRegisterForNotificationData(CStifItemParser &aItem ); |
|
128 |
}; |
|
129 |
||
130 |
TInt GetChnlDataAsynch(TAny * aPtr); |
|
131 |
||
132 |
#endif // SENSRPROVIDERTEST_H |
|
133 |
||
134 |
// End of File |