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

« back to all changes in this revision

Viewing changes to unittests/aalviewfindersettingscontrol/tst_aalviewfindersettingscontrol.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:
124
124
    QCOMPARE(m_vfControl->chooseOptimalSize(resolutions), QSize());
125
125
}
126
126
 
127
 
QTEST_MAIN(tst_AalViewfinderSettingsControl)
 
127
QTEST_GUILESS_MAIN(tst_AalViewfinderSettingsControl)
128
128
 
129
129
#include "tst_aalviewfindersettingscontrol.moc"