Replace yahoo finance to stooq (#131)

Old code is dropped to separated provider
This commit is contained in:
2017-12-15 02:01:34 +03:00
parent eb911551eb
commit e5a9e99438
134 changed files with 1213 additions and 1597 deletions

View File

@ -30,10 +30,10 @@ void TestHDDTemperatureSource::initTestCase()
devices = HDDTemperatureSource::allHdd();
QVERIFY(devices.count() > 0);
hddtempSource = new HDDTemperatureSource(
this, QStringList() << devices.join(',') << hddtempCmd);
smartctlSource = new HDDTemperatureSource(
this, QStringList() << devices.join(',') << smartctlCmd);
hddtempSource
= new HDDTemperatureSource(this, QStringList() << devices.join(',') << hddtempCmd);
smartctlSource
= new HDDTemperatureSource(this, QStringList() << devices.join(',') << smartctlCmd);
}
@ -57,8 +57,7 @@ void TestHDDTemperatureSource::test_sources()
void TestHDDTemperatureSource::test_hddtemp()
{
std::for_each(devices.begin(), devices.end(), [this](QString device) {
QSignalSpy spy(hddtempSource,
SIGNAL(dataReceived(const QVariantHash &)));
QSignalSpy spy(hddtempSource, SIGNAL(dataReceived(const QVariantHash &)));
float firstValue = hddtempSource->data(device).toFloat();
QVERIFY(spy.wait(5000));
@ -75,8 +74,7 @@ void TestHDDTemperatureSource::test_hddtemp()
void TestHDDTemperatureSource::test_smartctl()
{
std::for_each(devices.begin(), devices.end(), [this](QString &device) {
QSignalSpy spy(smartctlSource,
SIGNAL(dataReceived(const QVariantHash &)));
QSignalSpy spy(smartctlSource, SIGNAL(dataReceived(const QVariantHash &)));
float firstValue = smartctlSource->data(device).toFloat();
QVERIFY(spy.wait(5000));