3
|
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 |
#ifndef BRCTLAPITEST_H
|
|
21 |
#define BRCTLAPITEST_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <StifLogger.h>
|
|
25 |
#include <TestScripterInternal.h>
|
|
26 |
#include <StifTestModule.h>
|
|
27 |
|
|
28 |
#include <coecntrl.h>
|
|
29 |
#include "BrCtlApiTestContainer.h"
|
|
30 |
|
|
31 |
// CONSTANTS
|
|
32 |
//const ?type ?constant_var = ?constant;
|
|
33 |
|
|
34 |
// MACROS
|
|
35 |
//#define ?macro ?macro_def
|
|
36 |
#define TEST_CLASS_VERSION_MAJOR 0
|
|
37 |
#define TEST_CLASS_VERSION_MINOR 0
|
|
38 |
#define TEST_CLASS_VERSION_BUILD 0
|
|
39 |
|
|
40 |
// Logging path
|
|
41 |
_LIT( KBrCtlApiTestLogPath, "\\logs\\testframework\\BrCtlApiTest\\" );
|
|
42 |
// Log file
|
|
43 |
_LIT( KBrCtlApiTestLogFile, "BrCtlApiTest.txt" );
|
|
44 |
_LIT( KBrCtlApiTestLogFileWithTitle, "BrCtlApiTest_[%S].txt" );
|
|
45 |
|
|
46 |
// FUNCTION PROTOTYPES
|
|
47 |
//?type ?function_name(?arg_list);
|
|
48 |
|
|
49 |
// FORWARD DECLARATIONS
|
|
50 |
//class ?FORWARD_CLASSNAME;
|
|
51 |
class CBrowserControlApiTest;
|
|
52 |
|
|
53 |
// DATA TYPES
|
|
54 |
//enum ?declaration
|
|
55 |
//typedef ?declaration
|
|
56 |
//extern ?data_type;
|
|
57 |
|
|
58 |
// CLASS DECLARATION
|
|
59 |
|
|
60 |
/**
|
|
61 |
* CBrowserControlApiTest test class for STIF Test Framework TestScripter.
|
|
62 |
* ?other_description_lines
|
|
63 |
*
|
|
64 |
* @lib ?library
|
|
65 |
* @since ?Series60_version
|
|
66 |
*/
|
|
67 |
NONSHARABLE_CLASS(CBrowserControlApiTest) : public CScriptBase
|
|
68 |
{
|
|
69 |
public: // Constructors and destructor
|
|
70 |
|
|
71 |
/**
|
|
72 |
* Two-phased constructor.
|
|
73 |
*/
|
|
74 |
static CBrowserControlApiTest* NewL( CTestModuleIf& aTestModuleIf );
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Destructor.
|
|
78 |
*/
|
|
79 |
virtual ~CBrowserControlApiTest();
|
|
80 |
|
|
81 |
public: // New functions
|
|
82 |
|
|
83 |
/**
|
|
84 |
* ?member_description.
|
|
85 |
* @since ?Series60_version
|
|
86 |
* @param ?arg1 ?description
|
|
87 |
* @return ?description
|
|
88 |
*/
|
|
89 |
//?type ?member_function( ?type ?arg1 );
|
|
90 |
|
|
91 |
public: // Functions from base classes
|
|
92 |
|
|
93 |
/**
|
|
94 |
* From CScriptBase Runs a script line.
|
|
95 |
* @since ?Series60_version
|
|
96 |
* @param aItem Script line containing method name and parameters
|
|
97 |
* @return Symbian OS error code
|
|
98 |
*/
|
|
99 |
virtual TInt RunMethodL( CStifItemParser& aItem );
|
|
100 |
|
|
101 |
private:
|
|
102 |
|
|
103 |
/**
|
|
104 |
* C++ default constructor.
|
|
105 |
*/
|
|
106 |
CBrowserControlApiTest( CTestModuleIf& aTestModuleIf );
|
|
107 |
|
|
108 |
/**
|
|
109 |
* By default Symbian 2nd phase constructor is private.
|
|
110 |
*/
|
|
111 |
void ConstructL();
|
|
112 |
|
|
113 |
/**
|
|
114 |
* Frees all resources allocated from test methods.
|
|
115 |
* @since ?Series60_version
|
|
116 |
*/
|
|
117 |
void Delete();
|
|
118 |
|
|
119 |
/**
|
|
120 |
* Test methods are listed below.
|
|
121 |
*/
|
|
122 |
|
|
123 |
/**
|
|
124 |
* Example test method.
|
|
125 |
* @since ?Series60_version
|
|
126 |
* @param aItem Script line containing parameters.
|
|
127 |
* @return Symbian OS error code.
|
|
128 |
*/
|
|
129 |
virtual TInt ExampleL( CStifItemParser& aItem );
|
|
130 |
virtual TInt CreateBrCtlL( CStifItemParser& aItem );
|
|
131 |
virtual TInt DestroyBrowserControlL( CStifItemParser& aItem );
|
|
132 |
virtual TInt ZoomLevels( CStifItemParser& aItem );
|
|
133 |
virtual TInt HandleCommandL( CStifItemParser& aItem );
|
|
134 |
virtual TInt LoadData( CStifItemParser& aItem );
|
|
135 |
virtual TInt SavedPageL( CStifItemParser& aItem );
|
|
136 |
virtual TInt CertInfo( CStifItemParser& aItem );
|
|
137 |
virtual TInt SetSelfDownloadContentTypes( CStifItemParser& aItem );
|
|
138 |
virtual TInt NavigationAvailable( CStifItemParser& aItem );
|
|
139 |
virtual TInt PageInfo( CStifItemParser& aItem );
|
|
140 |
virtual TInt EmptyCache( CStifItemParser& aItem );
|
|
141 |
virtual TInt GetBitmapData( CStifItemParser& aResult );
|
|
142 |
virtual TInt SaveToFile( CStifItemParser& aResult );
|
|
143 |
virtual TInt OkToExit( CStifItemParser& aResult );
|
|
144 |
virtual TInt OfferKeyEvent( CStifItemParser& aResult );
|
|
145 |
virtual TInt MinimumSize( CStifItemParser& aResult );
|
|
146 |
virtual TInt FocusedElementType( CStifItemParser& aResult );
|
|
147 |
virtual TInt ContentSize( CStifItemParser& aResult );
|
|
148 |
virtual TInt BrCtlSetParam( CStifItemParser& aResult );
|
|
149 |
virtual TInt BrCtlSubscribeToMenuItemsL( CStifItemParser& aResult );
|
|
150 |
virtual TInt FocusedImage( CStifItemParser& aResult );
|
|
151 |
virtual TInt BrCtlSettings( CStifItemParser& aResult );
|
|
152 |
virtual TInt FindKeyword( CStifItemParser& aResult );
|
|
153 |
virtual TInt CommandObserver( CStifItemParser& aResult );
|
|
154 |
virtual TInt AddOptionMenuItems( CStifItemParser& aResult );
|
|
155 |
virtual TInt BrCtlInitLoadData( CStifItemParser& aResult );
|
|
156 |
virtual TInt HandleDownloadCommand( CStifItemParser& aResult );
|
|
157 |
virtual TInt VersionInfo( CStifItemParser& aResult );
|
|
158 |
virtual TInt WmlOptionMenuItems( CStifItemParser& aResult );
|
|
159 |
virtual TInt ImageCount( CStifItemParser& aResult);
|
|
160 |
virtual TInt PostUrlL( CStifItemParser& aResult);
|
|
161 |
virtual TInt CreateBrCtlWithWidgetExtensionL( CStifItemParser& aItem ); // Added for Widget Extension Test
|
|
162 |
virtual TInt TestHistoryHandlerL( CStifItemParser& aItem );
|
|
163 |
virtual TInt TestWMLLoadL( CStifItemParser& aItem );
|
|
164 |
|
|
165 |
/**
|
|
166 |
* Method used to log version of test class
|
|
167 |
*/
|
|
168 |
void SendTestClassVersion();
|
|
169 |
|
|
170 |
private: // Data
|
|
171 |
CBrCtlApiTestContainer* iBrCtlTestContainer;
|
|
172 |
};
|
|
173 |
|
|
174 |
#endif // BRCTLAPITEST_H
|
|
175 |
|
|
176 |
// End of File
|