forked from qt-creator/qt-creator
QmlDebug: Extract a general QML debug connection manager from QmlProfiler
We can use it for other QmlDebug run controls, too. Change-Id: Iee1cd592848ef4c48954a2674b6fa509223fcda4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -149,7 +149,7 @@ void QmlProfilerClientManagerTest::testConnectionFailure()
|
||||
QCOMPARE(openedSpy.count(), 0);
|
||||
QVERIFY(!clientManager.isConnected());
|
||||
|
||||
clientManager.clearConnection();
|
||||
clientManager.disconnectFromServer();
|
||||
|
||||
qputenv("QTC_FATAL_ASSERTS", fatalAsserts);
|
||||
}
|
||||
@@ -179,7 +179,7 @@ void QmlProfilerClientManagerTest::testUnresponsiveTcp()
|
||||
QCOMPARE(closedSpy.count(), 0);
|
||||
QVERIFY(!clientManager.isConnected());
|
||||
|
||||
clientManager.clearConnection();
|
||||
clientManager.disconnectFromServer();
|
||||
}
|
||||
|
||||
void QmlProfilerClientManagerTest::testUnresponsiveLocal()
|
||||
@@ -206,7 +206,7 @@ void QmlProfilerClientManagerTest::testUnresponsiveLocal()
|
||||
QCOMPARE(closedSpy.count(), 0);
|
||||
QVERIFY(!clientManager.isConnected());
|
||||
|
||||
clientManager.clearConnection();
|
||||
clientManager.disconnectFromServer();
|
||||
}
|
||||
|
||||
void responsiveTestData()
|
||||
@@ -391,7 +391,7 @@ void QmlProfilerClientManagerTest::testInvalidData()
|
||||
QCOMPARE(closedSpy.count(), 0);
|
||||
QVERIFY(!clientManager.isConnected());
|
||||
|
||||
clientManager.clearConnection();
|
||||
clientManager.disconnectFromServer();
|
||||
}
|
||||
|
||||
void QmlProfilerClientManagerTest::testStopRecording()
|
||||
|
||||
Reference in New Issue
Block a user