]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // (c) Copyright Juergen Hunold 2009 |
2 | // Use, modification and distribution is subject to the Boost Software | |
3 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
4 | // http://www.boost.org/LICENSE_1_0.txt) | |
5 | ||
6 | #define BOOST_TEST_MODULE QtMultimedia | |
7 | ||
8 | #include <QAudioDeviceInfo> | |
9 | ||
10 | #include <boost/test/unit_test.hpp> | |
11 | ||
12 | BOOST_AUTO_TEST_CASE( defines) | |
13 | { | |
14 | BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_CORE_LIB), true); | |
15 | BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_GUI_LIB), true); | |
16 | BOOST_CHECK_EQUAL(BOOST_IS_DEFINED(QT_MULTIMEDIA_LIB), true); | |
17 | } | |
18 | ||
19 | BOOST_AUTO_TEST_CASE( audiodevices) | |
20 | { | |
21 | QList<QAudioDeviceInfo> devices = QAudioDeviceInfo::availableDevices(QAudio::AudioOutput); | |
22 | for(int i = 0; i < devices.size(); ++i) { | |
23 | BOOST_TEST_MESSAGE(QAudioDeviceInfo(devices.at(i)).deviceName().constData()); | |
24 | } | |
25 | } |