tst_qbytearray: remove qCompress_data for QT_NO_COMPRESS
The _data function is useless without its test function (and it's not used in other _data functions). Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I7aa6006ed1a9d89008577b750af4ea717dae237f Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
401041f958
commit
b5d5385201
@ -26,8 +26,8 @@ private slots:
|
||||
void swap();
|
||||
void qChecksum_data();
|
||||
void qChecksum();
|
||||
void qCompress_data();
|
||||
#ifndef QT_NO_COMPRESS
|
||||
void qCompress_data();
|
||||
void qCompress();
|
||||
void qUncompressCorruptedData_data();
|
||||
void qUncompressCorruptedData();
|
||||
@ -235,6 +235,7 @@ void tst_QByteArray::qChecksum()
|
||||
QCOMPARE(::qChecksum(QByteArrayView(data.constData(), len), standard), static_cast<quint16>(checksum));
|
||||
}
|
||||
|
||||
#ifndef QT_NO_COMPRESS
|
||||
void tst_QByteArray::qCompress_data()
|
||||
{
|
||||
QTest::addColumn<QByteArray>("ba");
|
||||
@ -261,7 +262,6 @@ void tst_QByteArray::qCompress_data()
|
||||
QTest::newRow( "04" ) << file.readAll();
|
||||
}
|
||||
|
||||
#ifndef QT_NO_COMPRESS
|
||||
void tst_QByteArray::qCompress()
|
||||
{
|
||||
QFETCH( QByteArray, ba );
|
||||
|
Loading…
Reference in New Issue
Block a user