qt6-bb10/tests/auto/corelib
Ivan Solovev fb50ab7006 Add QByteArrayView vs const char * relational operators
... by using the new comparison helper macros.

Also, convert the existing QByteArrayView relational operators to use
these macros.

An attempt to define the helper functions comparesEqual() and
compareThreeWay() as hidden friends leads to compilation errors, because
the QByteArrayView(QLatin1StringView) constructor gets somehow disabled.
Apparently, it cannot satisfy the
QtPrivate::IsContainerCompatibleWithQByteArrayView trait anymore.
I could not find a reason for that, so I just defined the helper
functions as static inline private members of QByteArrayView. This fixes
the issue.

This allows to enable related tests in tst_qstringapisymmetry.

Task-number: QTBUG-108805
Change-Id: I35a69e99db8c61531ec726dab5b242b857f69e85
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-02-20 01:04:33 +01:00
..
animation Change license for tests files 2024-02-04 09:56:42 +01:00
global Comparison helper macros: add an Attributes parameter 2024-02-20 01:04:33 +01:00
io QDir: Use QT_TEST_EQUALITY_OPS macro in unit-tests 2024-02-15 14:51:37 +01:00
ipc Change license for tests files 2024-02-04 09:56:42 +01:00
itemmodels Change license for tests files 2024-02-04 09:56:42 +01:00
kernel QTimer: use QTest::ingoreMessage() for negative internvals tests 2024-02-15 22:35:00 +02:00
mimetypes Change license for tests files 2024-02-04 09:56:42 +01:00
platform Change license for tests files 2024-02-04 09:56:42 +01:00
plugin Remove extra semi-colons 2024-02-06 20:17:18 +09:00
serialization Deprecate QDataStream::readBytes(char *&, uint &) instead of removing it 2024-02-07 15:02:19 +01:00
text Add QByteArrayView vs const char * relational operators 2024-02-20 01:04:33 +01:00
thread Change license for tests files 2024-02-04 09:56:42 +01:00
time QIcuTimeZonePrivate constructor: save iteration over all zone IDs 2024-02-08 15:40:03 +01:00
tools QList: add uninitialized resizes 2024-02-16 14:20:50 +01:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00