16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include <w32std.h> |
19 #include <w32std.h> |
20 #include <coecntrl.h> |
20 #include <coecntrl.h> |
21 #include <vuicvoicerecog.h> |
21 |
22 #include <vuicvoicerecogdialog.h> |
|
23 #include <bctestdomcoreui.rsg> |
22 #include <bctestdomcoreui.rsg> |
24 |
23 |
25 #include "bctestdomcoreuicase.h" |
24 #include "bctestdomcoreuicase.h" |
26 #include "bctestdomcoreuicontainer.h" |
25 #include "bctestdomcoreuicontainer.h" |
27 #include "bctestdomcoreui.hrh" |
26 #include "bctestdomcoreui.hrh" |
179 // CBCTestDomCoreUiCase::TestVoiceRecogL |
178 // CBCTestDomCoreUiCase::TestVoiceRecogL |
180 // --------------------------------------------------------------------------- |
179 // --------------------------------------------------------------------------- |
181 // |
180 // |
182 void CBCTestDomCoreUiCase::TestVoiceRecogL() |
181 void CBCTestDomCoreUiCase::TestVoiceRecogL() |
183 { |
182 { |
184 CVoiceRecog* voiceRecog = CVoiceRecog::NewL(); |
183 |
185 CleanupStack::PushL( voiceRecog );//push |
|
186 |
|
187 _LIT( msiLogNewL, "VoiceRecog::NewL()" ); |
|
188 AssertNotNullL( voiceRecog, msiLogNewL ); |
|
189 _LIT( msiLogNewLC, "VoiceRecog::NewLC()" ); |
|
190 AssertTrueL( ETrue, msiLogNewLC ); |
|
191 |
|
192 CleanupStack::PopAndDestroy( voiceRecog ); |
|
193 } |
184 } |
194 |
185 |
195 // --------------------------------------------------------------------------- |
186 // --------------------------------------------------------------------------- |
196 // CBCTestDomCoreUiCase::TestVoiceRecognitionDialogL |
187 // CBCTestDomCoreUiCase::TestVoiceRecognitionDialogL |
197 // --------------------------------------------------------------------------- |
188 // --------------------------------------------------------------------------- |
198 // |
189 // |
199 void CBCTestDomCoreUiCase::TestVoiceRecognitionDialogL() |
190 void CBCTestDomCoreUiCase::TestVoiceRecognitionDialogL() |
200 { |
191 { |
201 CVoiceRecognitionDialog* voiceRec = new( ELeave ) CVoiceRecognitionDialog(); |
|
202 _LIT( msiLogVRD, "CVoiceRecognitionDialog::CVoiceRecognitionDialog()" ); |
|
203 AssertTrueL( ETrue, msiLogVRD ); |
|
204 |
|
205 voiceRec->ExecuteLD(); |
|
206 _LIT( msiLogExecuteLD, "CVoiceRecognitionDialog::ExecuteLD()" ); |
|
207 AssertTrueL( ETrue, msiLogExecuteLD ); |
|
208 |
192 |
209 CVoiceRecognitionDialog* voiceRec2 = new( ELeave ) CVoiceRecognitionDialog(); |
|
210 voiceRec2->Cancel(); |
|
211 _LIT( msiLogCancel, "CVoiceRecognitionDialog::Cancel()" ); |
|
212 AssertTrueL( ETrue, msiLogCancel ); |
|
213 |
|
214 _LIT( msiLogDesc, "CVoiceRecognitionDialog::~CVoiceRecognitionDialog()" ); |
|
215 AssertTrueL( ETrue, msiLogDesc ); |
|
216 |
193 |
217 } |
194 } |
218 |
195 |