diff options
Diffstat (limited to 'libproxy/test/url-test.cpp')
-rw-r--r-- | libproxy/test/url-test.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libproxy/test/url-test.cpp b/libproxy/test/url-test.cpp index b66ae35..f5ede04 100644 --- a/libproxy/test/url-test.cpp +++ b/libproxy/test/url-test.cpp @@ -145,6 +145,28 @@ int main() "", 80, ""); + /* Check windows style URL */ + try_url ("file:///E:/dir/file.pac", rtv, + "file", + "", "", + "", 0, +#ifdef WIN32 + "E:\\dir\\file.pac"); +#else + "/E:/dir/file.pac"); +#endif + + /* UNC windows URL */ + try_url ("file://server/dir/file.pac", rtv, + "file", + "", "", + "server", 0, +#ifdef WIN32 + "\\\\server\\dir\\file.pac"); +#else + "/dir/file.pac"); +#endif + #ifdef WIN32 WSACleanup(); #endif |