24 #include <stiftestmodule.h> |
24 #include <stiftestmodule.h> |
25 #include <testclassassert.h> |
25 #include <testclassassert.h> |
26 #include <s32file.h> // RFs |
26 #include <s32file.h> // RFs |
27 |
27 |
28 #include "wmwidgetorderdata.h" |
28 #include "wmwidgetorderdata.h" |
29 #include "wmimageconverter.h" // MConverterObserver |
|
30 #include <hscontentcontroller.h> |
29 #include <hscontentcontroller.h> |
31 #include "wminstaller.h" |
30 #include "wminstaller.h" |
32 |
31 |
33 // MACROS |
32 // MACROS |
34 #define TEST_CLASS_VERSION_MAJOR 0 |
33 #define TEST_CLASS_VERSION_MAJOR 0 |
65 // CLASS DECLARATION |
64 // CLASS DECLARATION |
66 /** |
65 /** |
67 * test class for STIF Test Framework TestScripter. |
66 * test class for STIF Test Framework TestScripter. |
68 */ |
67 */ |
69 NONSHARABLE_CLASS(CWmUnitTest) : public CScriptBase, |
68 NONSHARABLE_CLASS(CWmUnitTest) : public CScriptBase, |
70 public MConverterObserver, |
|
71 public MHsContentController |
69 public MHsContentController |
72 { |
70 { |
73 public: // Constructors and destructor |
71 public: // Constructors and destructor |
74 /** static constructor */ |
72 /** static constructor */ |
75 static CWmUnitTest* NewL( CTestModuleIf& aTestModuleIf ); |
73 static CWmUnitTest* NewL( CTestModuleIf& aTestModuleIf ); |
87 public: // Test run API |
85 public: // Test run API |
88 |
86 |
89 /** From CScriptBase Runs a script line. */ |
87 /** From CScriptBase Runs a script line. */ |
90 virtual TInt RunMethodL( CStifItemParser& aItem ); |
88 virtual TInt RunMethodL( CStifItemParser& aItem ); |
91 |
89 |
92 public: // from MConverterObserver |
|
93 |
|
94 virtual void NotifyCompletion( TInt aError ); |
|
95 |
|
96 public: // from MHsContentController |
90 public: // from MHsContentController |
97 |
91 |
98 |
92 |
99 TInt WidgetListL( CHsContentInfoArray& aArray ); |
93 TInt WidgetListL( CHsContentInfoArray& aArray ); |
100 TInt WidgetListL( CHsContentInfo& aInfo, CHsContentInfoArray& aArray ); |
94 TInt WidgetListL( CHsContentInfo& aInfo, CHsContentInfoArray& aArray ); |
101 TInt ViewListL( CHsContentInfoArray& aArray ); |
95 TInt ViewListL( CHsContentInfoArray& aArray ); |
|
96 TInt ViewListL( CHsContentInfo& aInfo, CHsContentInfoArray& aArray ); |
102 TInt AppListL( CHsContentInfoArray& aArray ); |
97 TInt AppListL( CHsContentInfoArray& aArray ); |
103 TInt AddWidgetL( CHsContentInfo& aInfo ); |
98 TInt AddWidgetL( CHsContentInfo& aInfo ); |
104 TInt RemoveWidgetL( CHsContentInfo& aInfo ); |
99 TInt RemoveWidgetL( CHsContentInfo& aInfo ); |
105 TInt AddViewL( CHsContentInfo& aInfo ); |
100 TInt AddViewL( CHsContentInfo& aInfo ); |
106 TInt RemoveViewL( CHsContentInfo& aInfo ); |
101 TInt RemoveViewL( CHsContentInfo& aInfo ); |
163 TInt ImageConverterCreateL( CStifItemParser& aItem ); |
158 TInt ImageConverterCreateL( CStifItemParser& aItem ); |
164 // deletes image converter object |
159 // deletes image converter object |
165 TInt ImageConverterDeleteL( CStifItemParser& aItem ); |
160 TInt ImageConverterDeleteL( CStifItemParser& aItem ); |
166 // calls image converter's main conversion method |
161 // calls image converter's main conversion method |
167 TInt ImageConverterConvertL( CStifItemParser& aItem ); |
162 TInt ImageConverterConvertL( CStifItemParser& aItem ); |
168 // checks image converter callback and checks its result |
|
169 TInt ImageConverterWaitResultL( CStifItemParser& aItem ); |
|
170 // gets and checks the conversion method from image converter |
|
171 TInt ImageConverterConversionMethodL( CStifItemParser& aItem ); |
|
172 // cancel ongoing convert |
|
173 TInt CancelConvertL( CStifItemParser& aItem ); |
|
174 |
163 |
175 // TESTING UNISTALL |
164 // TESTING UNISTALL |
176 TInt UninstallL( CStifItemParser& aItem ); |
165 TInt UninstallL( CStifItemParser& aItem ); |
177 TInt WaitUninstallToFinnishL( CStifItemParser& aItem ); |
166 TInt WaitUninstallToFinnishL( CStifItemParser& aItem ); |
178 TInt UninstallUidL( CStifItemParser& aItem ); |
167 TInt UninstallUidL( CStifItemParser& aItem ); |