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

0001 /*
0002    SPDX-FileCopyrightText: 2021 David Faure <faure@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 #include <QStandardItemModel>
0011 
0012 class RoomListHeadingsProxyModelTest : public QObject
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit RoomListHeadingsProxyModelTest(QObject *parent = nullptr);
0017 
0018 private Q_SLOTS:
0019     void initTestCase();
0020     void shouldBeEmptyByDefault();
0021     void shouldReturnRowCount();
0022     void shouldMapProxyRows_data();
0023     void shouldMapProxyRows();
0024     void shouldMapSourceRows_data();
0025     void shouldMapSourceRows();
0026     void shouldReturnData();
0027     void shouldUpdateOnSectionUpdates();
0028 
0029 private:
0030     QStandardItemModel mSourceModel;
0031 };