diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkdenetwork/qgpgme/tests/dataprovidertest.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ); } |