aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/qxmppsasl/tst_qxmppsasl.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/tests/qxmppsasl/tst_qxmppsasl.cpp b/tests/qxmppsasl/tst_qxmppsasl.cpp
index 5121ea5a..cb216ba7 100644
--- a/tests/qxmppsasl/tst_qxmppsasl.cpp
+++ b/tests/qxmppsasl/tst_qxmppsasl.cpp
@@ -190,14 +190,18 @@ void tst_QXmppSasl::testSuccess()
void tst_QXmppSasl::testClientAvailableMechanisms()
{
- QCOMPARE(QXmppSaslClient::availableMechanisms(), QStringList() << "SCRAM-SHA-256"
- << "SCRAM-SHA-1"
- << "DIGEST-MD5"
- << "PLAIN"
- << "ANONYMOUS"
- << "X-FACEBOOK-PLATFORM"
- << "X-MESSENGER-OAUTH2"
- << "X-OAUTH2");
+ const QStringList expectedMechanisms = {
+ "SCRAM-SHA-256",
+ "SCRAM-SHA-1",
+ "DIGEST-MD5",
+ "PLAIN",
+ "ANONYMOUS",
+ "X-FACEBOOK-PLATFORM",
+ "X-MESSENGER-OAUTH2",
+ "X-OAUTH2"
+ };
+
+ QCOMPARE(QXmppSaslClient::availableMechanisms(), expectedMechanisms);
}
void tst_QXmppSasl::testClientBadMechanism()