add tests for battery and gpuload sources

+ some tests refactoring
This commit is contained in:
2016-06-09 12:45:21 +03:00
parent bc2071a493
commit 78b7a87c29
16 changed files with 269 additions and 44 deletions

View File

@ -37,10 +37,10 @@ private slots:
void test_gputemp();
private:
GPUTemperatureSource *gputempSource = nullptr;
GPUTemperatureSource *source = nullptr;
QString device;
QString source = QString("gpu/temperature");
QPair<float, float> temp = QPair<float, float>(0.0f, 40.0f);
QString src = QString("gpu/temperature");
QPair<float, float> temp = QPair<float, float>(0.0f, 120.0f);
};