They were only used internally or for redundant checks in the tests.
Change-Id: Iaa7d52be030adaa52a07b28fba53bdef9fada879
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
eventLoop.processEvents(QEventLoop::AllEvents);
}
-bool QQmlDebugServer::hasDebuggingClient() const
-{
- Q_D(const QQmlDebugServer);
- return d->connection
- && d->connection->isConnected()
- && d->gotHello;
-}
-
-bool QQmlDebugServer::hasThread() const
-{
- Q_D(const QQmlDebugServer);
- return d->thread != 0;
-}
-
-bool QQmlDebugServer::hasConnection() const
-{
- Q_D(const QQmlDebugServer);
- return d->connection != 0;
-}
-
bool QQmlDebugServer::blockingMode() const
{
Q_D(const QQmlDebugServer);
return false;
if (!action(d))
return false;
- while (!wrapper->m_instance.hasConnection()) {
- if (!wrapper->m_instance.hasThread())
+ while (!d->connection) {
+ if (!d->thread)
return false;
}
return true;
static QQmlDebugServer *instance();
- bool hasThread() const;
- bool hasConnection() const;
- bool hasDebuggingClient() const;
bool blockingMode() const;
QList<QQmlDebugService*> services() const;
QVERIFY(m_conn->isConnected());
- QTRY_VERIFY(QQmlDebugServer::instance() && QQmlDebugServer::instance()->hasDebuggingClient());
QTRY_COMPARE(client.state(), QQmlDebugClient::Enabled);
}
QVERIFY(m_conn->isConnected());
- QTRY_VERIFY(QQmlDebugServer::instance() && QQmlDebugServer::instance()->hasDebuggingClient());
QTRY_COMPARE(client.state(), QQmlDebugClient::Enabled);
}
QTest::qSleep(100);
}
QVERIFY(m_conn->isConnected());
-
- QTRY_VERIFY(QQmlDebugServer::instance() && QQmlDebugServer::instance()->hasDebuggingClient());
}
void tst_QQmlDebugService::checkPortRange()
}
QVERIFY(m_conn->isConnected());
- QTRY_VERIFY(QQmlDebugServer::instance() && QQmlDebugServer::instance()->hasDebuggingClient());
QQmlDebugTestService service("tst_QQmlDebugService::sendMessage2()");
QQmlDebugTestClient client("tst_QQmlDebugService::sendMessage2()", m_conn);
bool ok = m_conn->waitForConnected();
QVERIFY(ok);
- QTRY_VERIFY(QQmlDebugServer::instance() && QQmlDebugServer::instance()->hasDebuggingClient());
m_dbg = new QQmlEngineDebugClient(m_conn);
QTRY_COMPARE(m_dbg->state(), QQmlEngineDebugClient::Enabled);
}