233 |
233 |
234 // ----------------------------------------------------------------------------- |
234 // ----------------------------------------------------------------------------- |
235 // |
235 // |
236 // ----------------------------------------------------------------------------- |
236 // ----------------------------------------------------------------------------- |
237 // |
237 // |
|
238 void UT_CMusEngLiveSession::UT_CMusEngLiveSession_SetZoomLL() |
|
239 { |
|
240 TRAPD( error, iLiveSession->SetZoomL(2) ); |
|
241 MUS_TEST_FORWARD_ALLOC_FAILURE( error ); |
|
242 EUNIT_ASSERT( error == KErrNotReady ); |
|
243 ESTABLISH_OUT_SESSION( iLiveSession ); |
|
244 CMceCameraSource* camera = |
|
245 MusEngMceUtils::GetCameraL( *(iLiveSession->iSession) ); |
|
246 EUNIT_ASSERT( camera->iZoomFactor == 1 ); |
|
247 EUNIT_ASSERT( camera->iDigitalZoomFactor == 0 ); |
|
248 TRAPD( err, iLiveSession->SetZoomL(0) ); |
|
249 EUNIT_ASSERT( err == KErrArgument ); |
|
250 iLiveSession->SetZoomL(2); |
|
251 EUNIT_ASSERT( camera->iZoomFactor == 2 ); |
|
252 TRAPD( err1, iLiveSession->SetZoomL(14) ); |
|
253 EUNIT_ASSERT( err1 == KErrArgument ); |
|
254 iLiveSession->SetZoomL( 5 ); |
|
255 EUNIT_ASSERT( camera->iDigitalZoomFactor == 2 ); |
|
256 } |
238 void UT_CMusEngLiveSession::UT_MaxZoomLL() |
257 void UT_CMusEngLiveSession::UT_MaxZoomLL() |
239 { |
258 { |
240 // Check that checking maximum zoom is not possible before invite |
259 // Check that checking maximum zoom is not possible before invite |
241 TRAPD( error, iLiveSession->MaxZoomL() ); |
260 TRAPD( error, iLiveSession->MaxZoomL() ); |
242 MUS_TEST_FORWARD_ALLOC_FAILURE( error ); |
261 MUS_TEST_FORWARD_ALLOC_FAILURE( error ); |