Added RawVolume version of test as well.

This commit is contained in:
David Williams 2015-04-10 16:14:29 +02:00
parent 887ecc1aaa
commit 8bd013f28e
2 changed files with 11 additions and 0 deletions

View File

@ -481,6 +481,16 @@ void TestVolume::testPagedVolumeSamplersWithExternalBackwards()
/* /*
* Random access tests * Random access tests
*/ */
void TestVolume::testRawVolumeDirectRandomAccess()
{
int32_t result = 0;
QBENCHMARK
{
result = testDirectRandomAccess(m_pRawVolume);
}
QCOMPARE(result, static_cast<int32_t>(805464457));
}
void TestVolume::testPagedVolumeDirectRandomAccess() void TestVolume::testPagedVolumeDirectRandomAccess()
{ {
int32_t result = 0; int32_t result = 0;

View File

@ -57,6 +57,7 @@ private slots:
void testPagedVolumeDirectAccessWithExternalBackwards(); void testPagedVolumeDirectAccessWithExternalBackwards();
void testPagedVolumeSamplersWithExternalBackwards(); void testPagedVolumeSamplersWithExternalBackwards();
void testRawVolumeDirectRandomAccess();
void testPagedVolumeDirectRandomAccess(); void testPagedVolumeDirectRandomAccess();
void testPagedVolumeChunkLocalAccess(); void testPagedVolumeChunkLocalAccess();