Changeset View
Changeset View
Standalone View
Standalone View
autotests/autotests.cpp
Show All 15 Lines | |||||
16 | * | 16 | * | ||
17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public | ||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include "autotests.h" | 21 | #include "autotests.h" | ||
22 | #include "device.h" | 22 | #include "device.h" | ||
23 | #include "adapter.h" | 23 | #include "adapter.h" | ||
24 | #include "battery.h" | ||||
24 | #include "mediaplayer.h" | 25 | #include "mediaplayer.h" | ||
25 | #include "mediaplayertrack.h" | 26 | #include "mediaplayertrack.h" | ||
26 | #include "mediatransport.h" | 27 | #include "mediatransport.h" | ||
27 | #include "bluezqt_dbustypes.h" | 28 | #include "bluezqt_dbustypes.h" | ||
28 | 29 | | |||
29 | #include <QDebug> | 30 | #include <QDebug> | ||
30 | #include <QEventLoop> | 31 | #include <QEventLoop> | ||
31 | #include <QCoreApplication> | 32 | #include <QCoreApplication> | ||
▲ Show 20 Lines • Show All 139 Lines • ▼ Show 20 Line(s) | 159 | { | |||
171 | 172 | | |||
172 | QDBusConnection::sessionBus().call(call); | 173 | QDBusConnection::sessionBus().call(call); | ||
173 | } | 174 | } | ||
174 | 175 | | |||
175 | void Autotests::registerMetatypes() | 176 | void Autotests::registerMetatypes() | ||
176 | { | 177 | { | ||
177 | qRegisterMetaType<BluezQt::DevicePtr>("DevicePtr"); | 178 | qRegisterMetaType<BluezQt::DevicePtr>("DevicePtr"); | ||
178 | qRegisterMetaType<BluezQt::AdapterPtr>("AdapterPtr"); | 179 | qRegisterMetaType<BluezQt::AdapterPtr>("AdapterPtr"); | ||
180 | qRegisterMetaType<BluezQt::BatteryPtr>("BatteryPtr"); | ||||
179 | qRegisterMetaType<BluezQt::MediaPlayerPtr>("MediaPlayerPtr"); | 181 | qRegisterMetaType<BluezQt::MediaPlayerPtr>("MediaPlayerPtr"); | ||
180 | qRegisterMetaType<BluezQt::MediaTransportPtr>("MediaTransportPtr"); | 182 | qRegisterMetaType<BluezQt::MediaTransportPtr>("MediaTransportPtr"); | ||
181 | } | 183 | } | ||
182 | 184 | | |||
183 | void Autotests::verifyPropertiesChangedSignal(const QSignalSpy &spy, const QString &propertyName, const QVariant &propertyValue) | 185 | void Autotests::verifyPropertiesChangedSignal(const QSignalSpy &spy, const QString &propertyName, const QVariant &propertyValue) | ||
184 | { | 186 | { | ||
185 | int changes = 0; | 187 | int changes = 0; | ||
186 | 188 | | |||
Show All 18 Lines |