diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-01-25 10:35:39 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-01-25 10:35:39 +0100 |
commit | f621367f0706ae3093eedb8cf0d068c34acee6ea (patch) | |
tree | 72334305055d9053b86ffbd404527b54aaadcd74 /autotests | |
parent | a8e8f1cd39e846941de544c7791e1ab6398a335b (diff) | |
download | libquotient-f621367f0706ae3093eedb8cf0d068c34acee6ea.tar.gz libquotient-f621367f0706ae3093eedb8cf0d068c34acee6ea.zip |
Autotests: make sure types passed to QCOMPARE are the same
The current test may fail with "undefined reference" errors discussed at
https://stackoverflow.com/questions/14198972/undefined-symbols-for-qcompare.
Diffstat (limited to 'autotests')
-rw-r--r-- | autotests/callcandidateseventtest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/autotests/callcandidateseventtest.cpp b/autotests/callcandidateseventtest.cpp index 39e6a116..1a69cb66 100644 --- a/autotests/callcandidateseventtest.cpp +++ b/autotests/callcandidateseventtest.cpp @@ -43,13 +43,14 @@ void TestCallCandidatesEvent::fromJson() Quotient::CallCandidatesEvent callCandidatesEvent(object); QCOMPARE(callCandidatesEvent.version(), 0); - QCOMPARE(callCandidatesEvent.callId(), "12345"); + QCOMPARE(callCandidatesEvent.callId(), QStringLiteral("12345")); QCOMPARE(callCandidatesEvent.candidates().count(), 1); const QJsonObject &candidate = callCandidatesEvent.candidates().at(0).toObject(); - QCOMPARE(candidate.value("sdpMid").toString(), "audio"); + QCOMPARE(candidate.value("sdpMid").toString(), QStringLiteral("audio")); QCOMPARE(candidate.value("sdpMLineIndex").toInt(), 0); - QCOMPARE(candidate.value("candidate").toString(), "candidate:863018703 1 udp 2122260223 10.9.64.156 43670 typ host generation 0"); + QCOMPARE(candidate.value("candidate").toString(), + QStringLiteral("candidate:863018703 1 udp 2122260223 10.9.64.156 43670 typ host generation 0")); } QTEST_MAIN(TestCallCandidatesEvent) |