Debian Codegraph @

autotests/leadvertisingmanagertest.h

raw
1 /*
2 * SPDX-FileCopyrightText: 2019 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 LEADVERTISINGMANAGERTEST_H
8 #define LEADVERTISINGMANAGERTEST_H
9
10 #include "adapter.h"
11 #include "leadvertisement.h"
12
13 class TestAdvertisement : public BluezQt::LEAdvertisement
14 {
15 Q_OBJECT
16
17 public:
18 using BluezQt::LEAdvertisement::LEAdvertisement;
19 void release() override;
20
21 // release
22 bool m_releaseCalled = false;
23 };
24
25 class LEAdvertisingManagerTest : public QObject
26 {
27 Q_OBJECT
28
29 private Q_SLOTS:
30 void initTestCase();
31 void cleanupTestCase();
32
33 void releaseTest();
34
35 private:
36 TestAdvertisement *m_advertisement;
37 BluezQt::AdapterPtr m_adapter;
38 };
39
40 #endif