diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-09-05 20:37:05 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-06 00:46:56 +0200 |
| commit | 5f813f8a4bbe1e075daad7b3933829044befffb4 (patch) | |
| tree | 20102aa665b03cfb6dfe0c6ece94938320b6430e /tests/qxmppiceconnection/tst_qxmppiceconnection.cpp | |
| parent | 4c60b13e0b8011e4e0b093a690e939f3b23e2436 (diff) | |
| download | qxmpp-5f813f8a4bbe1e075daad7b3933829044befffb4.tar.gz | |
Reformat code
Diffstat (limited to 'tests/qxmppiceconnection/tst_qxmppiceconnection.cpp')
| -rw-r--r-- | tests/qxmppiceconnection/tst_qxmppiceconnection.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/qxmppiceconnection/tst_qxmppiceconnection.cpp b/tests/qxmppiceconnection/tst_qxmppiceconnection.cpp index bfd03771..1c8c5775 100644 --- a/tests/qxmppiceconnection/tst_qxmppiceconnection.cpp +++ b/tests/qxmppiceconnection/tst_qxmppiceconnection.cpp @@ -85,10 +85,11 @@ void tst_QXmppIceConnection::testBindStun() const auto &localCandidates = client.localCandidates(); for (const auto &c : localCandidates) { QCOMPARE(c.component(), componentId); - if (c.type() == QXmppJingleCandidate::ServerReflexiveType) + if (c.type() == QXmppJingleCandidate::ServerReflexiveType) { foundReflexive = true; - else + } else { QCOMPARE(c.type(), QXmppJingleCandidate::HostType); + } } QVERIFY(foundReflexive); } @@ -122,11 +123,13 @@ void tst_QXmppIceConnection::testConnect() // exchange candidates const auto &rLocalCandidates = clientR.localCandidates(); - for (const auto &candidate : rLocalCandidates) + for (const auto &candidate : rLocalCandidates) { clientL.addRemoteCandidate(candidate); + } const auto &lLocalCandidates = clientL.localCandidates(); - for (const auto &candidate : lLocalCandidates) + for (const auto &candidate : lLocalCandidates) { clientR.addRemoteCandidate(candidate); + } // start ICE QEventLoop loop; |
