Debian Codegraph @

autotests/mediatest.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2018 Manuel Weichselbaumer <[email protected]>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7 #ifndef MEDIATEST_H
8 #define MEDIATEST_H
9
10 #include "adapter.h"
11 #include "mediaendpoint.h"
12
13 class TestEndpoint : public BluezQt::MediaEndpoint
14 {
15 Q_OBJECT
16
17 public:
18 using BluezQt::MediaEndpoint::MediaEndpoint;
19 void release() override;
20
21 // release
22 bool m_releaseCalled = false;
23 };
24
25 class MediaTest : public QObject
26 {
27 Q_OBJECT
28
29 private Q_SLOTS:
30 void initTestCase();
31 void cleanupTestCase();
32
33 void setConfigurationTest();
34 void selectConfigurationTest();
35 void clearConfigurationTest();
36 void releaseTest();
37
38 private:
39 TestEndpoint *m_endpoint;
40 BluezQt::AdapterPtr m_adapter;
41 };
42
43 #endif // MEDIATEST_H