| 85 | } |
| 86 | |
| 87 | void LightpackApiTest::init() |
| 88 | { |
| 89 | if (m_socket == NULL) |
| 90 | m_socket = new QTcpSocket(); |
| 91 | |
| 92 | // Reconnect to host before each test case |
| 93 | m_socket->connectToHost("127.0.0.1", 3636); |
| 94 | |
| 95 | // Wait 5 second for connected |
| 96 | QVERIFY(m_socket->waitForConnected(5000)); |
| 97 | |
| 98 | // Check version of API and version of API Tests on match |
| 99 | QVERIFY(checkVersion(m_socket)); |
| 100 | |
| 101 | m_sockReadLineOk = false; |
| 102 | } |
| 103 | |
| 104 | void LightpackApiTest::cleanup() |
| 105 | { |
no outgoing calls
no test coverage detected