~jhodapp/qtubuntu-camera/media-hub-camera-integration

« back to all changes in this revision

Viewing changes to unittests/aalcameraflashcontrol/tst_aalcameraflashcontrol.cpp

  • Committer: Jim Hodapp
  • Date: 2014-07-31 16:44:03 UTC
  • Revision ID: jim.hodapp@canonical.com-20140731164403-abcg6cnvm7t6tqrx
Use QTEST_GUILESS_MAIN instead of QTEST_MAIN to avoid X11 dbus errors for the unittests. Also use deleteLater() for AudioCapture and QThread deletion in the destructor of AalMediaRecorderControl

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    QCOMPARE(m_flashControl->flashMode(), mode);
58
58
}
59
59
 
60
 
QTEST_MAIN(tst_AalCameraFlashControl)
 
60
QTEST_GUILESS_MAIN(tst_AalCameraFlashControl)
61
61
 
62
62
#include "tst_aalcameraflashcontrol.moc"