equal
deleted
inserted
replaced
345 QVERIFY(socket.atEnd()); |
345 QVERIFY(socket.atEnd()); |
346 QCOMPARE(socket.localCertificate(), QSslCertificate()); |
346 QCOMPARE(socket.localCertificate(), QSslCertificate()); |
347 QCOMPARE(socket.sslConfiguration(), QSslConfiguration::defaultConfiguration()); |
347 QCOMPARE(socket.sslConfiguration(), QSslConfiguration::defaultConfiguration()); |
348 QCOMPARE(socket.errorString(), QString("Unknown error")); |
348 QCOMPARE(socket.errorString(), QString("Unknown error")); |
349 char c = '\0'; |
349 char c = '\0'; |
350 QTest::ignoreMessage(QtWarningMsg, "QIODevice::getChar: Closed device"); |
|
351 QVERIFY(!socket.getChar(&c)); |
350 QVERIFY(!socket.getChar(&c)); |
352 QCOMPARE(c, '\0'); |
351 QCOMPARE(c, '\0'); |
353 QVERIFY(!socket.isOpen()); |
352 QVERIFY(!socket.isOpen()); |
354 QVERIFY(!socket.isReadable()); |
353 QVERIFY(!socket.isReadable()); |
355 QVERIFY(socket.isSequential()); |
354 QVERIFY(socket.isSequential()); |
1753 QVERIFY(socket->state() == QAbstractSocket::ConnectedState); |
1752 QVERIFY(socket->state() == QAbstractSocket::ConnectedState); |
1754 QVERIFY(socket->bytesAvailable()); |
1753 QVERIFY(socket->bytesAvailable()); |
1755 socket->close(); |
1754 socket->close(); |
1756 QVERIFY(!socket->bytesAvailable()); |
1755 QVERIFY(!socket->bytesAvailable()); |
1757 QVERIFY(!socket->bytesToWrite()); |
1756 QVERIFY(!socket->bytesToWrite()); |
1758 socket->waitForDisconnected(); |
1757 QVERIFY(socket->state() == QAbstractSocket::UnconnectedState); |
1759 QVERIFY(!socket->bytesAvailable()); |
|
1760 QVERIFY(!socket->bytesToWrite()); |
|
1761 } |
1758 } |
1762 |
1759 |
1763 void tst_QSslSocket::writeBigChunk() |
1760 void tst_QSslSocket::writeBigChunk() |
1764 { |
1761 { |
1765 if (!QSslSocket::supportsSsl()) |
1762 if (!QSslSocket::supportsSsl()) |