File indexing completed on 2024-12-01 04:35:28

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 class RoomTest : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit RoomTest(QObject *parent = nullptr);
0016     ~RoomTest() override = default;
0017 private Q_SLOTS:
0018     void shouldHaveDefaultValue();
0019     void shouldSerialized();
0020     void shouldEmitSignals();
0021 
0022     void shouldChangeInputMessage();
0023 
0024     // Rooms subscriptions only
0025     void shouldParseRoom_data();
0026     void shouldParseRoom();
0027 
0028     // Rooms subscriptions + update room
0029     void shouldParseRoomAndUpdate_data();
0030     void shouldParseRoomAndUpdate();
0031 
0032     // Rooms subscriptions + update room + update subscription
0033     void shouldParseRoomAndUpdateSubscription_data();
0034     void shouldParseRoomAndUpdateSubscription();
0035 };