206 |
206 |
207 |
207 |
208 // ----------------------------------------------------------------------------- |
208 // ----------------------------------------------------------------------------- |
209 // |
209 // |
210 // ----------------------------------------------------------------------------- |
210 // ----------------------------------------------------------------------------- |
|
211 // |
|
212 void UT_CMusEngSession::UT_AudioOutputIsBTL() |
|
213 { |
|
214 iLiveSession->iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = |
|
215 CTelephonyAudioRouting::EBTAudioAccessory; |
|
216 EUNIT_ASSERT( iLiveSession->AudioOutputIsBT() ); |
|
217 |
|
218 iLiveSession->iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = |
|
219 CTelephonyAudioRouting::ENotActive; |
|
220 EUNIT_ASSERT( !iLiveSession->AudioOutputIsBT()); |
|
221 |
|
222 iLiveSession->iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = |
|
223 CTelephonyAudioRouting::ENone; |
|
224 EUNIT_ASSERT( !iLiveSession->AudioOutputIsBT()); |
|
225 |
|
226 iLiveSession->iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = |
|
227 CTelephonyAudioRouting::EHandset; |
|
228 EUNIT_ASSERT( !iLiveSession->AudioOutputIsBT()); |
|
229 |
|
230 iLiveSession->iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = |
|
231 CTelephonyAudioRouting::ELoudspeaker; |
|
232 EUNIT_ASSERT( !iLiveSession->AudioOutputIsBT()); |
|
233 |
|
234 iLiveSession->iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = |
|
235 CTelephonyAudioRouting::EWiredAudioAccessory; |
|
236 EUNIT_ASSERT( !iLiveSession->AudioOutputIsBT()); |
|
237 |
|
238 iLiveSession->iTelephoneUtils->iTelephonyAudioRouting->iCurrentOutput = |
|
239 CTelephonyAudioRouting::ETTY; |
|
240 EUNIT_ASSERT( !iLiveSession->AudioOutputIsBT()); |
|
241 |
|
242 } |
|
243 |
|
244 |
|
245 // ----------------------------------------------------------------------------- |
|
246 // |
|
247 // ----------------------------------------------------------------------------- |
211 // |
248 // |
212 void UT_CMusEngSession::UT_EnableLoudspeakerLL() |
249 void UT_CMusEngSession::UT_EnableLoudspeakerLL() |
213 { |
250 { |
214 // Almost dummy case is enough, because IsLoudSpeakerEnabled forwards |
251 // Almost dummy case is enough, because IsLoudSpeakerEnabled forwards |
215 // requests to CMusEngTelephonyUtils and is tested there. So test only |
252 // requests to CMusEngTelephonyUtils and is tested there. So test only |
483 "AudioRoutingCanBeChanged", |
520 "AudioRoutingCanBeChanged", |
484 "FUNCTIONALITY", |
521 "FUNCTIONALITY", |
485 SetupL, UT_AudioRoutingCanBeChangedL, Teardown) |
522 SetupL, UT_AudioRoutingCanBeChangedL, Teardown) |
486 |
523 |
487 EUNIT_TEST( |
524 EUNIT_TEST( |
|
525 "AudioOutputIsBT - test ", |
|
526 "CMusEngSession", |
|
527 "AudioOutputIsBT", |
|
528 "FUNCTIONALITY", |
|
529 SetupL, UT_AudioOutputIsBTL, Teardown) |
|
530 |
|
531 EUNIT_TEST( |
488 "EnableLoudspeakerL - test ", |
532 "EnableLoudspeakerL - test ", |
489 "CMusEngSession", |
533 "CMusEngSession", |
490 "EnableLoudspeakerL", |
534 "EnableLoudspeakerL", |
491 "FUNCTIONALITY", |
535 "FUNCTIONALITY", |
492 SetupL, UT_EnableLoudspeakerLL, Teardown) |
536 SetupL, UT_EnableLoudspeakerLL, Teardown) |