Added QBENCHMARK macros to volume unit test.
This commit is contained in:
parent
b93ceca542
commit
ec203c6954
@ -157,19 +157,31 @@ int32_t complexVolumeTest(void)
|
|||||||
|
|
||||||
void TestVolume::testLargeVolume()
|
void TestVolume::testLargeVolume()
|
||||||
{
|
{
|
||||||
int32_t result = complexVolumeTest< LargeVolume<int32_t> >();
|
int32_t result = 0;
|
||||||
|
QBENCHMARK
|
||||||
|
{
|
||||||
|
result = complexVolumeTest< LargeVolume<int32_t> >();
|
||||||
|
}
|
||||||
QCOMPARE(result, static_cast<int32_t>(1244008559));
|
QCOMPARE(result, static_cast<int32_t>(1244008559));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestVolume::testRawVolume()
|
void TestVolume::testRawVolume()
|
||||||
{
|
{
|
||||||
int32_t result = complexVolumeTest< RawVolume<int32_t> >();
|
int32_t result = 0;
|
||||||
|
QBENCHMARK
|
||||||
|
{
|
||||||
|
result = complexVolumeTest< RawVolume<int32_t> >();
|
||||||
|
}
|
||||||
QCOMPARE(result, static_cast<int32_t>(1244008559));
|
QCOMPARE(result, static_cast<int32_t>(1244008559));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestVolume::testSimpleVolume()
|
void TestVolume::testSimpleVolume()
|
||||||
{
|
{
|
||||||
int32_t result = complexVolumeTest< SimpleVolume<int32_t> >();
|
int32_t result = 0;
|
||||||
|
QBENCHMARK
|
||||||
|
{
|
||||||
|
result = complexVolumeTest< SimpleVolume<int32_t> >();
|
||||||
|
}
|
||||||
QCOMPARE(result, static_cast<int32_t>(1244008559));
|
QCOMPARE(result, static_cast<int32_t>(1244008559));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user