~ubuntu-branches/ubuntu/vivid/qtdeclarative-opensource-src-gles/vivid

« back to all changes in this revision

Viewing changes to tests/auto/qml/debugger/qpacketprotocol/tst_qpacketprotocol.cpp

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2014-10-29 07:54:05 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20141029075405-gq1uzomnw3but9g2
Tags: 5.3.2-0ubuntu1
Sync package with qtdeclarative-opensource-src - 5.3.2-3ubuntu1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    QVERIFY(m_server->listen(QHostAddress("127.0.0.1")));
85
85
 
86
86
    m_client = new QTcpSocket(this);
 
87
 
 
88
    QSignalSpy serverSpy(m_server, SIGNAL(newConnection()));
 
89
    QSignalSpy clientSpy(m_client, SIGNAL(connected()));
 
90
 
87
91
    m_client->connectToHost(m_server->serverAddress(), m_server->serverPort());
88
92
 
89
 
    QVERIFY(m_client->waitForConnected());
90
 
    QVERIFY(m_server->waitForNewConnection(10000));
 
93
    QVERIFY(clientSpy.count() > 0 || clientSpy.wait());
 
94
    QVERIFY(serverSpy.count() > 0 || serverSpy.wait());
 
95
 
91
96
    m_serverConn = m_server->nextPendingConnection();
92
97
}
93
98