summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-11-18 11:06:21 -0800
committerIvan Solovev <ivan.solovev@qt.io>2023-02-15 22:42:21 +0100
commit1e903be81f43da4e31385bb7866bb4d3f07e5eba (patch)
tree0ebe5f26bc267a150aad349077b2b40d74c7b1a1 /tests
parentf6f75200436f5ed0506fe94a31e8a15e39b45c81 (diff)
QBluetoothUuid: remove quint128 support
Only kept for in removed_api.cpp for binary compatibility. [ChangeLog][QtBluetooth] The undocumented quint128 was removed from QtBluetooth. This affects the QBluetoothUuid constructor and the toUInt128() method. QUuid has support for an integer quint128 on certain 64-bit platforms (all except MSVC) with a constructor and a getter of the same name, so this change is mostly source-compatible, so long as the application code doesn't attempt to treat this type as a structure. For cross-platform support, use QUuid::Id128Bytes. Change-Id: Id8e48e8f498c4a029619fffd1728c34931ac525e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp b/tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp
index 2dbb5be1..1c58e60c 100644
--- a/tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp
+++ b/tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp
@@ -32,7 +32,6 @@ private slots:
void tst_conversion();
void tst_comparison_data();
void tst_comparison();
- void tst_quint128ToUuid();
};
tst_QBluetoothUuid::tst_QBluetoothUuid()
@@ -342,17 +341,6 @@ void tst_QBluetoothUuid::tst_comparison()
}
}
-void tst_QBluetoothUuid::tst_quint128ToUuid()
-{
- QBluetoothUuid temp(QString("{67C8770B-44F1-410A-AB9A-F9B5446F13EE}"));
- QUuid::Id128Bytes array = temp.toBytes();
- QBluetoothUuid u(array);
- QVERIFY(temp == u);
-
- QBENCHMARK {
- QBluetoothUuid u(array);
- }
-}
QTEST_MAIN(tst_QBluetoothUuid)
#include "tst_qbluetoothuuid.moc"