camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxevideocapturecontrolsymbian/unittest_cxevideocapturecontrolsymbian.cpp
changeset 37 64817133cd1d
parent 29 699651f2666f
child 46 c826656d6714
equal deleted inserted replaced
36:b12f3922a74f 37:64817133cd1d
   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