tst_spdy: Check network test server

There is no need to even try to run the tests if the network test
server is not present.

Add a validation in initTestCase() since all test functions depend
on the network test server.

Change-Id: I8eca376a718ab5b6e1cc2c57f2e045dd0b58f52b
Reviewed-by: Richard J. Moore <rich@kde.org>
This commit is contained in:
Sergio Ahumada 2014-02-21 14:12:45 +01:00 committed by The Qt Project
parent 699ba50744
commit 5e39b7ad1e

View File

@ -64,6 +64,7 @@ public:
~tst_Spdy();
private Q_SLOTS:
void initTestCase();
void settingsAndNegotiation_data();
void settingsAndNegotiation();
void download_data();
@ -103,6 +104,11 @@ tst_Spdy::~tst_Spdy()
{
}
void tst_Spdy::initTestCase()
{
QVERIFY(QtNetworkSettings::verifyTestNetworkSettings());
}
void tst_Spdy::settingsAndNegotiation_data()
{
QTest::addColumn<QUrl>("url");