File indexing completed on 2024-04-28 16:01:12
0001 #pragma once 0002 0003 #include <QSignalSpy> 0004 #include <QTest> 0005 #include <kweathercore/weatherforecastsource.h> 0006 using namespace KWeatherCore; 0007 class PendingWeatherForecastTest : public QObject 0008 { 0009 private Q_SLOTS: 0010 void initTestCase(); 0011 void testFetch(); 0012 0013 private: 0014 WeatherForecastSource d; 0015 PendingWeatherForecast *p; 0016 QSignalSpy *finished_spy; 0017 QSignalSpy *networkError_spy; 0018 };