diff options
Diffstat (limited to 'tests/auto/qcoapreply/tst_qcoapreply.cpp')
-rw-r--r-- | tests/auto/qcoapreply/tst_qcoapreply.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/auto/qcoapreply/tst_qcoapreply.cpp b/tests/auto/qcoapreply/tst_qcoapreply.cpp index 05b5889..d9a7562 100644 --- a/tests/auto/qcoapreply/tst_qcoapreply.cpp +++ b/tests/auto/qcoapreply/tst_qcoapreply.cpp @@ -65,20 +65,20 @@ void tst_QCoapReply::updateReply_data() QTest::newRow("success") << QByteArray("Some data") - << QtCoap::Content - << QtCoap::NoError; + << QtCoap::ResponseCode::Content + << QtCoap::Error::Ok; QTest::newRow("content error") << QByteArray("Error") - << QtCoap::BadRequest - << QtCoap::NoError; + << QtCoap::ResponseCode::BadRequest + << QtCoap::Error::Ok; QTest::newRow("finished error") << QByteArray("Error") - << QtCoap::Content - << QtCoap::BadRequestError; + << QtCoap::ResponseCode::Content + << QtCoap::Error::BadRequest; QTest::newRow("content & finished errors") << QByteArray("2Errors") - << QtCoap::BadGateway - << QtCoap::BadRequestError; + << QtCoap::ResponseCode::BadGateway + << QtCoap::Error::BadRequest; } void tst_QCoapReply::updateReply() @@ -111,7 +111,7 @@ void tst_QCoapReply::updateReply() QCOMPARE(spyReplyFinished.count(), 1); QCOMPARE(spyReplyNotified.count(), 0); QCOMPARE(spyReplyAborted.count(), 0); - if (error != QtCoap::NoError || QtCoap::isError(responseCode)) { + if (error != QtCoap::Error::Ok || QtCoap::isError(responseCode)) { QVERIFY(spyReplyError.count() > 0); QCOMPARE(reply.isSuccessful(), false); } else { |