File indexing completed on 2024-04-28 16:01:12
0001 /* 0002 * SPDX-FileCopyrightText: 2020-2021 Han Young <hanyoung@protonmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 #pragma once 0007 #include <QSignalSpy> 0008 #include <QTest> 0009 #include <kweathercore/geotimezone.h> 0010 using namespace KWeatherCore; 0011 class GeoTimezoneTest : public QObject 0012 { 0013 Q_OBJECT 0014 private Q_SLOTS: 0015 void testTimezone(); 0016 0017 private: 0018 GeoTimezone d {50, 50}; 0019 QSignalSpy finished_spy {&d, &GeoTimezone::finished}; 0020 QSignalSpy networkError_spy {&d, &GeoTimezone::networkErrorOccured}; 0021 };