| 94 | } |
| 95 | |
| 96 | void TQTcpServerTest::test_communicate() { |
| 97 | client->addString("foo"); |
| 98 | client->addString("bar"); |
| 99 | |
| 100 | std::vector<std::string> reply; |
| 101 | client->getStrings(reply); |
| 102 | QCOMPARE(QString::fromStdString(reply[0]), QString("foo")); |
| 103 | QCOMPARE(QString::fromStdString(reply[1]), QString("bar")); |
| 104 | } |
| 105 | |
| 106 | |
| 107 | #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) |
nothing calls this directly
no test coverage detected