2022-05-24 09:39:49 +03:00
|
|
|
/* This file is part of the KDE project
|
|
|
|
Copyright (C) 2022 Ivailo Monev <xakepa10@gmail.com>
|
2022-05-14 21:28:45 +03:00
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
2022-05-24 09:39:49 +03:00
|
|
|
License version 2, as published by the Free Software Foundation.
|
2022-05-14 21:28:45 +03:00
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public License
|
|
|
|
along with this library; see the file COPYING.LIB. If not, write to
|
|
|
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FAVICONTEST_H
|
|
|
|
#define FAVICONTEST_H
|
|
|
|
|
|
|
|
#include "favicon_interface.h"
|
|
|
|
|
2022-05-24 09:39:49 +03:00
|
|
|
#include <QObject>
|
|
|
|
|
2022-05-14 21:28:45 +03:00
|
|
|
class FavIconTest : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
FavIconTest();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void initTestCase();
|
2022-05-23 06:54:52 +03:00
|
|
|
void testIconForURL_data();
|
2022-05-14 21:28:45 +03:00
|
|
|
void testIconForURL();
|
|
|
|
|
2023-06-07 20:57:44 +03:00
|
|
|
void slotIconChanged(const QString &url, const QString &iconName);
|
2022-05-24 08:39:43 +03:00
|
|
|
|
2022-05-14 21:28:45 +03:00
|
|
|
private:
|
2022-05-24 09:39:49 +03:00
|
|
|
bool m_iconChanged;
|
2023-06-07 20:57:44 +03:00
|
|
|
QString m_url;
|
2022-05-24 09:39:49 +03:00
|
|
|
QString m_iconName;
|
|
|
|
|
2022-05-14 21:28:45 +03:00
|
|
|
org::kde::FavIcon m_favIconModule;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FAVICONTEST_H */
|
|
|
|
|