diff options
Diffstat (limited to 'libkdenetwork/qgpgme/tests/dataprovidertest.cpp')
-rw-r--r-- | libkdenetwork/qgpgme/tests/dataprovidertest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libkdenetwork/qgpgme/tests/dataprovidertest.cpp b/libkdenetwork/qgpgme/tests/dataprovidertest.cpp index da87b0300..2493c5860 100644 --- a/libkdenetwork/qgpgme/tests/dataprovidertest.cpp +++ b/libkdenetwork/qgpgme/tests/dataprovidertest.cpp @@ -69,7 +69,7 @@ int main( int, char** ) { assertEqual( data.write( input, inputSize ), inputSize ); - const QByteArray ba1 = qba_dp.data(); + const TQByteArray ba1 = qba_dp.data(); assertEqual( ba1.size(), inputSize ); assertEqual( memcmp( ba1.data(), input, inputSize ), 0 ); @@ -90,7 +90,7 @@ int main( int, char** ) { // writing single char at end: assertEqual( data.seek( 0, SEEK_END ), inputSize ); assertEqual( data.write( &ch, 1 ) , 1 ); - const QByteArray ba2 = qba_dp.data(); + const TQByteArray ba2 = qba_dp.data(); assertEqual( ba2.size(), inputSize + 1 ); assertEqual( memcmp( ba2.data(), input, inputSize ), 0 ); assertEqual( ba2[inputSize], ch ); @@ -98,7 +98,7 @@ int main( int, char** ) { // writing past end of buffer: assertEqual( data.seek( 10, SEEK_END ), inputSize + 11 ); assertEqual( data.write( &ch, 1 ), 1 ); - const QByteArray ba3 = qba_dp.data(); + const TQByteArray ba3 = qba_dp.data(); assertEqual( ba3.size(), inputSize + 12 ); assertEqual( memcmp( ba3.data(), input, inputSize ), 0 ); assertEqual( ba3[inputSize], ch ); @@ -110,14 +110,14 @@ int main( int, char** ) { // // QByteArrayDataProvider with initial data: // - QByteArray ba; + TQByteArray ba; ba.duplicate( input, inputSize ); QGpgME::QByteArrayDataProvider qba_dp( ba ); Data data( &qba_dp ); assertEqual( data.seek( 0, SEEK_END ), inputSize ); assertEqual( data.seek( 0, SEEK_SET ), 0 ); - const QByteArray ba1 = qba_dp.data(); + const TQByteArray ba1 = qba_dp.data(); assertEqual( ba1.size(), inputSize ); assertEqual( memcmp( ba1.data(), input, inputSize ), 0 ); } |