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

« back to all changes in this revision

Viewing changes to unittests/aalvideodeviceselectorcontrol/tst_aalvideodeviceselectorcontrol.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:
60
60
    QCOMPARE(spy2.count(), 1);
61
61
}
62
62
 
63
 
QTEST_MAIN(tst_AalVideoDeviceSelectorControl)
 
63
QTEST_GUILESS_MAIN(tst_AalVideoDeviceSelectorControl)
64
64
 
65
65
#include "tst_aalvideodeviceselectorcontrol.moc"