diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-05-05 14:36:10 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-05-05 15:05:05 (GMT) |
commit | e41217d6d2e592e79a9a8a83c9e49491d66ad18e (patch) | |
tree | 712fe8c9a6cb1463b7b6237eaab2ad96424e920c /tests/auto/qnetworkreply | |
parent | db64d17f233f92ce7a425271ee60586bd846705d (diff) | |
download | Qt-e41217d6d2e592e79a9a8a83c9e49491d66ad18e.zip Qt-e41217d6d2e592e79a9a8a83c9e49491d66ad18e.tar.gz Qt-e41217d6d2e592e79a9a8a83c9e49491d66ad18e.tar.bz2 |
tst_qnetworkreply: add a test for getting from SMB
Reviewed-By: Markus Goetz
Diffstat (limited to 'tests/auto/qnetworkreply')
-rw-r--r-- | tests/auto/qnetworkreply/smb-file.txt | 1 | ||||
-rw-r--r-- | tests/auto/qnetworkreply/tst_qnetworkreply.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qnetworkreply/smb-file.txt b/tests/auto/qnetworkreply/smb-file.txt new file mode 100644 index 0000000..73c3ac2 --- /dev/null +++ b/tests/auto/qnetworkreply/smb-file.txt @@ -0,0 +1 @@ +This is 34 bytes. Do not change...
\ No newline at end of file diff --git a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp index db8548d..9d942bf 100644 --- a/tests/auto/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/auto/qnetworkreply/tst_qnetworkreply.cpp @@ -1073,6 +1073,9 @@ void tst_QNetworkReply::getFromFileSpecial_data() QTest::newRow("resource") << ":/resource" << "qrc:/resource"; QTest::newRow("search-path") << "srcdir:/rfc3252.txt" << "srcdir:/rfc3252.txt"; QTest::newRow("bigfile-path") << "srcdir:/bigfile" << "srcdir:/bigfile"; +#ifdef Q_OS_WIN + QTest::newRow("smb-path") << "srcdir:/smb-file.txt" << "file://" + QtNetworkSettings::winServerName() + "/testshare/test.pri"; +#endif } void tst_QNetworkReply::getFromFileSpecial() |