File indexing completed on 2024-10-06 03:36:46

0001 /*
0002  * SPDX-FileCopyrightText: 2019 Manuel Weichselbaumer <mincequi@web.de>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 
0007 #ifndef LEADVERTISINGMANAGERTEST_H
0008 #define LEADVERTISINGMANAGERTEST_H
0009 
0010 #include "adapter.h"
0011 #include "leadvertisement.h"
0012 
0013 class TestAdvertisement : public BluezQt::LEAdvertisement
0014 {
0015     Q_OBJECT
0016 
0017 public:
0018     using BluezQt::LEAdvertisement::LEAdvertisement;
0019     void release() override;
0020 
0021     // release
0022     bool m_releaseCalled = false;
0023 };
0024 
0025 class LEAdvertisingManagerTest : public QObject
0026 {
0027     Q_OBJECT
0028 
0029 private Q_SLOTS:
0030     void initTestCase();
0031     void cleanupTestCase();
0032 
0033     void releaseTest();
0034 
0035 private:
0036     TestAdvertisement *m_advertisement;
0037     BluezQt::AdapterPtr m_adapter;
0038 };
0039 
0040 #endif