camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxevideocapturecontrolsymbian/unittest_cxevideocapturecontrolsymbian.cpp
equal
deleted
inserted
replaced
236 } |
236 } |
237 |
237 |
238 void UnitTestCxeVideoCaptureControlSymbian::testHandleSnapshotReady() |
238 void UnitTestCxeVideoCaptureControlSymbian::testHandleSnapshotReady() |
239 { |
239 { |
240 CX_DEBUG_ENTER_FUNCTION(); |
240 CX_DEBUG_ENTER_FUNCTION(); |
241 QPixmap snapshot; |
241 QImage snapshot; |
242 |
242 |
243 QSignalSpy spy(mCxeVideoCaptureControlSymbian, SIGNAL(snapshotReady(CxeError::Id, const QPixmap&, const QString&))); |
243 QSignalSpy spy(mCxeVideoCaptureControlSymbian, SIGNAL(snapshotReady(CxeError::Id, const QImage&, const QString&))); |
244 mCxeVideoCaptureControlSymbian->deinit(); |
244 mCxeVideoCaptureControlSymbian->deinit(); |
245 doPrepareStuff(); |
245 doPrepareStuff(); |
246 mCxeVideoCaptureControlSymbian->handleSnapshotReady(CxeError::OutOfMemory, snapshot); |
246 mCxeVideoCaptureControlSymbian->handleSnapshotReady(CxeError::OutOfMemory, snapshot); |
247 QCOMPARE(mCxeVideoCaptureControlSymbian->state(), CxeVideoCaptureControl::Ready); |
247 QCOMPARE(mCxeVideoCaptureControlSymbian->state(), CxeVideoCaptureControl::Ready); |
248 |
248 |