2010-05-10 03:23:34 +02:00
|
|
|
/*
|
|
|
|
* UrlMon IUri tests
|
|
|
|
*
|
|
|
|
* Copyright 2010 Thomas Mullaly
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IUri testing framework goals:
|
2010-05-13 04:35:59 +02:00
|
|
|
* - Test invalid args
|
|
|
|
* - invalid flags
|
|
|
|
* - invalid args (IUri, uri string)
|
2010-05-10 03:23:34 +02:00
|
|
|
* - Test parsing for components when no canonicalization occurs
|
|
|
|
* - Test parsing for components when canonicalization occurs.
|
|
|
|
* - More tests...
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <wine/test.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "urlmon.h"
|
2010-05-26 23:42:12 +02:00
|
|
|
#include "shlwapi.h"
|
2010-05-10 03:23:34 +02:00
|
|
|
|
2010-05-26 22:30:32 +02:00
|
|
|
#define URI_STR_PROPERTY_COUNT Uri_PROPERTY_STRING_LAST+1
|
2010-05-26 23:42:12 +02:00
|
|
|
#define URI_DWORD_PROPERTY_COUNT (Uri_PROPERTY_DWORD_LAST - Uri_PROPERTY_DWORD_START)+1
|
2010-05-26 22:30:32 +02:00
|
|
|
|
2010-05-11 20:57:41 +02:00
|
|
|
static HRESULT (WINAPI *pCreateUri)(LPCWSTR, DWORD, DWORD_PTR, IUri**);
|
2010-05-10 03:23:34 +02:00
|
|
|
|
2010-05-11 20:57:41 +02:00
|
|
|
static const WCHAR http_urlW[] = { 'h','t','t','p',':','/','/','w','w','w','.','w','i','n','e','h','q',
|
|
|
|
'.','o','r','g','/',0};
|
2010-05-10 03:23:34 +02:00
|
|
|
|
|
|
|
typedef struct _uri_create_flag_test {
|
|
|
|
DWORD flags;
|
|
|
|
HRESULT expected;
|
|
|
|
} uri_create_flag_test;
|
|
|
|
|
2010-05-11 20:57:41 +02:00
|
|
|
static const uri_create_flag_test invalid_flag_tests[] = {
|
2010-05-10 03:23:34 +02:00
|
|
|
/* Set of invalid flag combinations to test for. */
|
|
|
|
{Uri_CREATE_DECODE_EXTRA_INFO | Uri_CREATE_NO_DECODE_EXTRA_INFO, E_INVALIDARG},
|
|
|
|
{Uri_CREATE_CANONICALIZE | Uri_CREATE_NO_CANONICALIZE, E_INVALIDARG},
|
|
|
|
{Uri_CREATE_CRACK_UNKNOWN_SCHEMES | Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES, E_INVALIDARG},
|
|
|
|
{Uri_CREATE_PRE_PROCESS_HTML_URI | Uri_CREATE_NO_PRE_PROCESS_HTML_URI, E_INVALIDARG},
|
|
|
|
{Uri_CREATE_IE_SETTINGS | Uri_CREATE_NO_IE_SETTINGS, E_INVALIDARG}
|
|
|
|
};
|
|
|
|
|
2010-05-26 22:30:32 +02:00
|
|
|
typedef struct _uri_str_property {
|
|
|
|
const char* value;
|
|
|
|
HRESULT expected;
|
|
|
|
BOOL todo;
|
2010-07-13 00:22:23 +02:00
|
|
|
const char* broken_value;
|
2010-05-26 22:30:32 +02:00
|
|
|
} uri_str_property;
|
|
|
|
|
2010-05-26 23:42:12 +02:00
|
|
|
typedef struct _uri_dword_property {
|
|
|
|
DWORD value;
|
|
|
|
HRESULT expected;
|
|
|
|
BOOL todo;
|
|
|
|
} uri_dword_property;
|
|
|
|
|
2010-05-26 22:30:32 +02:00
|
|
|
typedef struct _uri_properties {
|
|
|
|
const char* uri;
|
|
|
|
DWORD create_flags;
|
|
|
|
HRESULT create_expected;
|
|
|
|
BOOL create_todo;
|
2010-05-31 20:43:14 +02:00
|
|
|
DWORD props;
|
|
|
|
BOOL props_todo;
|
2010-05-26 22:30:32 +02:00
|
|
|
|
|
|
|
uri_str_property str_props[URI_STR_PROPERTY_COUNT];
|
2010-05-26 23:42:12 +02:00
|
|
|
uri_dword_property dword_props[URI_DWORD_PROPERTY_COUNT];
|
2010-05-26 22:30:32 +02:00
|
|
|
} uri_properties;
|
|
|
|
|
|
|
|
static const uri_properties uri_tests[] = {
|
|
|
|
{ "http://www.winehq.org/tests/../tests/../..", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
/* A flag bitmap containing all the Uri_HAS_* flags that correspond to this uri. */
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|
|
|
|
|
Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-26 22:30:32 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/",S_OK,FALSE}, /* ABSOLUTE_URI */
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE}, /* AUTHORITY */
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/",S_OK,FALSE}, /* DISPLAY_URI */
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE}, /* DOMAIN */
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE}, /* EXTENSION */
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE}, /* FRAGMENT */
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE}, /* HOST */
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE}, /* PASSWORD */
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE}, /* PATH */
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE}, /* PATH_AND_QUERY */
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE}, /* QUERY */
|
2010-07-06 22:19:58 +02:00
|
|
|
{"http://www.winehq.org/tests/../tests/../..",S_OK,FALSE}, /* RAW_URI */
|
2010-06-08 03:33:42 +02:00
|
|
|
{"http",S_OK,FALSE}, /* SCHEME_NAME */
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE}, /* USER_INFO */
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE} /* USER_NAME */
|
2010-05-26 23:42:12 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE}, /* HOST_TYPE */
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE}, /* PORT */
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE}, /* SCHEME */
|
2010-05-26 23:42:12 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE} /* ZONE */
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://winehq.org/tests/.././tests", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|
|
|
|
|
Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-26 22:30:32 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://winehq.org/tests",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://winehq.org/tests",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/tests",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/tests",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"http://winehq.org/tests/.././tests",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"http",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-05-26 23:42:12 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
2010-05-26 23:42:12 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "HtTp://www.winehq.org/tests/..?query=x&return=y", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-26 22:30:32 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/?query=x&return=y",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/?query=x&return=y",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=x&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=x&return=y",S_OK,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"HtTp://www.winehq.org/tests/..?query=x&return=y",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"http",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-05-26 23:42:12 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
2010-05-26 23:42:12 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "hTTp://us%45r%3Ainfo@examp%4CE.com:80/path/a/b/./c/../%2E%2E/Forbidden'<|> Characters", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-26 22:30:32 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://usEr%3Ainfo@example.com/path/a/Forbidden'%3C%7C%3E%20Characters",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"usEr%3Ainfo@example.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://example.com/path/a/Forbidden'%3C%7C%3E%20Characters",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"example.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"example.com",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/path/a/Forbidden'%3C%7C%3E%20Characters",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/path/a/Forbidden'%3C%7C%3E%20Characters",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"hTTp://us%45r%3Ainfo@examp%4CE.com:80/path/a/b/./c/../%2E%2E/Forbidden'<|> Characters",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"http",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"usEr%3Ainfo",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"usEr%3Ainfo",S_OK,FALSE}
|
2010-05-26 23:42:12 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
2010-05-26 23:42:12 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "ftp://winepass:wine@ftp.winehq.org:9999/dir/foo bar.txt", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_EXTENSION|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-26 22:30:32 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://winepass:wine@ftp.winehq.org:9999/dir/foo%20bar.txt",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"winepass:wine@ftp.winehq.org:9999",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://ftp.winehq.org:9999/dir/foo%20bar.txt",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".txt",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"ftp.winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"wine",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/dir/foo%20bar.txt",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/dir/foo%20bar.txt",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"ftp://winepass:wine@ftp.winehq.org:9999/dir/foo bar.txt",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"winepass:wine",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"winepass",S_OK,FALSE}
|
2010-05-26 23:42:12 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{9999,S_OK,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
2010-05-26 23:42:12 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "file://c:\\tests\\../tests/foo%20bar.mp3", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-26 22:30:32 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"file:///c:/tests/foo%2520bar.mp3",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"file:///c:/tests/foo%2520bar.mp3",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".mp3",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/c:/tests/foo%2520bar.mp3",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/c:/tests/foo%2520bar.mp3",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"file://c:\\tests\\../tests/foo%20bar.mp3",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"file",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-05-26 23:42:12 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_FILE,S_OK,FALSE},
|
2010-05-26 23:42:12 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "FILE://localhost/test dir\\../tests/test%20file.README.txt", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-26 22:30:32 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"file:///tests/test%20file.README.txt",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"file:///tests/test%20file.README.txt",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".txt",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/tests/test%20file.README.txt",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/tests/test%20file.README.txt",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"FILE://localhost/test dir\\../tests/test%20file.README.txt",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"file",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-05-26 23:42:12 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_FILE,S_OK,FALSE},
|
2010-05-26 23:42:12 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "urn:nothing:should:happen here", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-26 22:30:32 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"urn:nothing:should:happen here",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"urn:nothing:should:happen here",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"nothing:should:happen here",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"nothing:should:happen here",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"urn:nothing:should:happen here",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"urn",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-05-26 23:42:12 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
2010-05-26 23:42:12 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
2010-05-28 19:07:49 +02:00
|
|
|
},
|
|
|
|
{ "http://127.0.0.1/tests/../test dir/./test.txt", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-28 19:07:49 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://127.0.0.1/test%20dir/test.txt",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"127.0.0.1",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://127.0.0.1/test%20dir/test.txt",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".txt",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 22:24:48 +02:00
|
|
|
{"127.0.0.1",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/test%20dir/test.txt",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/test%20dir/test.txt",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"http://127.0.0.1/tests/../test dir/./test.txt",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"http",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-05-28 19:07:49 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV4,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
2010-05-28 19:07:49 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-28 19:07:49 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[fedc:ba98:7654:3210:fedc:ba98:7654:3210]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[fedc:ba98:7654:3210:fedc:ba98:7654:3210]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[fedc:ba98:7654:3210:fedc:ba98:7654:3210]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-03 17:52:59 +02:00
|
|
|
{"fedc:ba98:7654:3210:fedc:ba98:7654:3210",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"http",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-05-28 19:07:49 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
2010-05-28 19:07:49 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "ftp://[::13.1.68.3]", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-28 19:07:49 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://[::13.1.68.3]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[::13.1.68.3]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://[::13.1.68.3]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-03 17:52:59 +02:00
|
|
|
{"::13.1.68.3",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"ftp://[::13.1.68.3]",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-05-28 19:07:49 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
2010-05-28 19:07:49 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://[FEDC:BA98:0:0:0:0:0:3210]", 0, S_OK, FALSE,
|
2010-05-31 20:43:14 +02:00
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-05-28 19:07:49 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[fedc:ba98::3210]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[fedc:ba98::3210]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[fedc:ba98::3210]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-03 17:52:59 +02:00
|
|
|
{"fedc:ba98::3210",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-06 22:19:58 +02:00
|
|
|
{"http://[FEDC:BA98:0:0:0:0:0:3210]",S_OK,FALSE},
|
2010-06-08 03:33:42 +02:00
|
|
|
{"http",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-05-28 19:07:49 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-08 03:41:19 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
2010-05-28 19:07:49 +02:00
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-06-08 03:43:46 +02:00
|
|
|
},
|
|
|
|
{ "1234://www.winehq.org", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-08 03:43:46 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"1234://www.winehq.org/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"1234://www.winehq.org/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{"1234://www.winehq.org",S_OK,FALSE},
|
|
|
|
{"1234",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-06-08 03:43:46 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Test's to make sure the parser/canonicalizer handles implicit file schemes correctly. */
|
|
|
|
{ "C:/test/test.mp3", Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-08 03:43:46 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"file:///C:/test/test.mp3",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"file:///C:/test/test.mp3",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".mp3",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/C:/test/test.mp3",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/C:/test/test.mp3",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{"C:/test/test.mp3",S_OK,FALSE},
|
|
|
|
{"file",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-06-08 03:43:46 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{URL_SCHEME_FILE,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Test's to make sure the parser/canonicalizer handles implicit file schemes correctly. */
|
|
|
|
{ "\\\\Server/test.mp3", Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_HOST|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-08 03:43:46 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"file://server/test.mp3",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"server",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"file://server/test.mp3",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".mp3",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"server",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/test.mp3",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/test.mp3",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{"\\\\Server/test.mp3",S_OK,FALSE},
|
|
|
|
{"file",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-06-08 03:43:46 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{URL_SCHEME_FILE,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "www.winehq.org/test", Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-08 03:43:46 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"*:www.winehq.org/test",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"*:www.winehq.org/test",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/test",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/test",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{"www.winehq.org/test",S_OK,FALSE},
|
|
|
|
{"*",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-06-08 03:43:46 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{URL_SCHEME_WILDCARD,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
2010-07-22 05:56:36 +02:00
|
|
|
/* Valid since the '*' is the only character in the scheme name. */
|
|
|
|
{ "*:www.winehq.org/test", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-22 05:56:36 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"*:www.winehq.org/test",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"*:www.winehq.org/test",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/test",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/test",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-22 05:56:36 +02:00
|
|
|
{"*:www.winehq.org/test",S_OK,FALSE},
|
|
|
|
{"*",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-07-22 05:56:36 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-07-22 05:56:36 +02:00
|
|
|
{URL_SCHEME_WILDCARD,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
2010-06-08 03:43:46 +02:00
|
|
|
{ "/../some dir/test.ext", Uri_CREATE_ALLOW_RELATIVE, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-08 03:43:46 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"/../some dir/test.ext",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"/../some dir/test.ext",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".ext",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/../some dir/test.ext",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/../some dir/test.ext",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{"/../some dir/test.ext",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-06-08 03:43:46 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "//implicit/wildcard/uri scheme", Uri_CREATE_ALLOW_RELATIVE|Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-08 03:43:46 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"*://implicit/wildcard/uri%20scheme",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"*://implicit/wildcard/uri%20scheme",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"//implicit/wildcard/uri%20scheme",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"//implicit/wildcard/uri%20scheme",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{"//implicit/wildcard/uri scheme",S_OK,FALSE},
|
|
|
|
{"*",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-08 03:43:46 +02:00
|
|
|
{URL_SCHEME_WILDCARD,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-06-12 02:19:35 +02:00
|
|
|
},
|
|
|
|
/* URI is considered opaque since CREATE_NO_CRACK_UNKNOWN_SCHEMES is set and its an unknown scheme. */
|
|
|
|
{ "zip://google.com", Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-12 02:19:35 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip:/.//google.com",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip:/.//google.com",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/.//google.com",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/.//google.com",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-12 02:19:35 +02:00
|
|
|
{"zip://google.com",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-06-12 02:19:35 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-12 02:19:35 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-06-17 01:48:23 +02:00
|
|
|
},
|
|
|
|
/* Windows uses the first occurence of ':' to delimit the userinfo. */
|
|
|
|
{ "ftp://user:pass:word@winehq.org/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-17 01:48:23 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://user:pass:word@winehq.org/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"user:pass:word@winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://winehq.org/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"pass:word",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-17 01:48:23 +02:00
|
|
|
{"ftp://user:pass:word@winehq.org/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"user:pass:word",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"user",S_OK,FALSE}
|
2010-06-17 01:48:23 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-17 01:48:23 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
/* Make sure % encoded unreserved characters are decoded. */
|
|
|
|
{ "ftp://w%49%4Ee:PA%53%53@ftp.google.com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://wINe:PASS@ftp.google.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"wINe:PASS@ftp.google.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://ftp.google.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"ftp.google.com",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"PASS",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"ftp://w%49%4Ee:PA%53%53@ftp.google.com/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"wINe:PASS",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"wINe",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Make sure % encoded characters which are NOT unreserved are NOT decoded. */
|
|
|
|
{ "ftp://w%5D%5Be:PA%7B%7D@ftp.google.com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://w%5D%5Be:PA%7B%7D@ftp.google.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"w%5D%5Be:PA%7B%7D@ftp.google.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://ftp.google.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"ftp.google.com",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"PA%7B%7D",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"ftp://w%5D%5Be:PA%7B%7D@ftp.google.com/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"w%5D%5Be:PA%7B%7D",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"w%5D%5Be",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* You're allowed to have an empty password portion in the userinfo section. */
|
|
|
|
{ "ftp://empty:@ftp.google.com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://empty:@ftp.google.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"empty:@ftp.google.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://ftp.google.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"ftp.google.com",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"ftp://empty:@ftp.google.com/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"empty:",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"empty",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Make sure forbidden characters in "userinfo" get encoded. */
|
|
|
|
{ "ftp://\" \"weird@ftp.google.com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://%22%20%22weird@ftp.google.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"%22%20%22weird@ftp.google.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://ftp.google.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"ftp.google.com",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"ftp://\" \"weird@ftp.google.com/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"%22%20%22weird",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"%22%20%22weird",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Make sure the forbidden characters don't get percent encoded. */
|
|
|
|
{ "ftp://\" \"weird@ftp.google.com/", Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://\" \"weird@ftp.google.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"\" \"weird@ftp.google.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://ftp.google.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"ftp.google.com",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"ftp://\" \"weird@ftp.google.com/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"\" \"weird",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"\" \"weird",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Allowed to have invalid % encoded because its an unknown scheme type. */
|
|
|
|
{ "zip://%xy:word@winehq.org/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://%xy:word@winehq.org/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"%xy:word@winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://%xy:word@winehq.org/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"word",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"zip://%xy:word@winehq.org/",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"%xy:word",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"%xy",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Unreserved, percent encoded characters aren't decoded in the userinfo becuase the scheme
|
|
|
|
* isn't known.
|
|
|
|
*/
|
|
|
|
{ "zip://%2E:%52%53ord@winehq.org/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://%2E:%52%53ord@winehq.org/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"%2E:%52%53ord@winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://%2E:%52%53ord@winehq.org/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"%52%53ord",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"zip://%2E:%52%53ord@winehq.org/",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"%2E:%52%53ord",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"%2E",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "ftp://[](),'test':word@winehq.org/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|
|
|
|
|
Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://[](),'test':word@winehq.org/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[](),'test':word@winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://winehq.org/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"word",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"ftp://[](),'test':word@winehq.org/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"[](),'test':word",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"[](),'test'",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "ftp://test?:word@winehq.org/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://test/?:word@winehq.org/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"test",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://test/?:word@winehq.org/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"test",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?:word@winehq.org/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?:word@winehq.org/",S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"ftp://test?:word@winehq.org/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "ftp://test#:word@winehq.org/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_FRAGMENT|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://test/#:word@winehq.org/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"test",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://test/#:word@winehq.org/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#:word@winehq.org/",S_OK,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"test",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"ftp://test#:word@winehq.org/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Allowed to have a backslash in the userinfo since it's an unknown scheme. */
|
|
|
|
{ "zip://test\\:word@winehq.org/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PASSWORD|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_USER_INFO|Uri_HAS_USER_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-18 01:26:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://test\\:word@winehq.org/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"test\\:word@winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://test\\:word@winehq.org/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
2010-06-20 05:53:37 +02:00
|
|
|
{"word",S_OK,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{"zip://test\\:word@winehq.org/",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
2010-06-18 01:38:23 +02:00
|
|
|
{"test\\:word",S_OK,FALSE},
|
2010-06-20 05:41:46 +02:00
|
|
|
{"test\\",S_OK,FALSE}
|
2010-06-18 01:26:53 +02:00
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-18 01:26:53 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-06-24 06:00:38 +02:00
|
|
|
},
|
|
|
|
/* It normalizes IPv4 addresses correctly. */
|
|
|
|
{ "http://127.000.000.100/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-24 06:00:38 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://127.0.0.100/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"127.0.0.100",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://127.0.0.100/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 22:24:48 +02:00
|
|
|
{"127.0.0.100",S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"http://127.000.000.100/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV4,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Make sure it normalizes partial IPv4 addresses correctly. */
|
|
|
|
{ "http://127.0/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-24 06:00:38 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://127.0.0.0/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"127.0.0.0",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://127.0.0.0/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 22:24:48 +02:00
|
|
|
{"127.0.0.0",S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"http://127.0/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV4,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Make sure it converts implicit IPv4's correctly. */
|
|
|
|
{ "http://123456/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-24 06:00:38 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://0.1.226.64/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"0.1.226.64",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://0.1.226.64/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 22:24:48 +02:00
|
|
|
{"0.1.226.64",S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"http://123456/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV4,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* UINT_MAX */
|
|
|
|
{ "http://4294967295/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-24 06:00:38 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://255.255.255.255/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"255.255.255.255",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://255.255.255.255/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 22:24:48 +02:00
|
|
|
{"255.255.255.255",S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"http://4294967295/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV4,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* UINT_MAX+1 */
|
|
|
|
{ "http://4294967296/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-24 06:00:38 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://4294967296/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"4294967296",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://4294967296/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"4294967296",S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"http://4294967296/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Window's doesn't normalize IP address for unknown schemes. */
|
|
|
|
{ "1234://4294967295/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-24 06:00:38 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"1234://4294967295/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"4294967295",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"1234://4294967295/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 22:24:48 +02:00
|
|
|
{"4294967295",S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"1234://4294967295/",S_OK,FALSE},
|
|
|
|
{"1234",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV4,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Window's doesn't normalize IP address for unknown schemes. */
|
|
|
|
{ "1234://127.001/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-06-24 06:00:38 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"1234://127.001/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"127.001",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"1234://127.001/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 22:24:48 +02:00
|
|
|
{"127.001",S_OK,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{"1234://127.001/",S_OK,FALSE},
|
|
|
|
{"1234",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV4,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-06-24 06:00:38 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-01 02:57:01 +02:00
|
|
|
},
|
|
|
|
{ "http://[FEDC:BA98::3210]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 02:57:01 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[fedc:ba98::3210]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[fedc:ba98::3210]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[fedc:ba98::3210]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-03 17:52:59 +02:00
|
|
|
{"fedc:ba98::3210",S_OK,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{"http://[FEDC:BA98::3210]",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://[::]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 02:57:01 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[::]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[::]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[::]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-03 17:52:59 +02:00
|
|
|
{"::",S_OK,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{"http://[::]",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://[FEDC:BA98::]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 02:57:01 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[fedc:ba98::]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[fedc:ba98::]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[fedc:ba98::]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-03 17:52:59 +02:00
|
|
|
{"fedc:ba98::",S_OK,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{"http://[FEDC:BA98::]",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-01 02:57:01 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-01 03:10:13 +02:00
|
|
|
},
|
2010-07-01 03:31:22 +02:00
|
|
|
/* Valid even with 2 byte elision because it doesn't appear the beginning or end. */
|
|
|
|
{ "http://[1::3:4:5:6:7:8]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:31:22 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[1:0:3:4:5:6:7:8]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[1:0:3:4:5:6:7:8]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[1:0:3:4:5:6:7:8]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-03 17:52:59 +02:00
|
|
|
{"1:0:3:4:5:6:7:8",S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"http://[1::3:4:5:6:7:8]",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
2010-07-01 03:10:13 +02:00
|
|
|
{ "http://[v2.34]/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:10:13 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[v2.34]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[v2.34]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[v2.34]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"[v2.34]",S_OK,FALSE},
|
2010-07-01 03:10:13 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:10:13 +02:00
|
|
|
{"http://[v2.34]/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-01 03:10:13 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-01 03:31:22 +02:00
|
|
|
},
|
|
|
|
/* Windows ignores ':' if they appear after a '[' on a non-IPLiteral host. */
|
|
|
|
{ "http://[xyz:12345.com/test", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:31:22 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[xyz:12345.com/test",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[xyz:12345.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[xyz:12345.com/test",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"[xyz:12345.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"[xyz:12345.com",S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/test",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/test",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"http://[xyz:12345.com/test",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Valid URI since the '[' and ']' don't appear at the begining and end
|
|
|
|
* of the host name (respectively).
|
|
|
|
*/
|
|
|
|
{ "ftp://www.[works].com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:31:22 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"ftp://www.[works].com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.[works].com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"ftp://www.[works].com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"[works].com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.[works].com",S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"ftp://www.[works].com/",S_OK,FALSE},
|
|
|
|
{"ftp",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{21,S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{URL_SCHEME_FTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Considers ':' a delimiter since it appears after the ']'. */
|
|
|
|
{ "http://www.google.com]:12345/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:31:22 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.google.com]:12345/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.google.com]:12345",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.google.com]:12345/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com]",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.google.com]",S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"http://www.google.com]:12345/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{12345,S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Unknown scheme types can have invalid % encoded data in the hostname. */
|
|
|
|
{ "zip://w%XXw%GEw.google.com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:31:22 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://w%XXw%GEw.google.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"w%XXw%GEw.google.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://w%XXw%GEw.google.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"w%XXw%GEw.google.com",S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"zip://w%XXw%GEw.google.com/",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Unknown scheme types hostname doesn't get lower cased. */
|
|
|
|
{ "zip://GOOGLE.com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:31:22 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://GOOGLE.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"GOOGLE.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://GOOGLE.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"GOOGLE.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"GOOGLE.com",S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"zip://GOOGLE.com/",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Hostname get's lower cased for known scheme types. */
|
|
|
|
{ "http://WWW.GOOGLE.com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:31:22 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.google.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.google.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.google.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.google.com",S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"http://WWW.GOOGLE.com/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Characters that get % encoded in the hostname also have their percent
|
|
|
|
* encoded forms lower cased.
|
|
|
|
*/
|
|
|
|
{ "http://www.%7Cgoogle|.com/", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-01 03:31:22 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.%7cgoogle%7c.com/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"www.%7cgoogle%7c.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.%7cgoogle%7c.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"%7cgoogle%7c.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-10 21:12:27 +02:00
|
|
|
{"www.%7cgoogle%7c.com",S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{"http://www.%7Cgoogle|.com/",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-01 03:31:22 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-08 22:42:12 +02:00
|
|
|
},
|
|
|
|
/* IPv4 addresses attached to IPv6 can be included in elisions. */
|
|
|
|
{ "http://[1:2:3:4:5:6:0.0.0.0]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-08 22:42:12 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[1:2:3:4:5:6::]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[1:2:3:4:5:6::]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[1:2:3:4:5:6::]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{"1:2:3:4:5:6::",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{"http://[1:2:3:4:5:6:0.0.0.0]",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* IPv4 addresses get normalized. */
|
|
|
|
{ "http://[::001.002.003.000]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-08 22:42:12 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[::1.2.3.0]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[::1.2.3.0]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[::1.2.3.0]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{"::1.2.3.0",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{"http://[::001.002.003.000]",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Windows doesn't do anything to IPv6's in unknown schemes. */
|
|
|
|
{ "zip://[0001:0:000:0004:0005:0006:001.002.003.000]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-08 22:42:12 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://[0001:0:000:0004:0005:0006:001.002.003.000]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[0001:0:000:0004:0005:0006:001.002.003.000]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://[0001:0:000:0004:0005:0006:001.002.003.000]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{"0001:0:000:0004:0005:0006:001.002.003.000",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{"zip://[0001:0:000:0004:0005:0006:001.002.003.000]",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* IPv4 address is converted into 2 h16 components. */
|
|
|
|
{ "http://[ffff::192.222.111.32]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-08 22:42:12 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[ffff::c0de:6f20]/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[ffff::c0de:6f20]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[ffff::c0de:6f20]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{"ffff::c0de:6f20",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{"http://[ffff::192.222.111.32]",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{80,S_OK,FALSE},
|
2010-07-08 22:42:12 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-12 02:19:53 +02:00
|
|
|
},
|
|
|
|
/* Max value for a port. */
|
|
|
|
{ "http://google.com:65535", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-12 02:19:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://google.com:65535/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"google.com:65535",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://google.com:65535/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"http://google.com:65535",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{65535,S_OK,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "zip://google.com:65536", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-12 02:19:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://google.com:65536/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"google.com:65536",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://google.com:65536/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com:65536",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"google.com:65536",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"zip://google.com:65536",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "zip://google.com:65536:25", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-12 02:19:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://google.com:65536:25/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"google.com:65536:25",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://google.com:65536:25/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com:65536:25",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"google.com:65536:25",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"zip://google.com:65536:25",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "zip://[::ffff]:abcd", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-12 02:19:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://[::ffff]:abcd/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"[::ffff]:abcd",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://[::ffff]:abcd/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"[::ffff]:abcd",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"zip://[::ffff]:abcd",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "zip://127.0.0.1:abcd", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-12 02:19:53 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://127.0.0.1:abcd/",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"127.0.0.1:abcd",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://127.0.0.1:abcd/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"0.1:abcd",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"127.0.0.1:abcd",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{"zip://127.0.0.1:abcd",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:15:13 +02:00
|
|
|
{0,S_FALSE,FALSE},
|
2010-07-12 02:19:53 +02:00
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-13 00:22:23 +02:00
|
|
|
},
|
|
|
|
/* Port is just copied over. */
|
|
|
|
{ "http://google.com:00035", Uri_CREATE_NO_CANONICALIZE, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-13 00:22:23 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://google.com:00035",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"google.com:00035",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://google.com:00035",S_OK,FALSE,"http://google.com:35"},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-13 00:22:23 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-13 00:22:23 +02:00
|
|
|
{"http://google.com:00035",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:22:23 +02:00
|
|
|
{35,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Default port is copied over. */
|
|
|
|
{ "http://google.com:80", Uri_CREATE_NO_CANONICALIZE, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-13 00:22:23 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://google.com:80",S_OK,FALSE},
|
2010-07-15 17:40:47 +02:00
|
|
|
{"google.com:80",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://google.com:80",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-13 00:22:23 +02:00
|
|
|
{"google.com",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-13 00:22:23 +02:00
|
|
|
{"http://google.com:80",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
2010-07-13 05:02:37 +02:00
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
2010-07-13 00:22:23 +02:00
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-16 17:16:56 +02:00
|
|
|
},
|
|
|
|
{ "http://google.com.uk", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://google.com.uk/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"google.com.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://google.com.uk/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com.uk",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"google.com.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://google.com.uk",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://google.com.com", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://google.com.com/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"google.com.com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://google.com.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"com.com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"google.com.com",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://google.com.com",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://google.uk.1", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://google.uk.1/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"google.uk.1",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://google.uk.1/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.uk.1",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"google.uk.1",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://google.uk.1",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Since foo isn't a recognized 3 character TLD its considered the domain name. */
|
|
|
|
{ "http://google.foo.uk", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://google.foo.uk/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"google.foo.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://google.foo.uk/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"foo.uk",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"google.foo.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://google.foo.uk",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://.com", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://.com/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://.com/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{".com",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://.com",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://.uk", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://.uk/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{".uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://.uk/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{".uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://.uk",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://www.co.google.com.[]", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.co.google.com.[]/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"www.co.google.com.[]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.co.google.com.[]/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"google.com.[]",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"www.co.google.com.[]",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://www.co.google.com.[]",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://co.uk", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://co.uk/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"co.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://co.uk/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"co.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://co.uk",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://www.co.google.us.test", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.co.google.us.test/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"www.co.google.us.test",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.co.google.us.test/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"us.test",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"www.co.google.us.test",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://www.co.google.us.test",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://gov.uk", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-16 17:16:56 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://gov.uk/",S_OK,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://gov.uk/",S_OK,FALSE},
|
2010-07-16 17:46:35 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-16 17:16:56 +02:00
|
|
|
{"http://gov.uk",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-18 16:27:21 +02:00
|
|
|
},
|
|
|
|
{ "zip://www.google.com\\test", Uri_CREATE_NO_CANONICALIZE, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-18 16:27:21 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://www.google.com\\test",S_OK,FALSE},
|
2010-07-18 16:27:21 +02:00
|
|
|
{"www.google.com\\test",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://www.google.com\\test",S_OK,FALSE},
|
2010-07-18 16:27:21 +02:00
|
|
|
{"google.com\\test",S_OK,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-18 16:27:21 +02:00
|
|
|
{"www.google.com\\test",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-18 16:27:21 +02:00
|
|
|
{"zip://www.google.com\\test",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-19 02:50:12 +02:00
|
|
|
},
|
|
|
|
{ "urn:excepts:bad:%XY:encoded", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-19 02:50:12 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"urn:excepts:bad:%XY:encoded",S_OK,FALSE},
|
2010-07-19 02:50:12 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"urn:excepts:bad:%XY:encoded",S_OK,FALSE},
|
2010-07-19 02:50:12 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-19 02:50:12 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"excepts:bad:%XY:encoded",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"excepts:bad:%XY:encoded",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-19 02:50:12 +02:00
|
|
|
{"urn:excepts:bad:%XY:encoded",S_OK,FALSE},
|
|
|
|
{"urn",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-20 03:05:30 +02:00
|
|
|
},
|
|
|
|
/* Since the original URI doesn't contain an extra '/' before the path no % encoded values
|
|
|
|
* are decoded and all '%' are encoded.
|
|
|
|
*/
|
|
|
|
{ "file://C:/te%3Es%2Et/tes%t.mp3", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-20 03:05:30 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"file:///C:/te%253Es%252Et/tes%25t.mp3",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"file:///C:/te%253Es%252Et/tes%25t.mp3",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".mp3",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/C:/te%253Es%252Et/tes%25t.mp3",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/C:/te%253Es%252Et/tes%25t.mp3",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"file://C:/te%3Es%2Et/tes%t.mp3",S_OK,FALSE},
|
|
|
|
{"file",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_FILE,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Since there's a '/' in front of the drive letter, any percent encoded, non-forbidden character
|
|
|
|
* is decoded and only %'s in front of invalid hex digits are encoded.
|
|
|
|
*/
|
|
|
|
{ "file:///C:/te%3Es%2Et/t%23es%t.mp3", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-20 03:05:30 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"file:///C:/te%3Es.t/t#es%25t.mp3",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"file:///C:/te%3Es.t/t#es%25t.mp3",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".mp3",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/C:/te%3Es.t/t#es%25t.mp3",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/C:/te%3Es.t/t#es%25t.mp3",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"file:///C:/te%3Es%2Et/t%23es%t.mp3",S_OK,FALSE},
|
|
|
|
{"file",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_FILE,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Only unreserved percent encoded characters are decoded for known schemes that aren't file. */
|
|
|
|
{ "http://[::001.002.003.000]/%3F%23%2E%54/test", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-20 03:05:30 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://[::1.2.3.0]/%3F%23.T/test",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"[::1.2.3.0]",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://[::1.2.3.0]/%3F%23.T/test",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"::1.2.3.0",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/%3F%23.T/test",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/%3F%23.T/test",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"http://[::001.002.003.000]/%3F%23%2E%54/test",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_IPV6,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters are always encoded for file URIs. */
|
|
|
|
{ "file:///C:/\"test\"/test.mp3", Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-20 03:05:30 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"file:///C:/%22test%22/test.mp3",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"file:///C:/%22test%22/test.mp3",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".mp3",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/C:/%22test%22/test.mp3",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/C:/%22test%22/test.mp3",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"file:///C:/\"test\"/test.mp3",S_OK,FALSE},
|
|
|
|
{"file",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_FILE,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters are never encoded for unknown scheme types. */
|
|
|
|
{ "1234://4294967295/<|>\" test<|>", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-20 03:05:30 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"1234://4294967295/<|>\" test<|>",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"4294967295",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"1234://4294967295/<|>\" test<|>",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"4294967295",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/<|>\" test<|>",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/<|>\" test<|>",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"1234://4294967295/<|>\" test<|>",S_OK,FALSE},
|
|
|
|
{"1234",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_IPV4,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Make sure forbidden characters are percent encoded. */
|
|
|
|
{ "http://gov.uk/<|> test<|>", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-20 03:05:30 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://gov.uk/%3C%7C%3E%20test%3C%7C%3E",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://gov.uk/%3C%7C%3E%20test%3C%7C%3E",S_OK,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/%3C%7C%3E%20test%3C%7C%3E",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/%3C%7C%3E%20test%3C%7C%3E",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-20 03:05:30 +02:00
|
|
|
{"http://gov.uk/<|> test<|>",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-23 04:49:44 +02:00
|
|
|
},
|
|
|
|
{ "http://gov.uk/test/../test2/././../test3/.././././", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-23 04:49:44 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://gov.uk/",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://gov.uk/",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"http://gov.uk/test/../test2/././../test3/.././././",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://gov.uk/test/test2/../../..", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-23 04:49:44 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://gov.uk/",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://gov.uk/",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"http://gov.uk/test/test2/../../..",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://gov.uk/test/test2/../../.", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-23 04:49:44 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://gov.uk/",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://gov.uk/",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"http://gov.uk/test/test2/../../.",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "file://c:\\tests\\../tests\\./.\\..\\foo%20bar.mp3", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|
|
|
|
|
Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-23 04:49:44 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"file:///c:/foo%2520bar.mp3",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"file:///c:/foo%2520bar.mp3",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".mp3",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/c:/foo%2520bar.mp3",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/c:/foo%2520bar.mp3",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"file://c:\\tests\\../tests\\./.\\..\\foo%20bar.mp3",S_OK,FALSE},
|
|
|
|
{"file",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_FILE,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Dot removal happens for unknown scheme types. */
|
|
|
|
{ "zip://gov.uk/test/test2/../../.", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-23 04:49:44 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://gov.uk/",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://gov.uk/",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"zip://gov.uk/test/test2/../../.",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Dot removal doesn't happen if NO_CANONICALIZE is set. */
|
|
|
|
{ "http://gov.uk/test/test2/../../.", Uri_CREATE_NO_CANONICALIZE, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-23 04:49:44 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://gov.uk/test/test2/../../.",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://gov.uk/test/test2/../../.",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/test/test2/../../.",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/test/test2/../../.",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"http://gov.uk/test/test2/../../.",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Dot removal doesn't happen for wildcard scheme types. */
|
|
|
|
{ "*:gov.uk/test/test2/../../.", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|
|
|
|
|
Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-23 04:49:44 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"*:gov.uk/test/test2/../../.",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"*:gov.uk/test/test2/../../.",S_OK,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"gov.uk",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"/test/test2/../../.",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/test/test2/../../.",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-23 04:49:44 +02:00
|
|
|
{"*:gov.uk/test/test2/../../.",S_OK,FALSE},
|
|
|
|
{"*",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_WILDCARD,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-25 22:00:50 +02:00
|
|
|
},
|
|
|
|
/* Forbidden characters are encoded for opaque known scheme types. */
|
|
|
|
{ "mailto:\"acco<|>unt@example.com\"", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-25 22:00:50 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"mailto:%22acco%3C%7C%3Eunt@example.com%22",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"mailto:%22acco%3C%7C%3Eunt@example.com%22",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".com%22",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"%22acco%3C%7C%3Eunt@example.com%22",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"%22acco%3C%7C%3Eunt@example.com%22",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"mailto:\"acco<|>unt@example.com\"",S_OK,FALSE},
|
|
|
|
{"mailto",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_MAILTO,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "news:test.tes<|>t.com", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-25 22:00:50 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"news:test.tes%3C%7C%3Et.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"news:test.tes%3C%7C%3Et.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"test.tes%3C%7C%3Et.com",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"test.tes%3C%7C%3Et.com",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"news:test.tes<|>t.com",S_OK,FALSE},
|
|
|
|
{"news",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_NEWS,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Don't encode forbidden characters. */
|
|
|
|
{ "news:test.tes<|>t.com", Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-25 22:00:50 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"news:test.tes<|>t.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"news:test.tes<|>t.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"test.tes<|>t.com",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"test.tes<|>t.com",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"news:test.tes<|>t.com",S_OK,FALSE},
|
|
|
|
{"news",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_NEWS,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters aren't encoded for unknown, opaque URIs. */
|
|
|
|
{ "urn:test.tes<|>t.com", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-25 22:00:50 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"urn:test.tes<|>t.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"urn:test.tes<|>t.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"test.tes<|>t.com",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"test.tes<|>t.com",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"urn:test.tes<|>t.com",S_OK,FALSE},
|
|
|
|
{"urn",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded unreserved characters are decoded for known opaque URIs. */
|
|
|
|
{ "news:test.%74%65%73%74.com", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-25 22:00:50 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"news:test.test.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"news:test.test.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"test.test.com",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"test.test.com",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"news:test.%74%65%73%74.com",S_OK,FALSE},
|
|
|
|
{"news",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_NEWS,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded characters are still decoded for known scheme types. */
|
|
|
|
{ "news:test.%74%65%73%74.com", Uri_CREATE_NO_CANONICALIZE, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-25 22:00:50 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"news:test.test.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"news:test.test.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"test.test.com",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"test.test.com",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"news:test.%74%65%73%74.com",S_OK,FALSE},
|
|
|
|
{"news",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_NEWS,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded characters aren't decoded for unknown scheme types. */
|
|
|
|
{ "urn:test.%74%65%73%74.com", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_DISPLAY_URI|Uri_HAS_EXTENSION|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|
|
|
|
|
Uri_HAS_RAW_URI|Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-25 22:00:50 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"urn:test.%74%65%73%74.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"urn:test.%74%65%73%74.com",S_OK,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-26 00:36:49 +02:00
|
|
|
{".com",S_OK,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:21:05 +02:00
|
|
|
{"test.%74%65%73%74.com",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"test.%74%65%73%74.com",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-25 22:00:50 +02:00
|
|
|
{"urn:test.%74%65%73%74.com",S_OK,FALSE},
|
|
|
|
{"urn",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_UNKNOWN,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE}
|
|
|
|
}
|
2010-07-27 02:30:21 +02:00
|
|
|
},
|
|
|
|
/* Unknown scheme types can have invalid % encoded data in query string. */
|
|
|
|
{ "zip://www.winehq.org/tests/..?query=%xx&return=y", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-27 02:30:21 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://www.winehq.org/?query=%xx&return=y",S_OK,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://www.winehq.org/?query=%xx&return=y",S_OK,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=%xx&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=%xx&return=y",S_OK,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"zip://www.winehq.org/tests/..?query=%xx&return=y",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Known scheme types can have invalid % encoded data with the right flags. */
|
|
|
|
{ "http://www.winehq.org/tests/..?query=%xx&return=y", Uri_CREATE_NO_DECODE_EXTRA_INFO, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_PORT|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-27 02:30:21 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/?query=%xx&return=y",S_OK,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/?query=%xx&return=y",S_OK,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=%xx&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=%xx&return=y",S_OK,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"http://www.winehq.org/tests/..?query=%xx&return=y",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters in query aren't percent encoded for known scheme types with this flag. */
|
|
|
|
{ "http://www.winehq.org/tests/..?query=<|>&return=y", Uri_CREATE_NO_DECODE_EXTRA_INFO, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_PORT|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-28 02:03:47 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"http://www.winehq.org/tests/..?query=<|>&return=y",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters in query aren't percent encoded for known scheme types with this flag. */
|
|
|
|
{ "http://www.winehq.org/tests/..?query=<|>&return=y", Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_PORT|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-28 02:03:47 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"http://www.winehq.org/tests/..?query=<|>&return=y",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters are encoded for known scheme types. */
|
|
|
|
{ "http://www.winehq.org/tests/..?query=<|>&return=y", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_PORT|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-28 02:03:47 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/?query=%3C%7C%3E&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/?query=%3C%7C%3E&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=%3C%7C%3E&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=%3C%7C%3E&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"http://www.winehq.org/tests/..?query=<|>&return=y",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters are not encoded for unknown scheme types. */
|
|
|
|
{ "zip://www.winehq.org/tests/..?query=<|>&return=y", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-28 02:03:47 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://www.winehq.org/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://www.winehq.org/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=<|>&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"zip://www.winehq.org/tests/..?query=<|>&return=y",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded, unreserved characters are decoded for known scheme types. */
|
|
|
|
{ "http://www.winehq.org/tests/..?query=%30%31&return=y", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_PORT|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-28 02:03:47 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/?query=01&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/?query=01&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=01&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=01&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"http://www.winehq.org/tests/..?query=%30%31&return=y",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded, unreserved characters aren't decoded for unknown scheme types. */
|
|
|
|
{ "zip://www.winehq.org/tests/..?query=%30%31&return=y", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-28 02:03:47 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://www.winehq.org/?query=%30%31&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://www.winehq.org/?query=%30%31&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=%30%31&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=%30%31&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"zip://www.winehq.org/tests/..?query=%30%31&return=y",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded characters aren't decoded when NO_DECODE_EXTRA_INFO is set. */
|
|
|
|
{ "http://www.winehq.org/tests/..?query=%30%31&return=y", Uri_CREATE_NO_DECODE_EXTRA_INFO, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_PORT|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-28 02:03:47 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/?query=%30%31&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/?query=%30%31&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"/?query=%30%31&return=y",S_OK,FALSE},
|
2010-07-28 02:21:16 +02:00
|
|
|
{"?query=%30%31&return=y",S_OK,FALSE},
|
2010-07-28 02:03:47 +02:00
|
|
|
{"http://www.winehq.org/tests/..?query=%30%31&return=y",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ "http://www.winehq.org?query=12&return=y", Uri_CREATE_NO_CANONICALIZE, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_HOST|
|
|
|
|
Uri_HAS_DOMAIN|Uri_HAS_PATH_AND_QUERY|Uri_HAS_PORT|Uri_HAS_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-28 02:43:10 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org?query=12&return=y",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org?query=12&return=y",S_OK,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-28 02:43:10 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"?query=12&return=y",S_OK,FALSE},
|
|
|
|
{"?query=12&return=y",S_OK,FALSE},
|
|
|
|
{"http://www.winehq.org?query=12&return=y",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
2010-07-29 22:36:39 +02:00
|
|
|
},
|
|
|
|
/* Unknown scheme types can have invalid % encoded data in fragments. */
|
|
|
|
{ "zip://www.winehq.org/tests/#Te%xx", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 22:36:39 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://www.winehq.org/tests/#Te%xx",S_OK,FALSE},
|
2010-07-29 22:36:39 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://www.winehq.org/tests/#Te%xx",S_OK,FALSE},
|
2010-07-29 22:36:39 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te%xx",S_OK,FALSE},
|
2010-07-29 22:36:39 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"zip://www.winehq.org/tests/#Te%xx",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
2010-07-29 23:35:00 +02:00
|
|
|
},
|
|
|
|
/* Forbidden characters in fragment aren't encoded for unknown schemes. */
|
|
|
|
{ "zip://www.winehq.org/tests/#Te<|>", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 23:35:00 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"zip://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters in the fragment are percent encoded for known schemes. */
|
|
|
|
{ "http://www.winehq.org/tests/#Te<|>", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 23:35:00 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te%3C%7C%3E",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te%3C%7C%3E",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te%3C%7C%3E",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"http://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters aren't encoded in the fragment with this flag. */
|
|
|
|
{ "http://www.winehq.org/tests/#Te<|>", Uri_CREATE_NO_DECODE_EXTRA_INFO, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 23:35:00 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"http://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Forbidden characters aren't encoded in the fragment with this flag. */
|
|
|
|
{ "http://www.winehq.org/tests/#Te<|>", Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 23:35:00 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te<|>",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"http://www.winehq.org/tests/#Te<|>",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded, unreserved characters aren't decoded for known scheme types. */
|
|
|
|
{ "zip://www.winehq.org/tests/#Te%30%31%32", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 23:35:00 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"zip://www.winehq.org/tests/#Te%30%31%32",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"zip://www.winehq.org/tests/#Te%30%31%32",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te%30%31%32",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"zip://www.winehq.org/tests/#Te%30%31%32",S_OK,FALSE},
|
|
|
|
{"zip",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{0,S_FALSE,FALSE},
|
|
|
|
{URL_SCHEME_UNKNOWN,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded, unreserved characters are decoded for known schemes. */
|
|
|
|
{ "http://www.winehq.org/tests/#Te%30%31%32", 0, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 23:35:00 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te012",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te012",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te012",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"http://www.winehq.org/tests/#Te%30%31%32",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded, unreserved characters are decoded even if NO_CANONICALIZE is set. */
|
|
|
|
{ "http://www.winehq.org/tests/#Te%30%31%32", Uri_CREATE_NO_CANONICALIZE, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 23:35:00 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te012",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te012",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te012",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"http://www.winehq.org/tests/#Te%30%31%32",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
/* Percent encoded, unreserved characters aren't decoded when NO_DECODE_EXTRA is set. */
|
|
|
|
{ "http://www.winehq.org/tests/#Te%30%31%32", Uri_CREATE_NO_DECODE_EXTRA_INFO, S_OK, FALSE,
|
|
|
|
Uri_HAS_ABSOLUTE_URI|Uri_HAS_AUTHORITY|Uri_HAS_DISPLAY_URI|Uri_HAS_DOMAIN|Uri_HAS_FRAGMENT|
|
|
|
|
Uri_HAS_HOST|Uri_HAS_DOMAIN|Uri_HAS_PATH|Uri_HAS_PATH_AND_QUERY|Uri_HAS_RAW_URI|
|
|
|
|
Uri_HAS_SCHEME_NAME|Uri_HAS_HOST_TYPE|Uri_HAS_PORT|Uri_HAS_SCHEME,
|
2010-07-30 02:55:59 +02:00
|
|
|
FALSE,
|
2010-07-29 23:35:00 +02:00
|
|
|
{
|
2010-07-30 00:24:07 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te%30%31%32",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
2010-07-30 01:35:11 +02:00
|
|
|
{"http://www.winehq.org/tests/#Te%30%31%32",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
2010-07-29 23:59:00 +02:00
|
|
|
{"#Te%30%31%32",S_OK,FALSE},
|
2010-07-29 23:35:00 +02:00
|
|
|
{"www.winehq.org",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"/tests/",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"http://www.winehq.org/tests/#Te%30%31%32",S_OK,FALSE},
|
|
|
|
{"http",S_OK,FALSE},
|
|
|
|
{"",S_FALSE,FALSE},
|
|
|
|
{"",S_FALSE,FALSE}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{Uri_HOST_DNS,S_OK,FALSE},
|
|
|
|
{80,S_OK,FALSE},
|
|
|
|
{URL_SCHEME_HTTP,S_OK,FALSE},
|
|
|
|
{URLZONE_INVALID,E_NOTIMPL,FALSE},
|
|
|
|
}
|
2010-05-26 22:30:32 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2010-07-12 02:19:53 +02:00
|
|
|
typedef struct _invalid_uri {
|
|
|
|
const char* uri;
|
|
|
|
DWORD flags;
|
|
|
|
BOOL todo;
|
|
|
|
} invalid_uri;
|
|
|
|
|
|
|
|
static const invalid_uri invalid_uri_tests[] = {
|
|
|
|
/* Has to have a scheme name. */
|
|
|
|
{"://www.winehq.org",0,FALSE},
|
|
|
|
/* Window's doesn't like URI's which are implicitly file paths without the
|
|
|
|
* ALLOW_IMPLICIT_FILE_SCHEME flag set.
|
|
|
|
*/
|
|
|
|
{"C:/test/test.mp3",0,FALSE},
|
|
|
|
{"\\\\Server/test/test.mp3",0,FALSE},
|
|
|
|
{"C:/test/test.mp3",Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME,FALSE},
|
|
|
|
{"\\\\Server/test/test.mp3",Uri_CREATE_ALLOW_RELATIVE,FALSE},
|
|
|
|
/* Invalid schemes. */
|
|
|
|
{"*abcd://not.valid.com",0,FALSE},
|
|
|
|
{"*a*b*c*d://not.valid.com",0,FALSE},
|
|
|
|
/* Not allowed to have invalid % encoded data. */
|
|
|
|
{"ftp://google.co%XX/",0,FALSE},
|
|
|
|
/* To many h16 components. */
|
|
|
|
{"http://[1:2:3:4:5:6:7:8:9]",0,FALSE},
|
|
|
|
/* Not enough room for IPv4 address. */
|
|
|
|
{"http://[1:2:3:4:5:6:7:192.0.1.0]",0,FALSE},
|
|
|
|
/* Not enough h16 components. */
|
|
|
|
{"http://[1:2:3:4]",0,FALSE},
|
|
|
|
/* Not enough components including IPv4. */
|
|
|
|
{"http://[1:192.0.1.0]",0,FALSE},
|
|
|
|
/* Not allowed to have partial IPv4 in IPv6. */
|
|
|
|
{"http://[::192.0]",0,FALSE},
|
|
|
|
/* Can't have elision of 1 h16 at beginning of address. */
|
|
|
|
{"http://[::2:3:4:5:6:7:8]",0,FALSE},
|
|
|
|
/* Can't have elision of 1 h16 at end of address. */
|
|
|
|
{"http://[1:2:3:4:5:6:7::]",0,FALSE},
|
|
|
|
/* Expects a valid IP Literal. */
|
|
|
|
{"ftp://[not.valid.uri]/",0,FALSE},
|
|
|
|
/* Expects valid port for a known scheme type. */
|
|
|
|
{"ftp://www.winehq.org:123fgh",0,FALSE},
|
|
|
|
/* Port exceeds USHORT_MAX for known scheme type. */
|
|
|
|
{"ftp://www.winehq.org:65536",0,FALSE},
|
|
|
|
/* Invalid port with IPv4 address. */
|
|
|
|
{"http://www.winehq.org:1abcd",0,FALSE},
|
|
|
|
/* Invalid port with IPv6 address. */
|
2010-07-18 16:27:21 +02:00
|
|
|
{"http://[::ffff]:32xy",0,FALSE},
|
|
|
|
/* Not allowed to have backslashes with NO_CANONICALIZE. */
|
2010-07-19 02:50:12 +02:00
|
|
|
{"gopher://www.google.com\\test",Uri_CREATE_NO_CANONICALIZE,FALSE},
|
|
|
|
/* Not allowed to have invalid % encoded data in opaque URI path. */
|
|
|
|
{"news:test%XX",0,FALSE},
|
2010-07-27 02:30:21 +02:00
|
|
|
{"mailto:wine@winehq%G8.com",0,FALSE},
|
|
|
|
/* Known scheme types can't have invalid % encoded data in query string. */
|
2010-07-29 22:36:39 +02:00
|
|
|
{"http://google.com/?query=te%xx",0,FALSE},
|
|
|
|
/* Invalid % encoded data in fragment of know scheme type. */
|
|
|
|
{"ftp://google.com/#Test%xx",0,FALSE}
|
2010-07-12 02:19:53 +02:00
|
|
|
};
|
|
|
|
|
2010-06-01 22:43:58 +02:00
|
|
|
typedef struct _uri_equality {
|
|
|
|
const char* a;
|
|
|
|
DWORD create_flags_a;
|
|
|
|
BOOL create_todo_a;
|
|
|
|
const char* b;
|
|
|
|
DWORD create_flags_b;
|
|
|
|
BOOL create_todo_b;
|
|
|
|
BOOL equal;
|
|
|
|
BOOL todo;
|
|
|
|
} uri_equality;
|
|
|
|
|
|
|
|
static const uri_equality equality_tests[] = {
|
|
|
|
{
|
|
|
|
"HTTP://www.winehq.org/test dir/./",0,FALSE,
|
|
|
|
"http://www.winehq.org/test dir/../test dir/",0,FALSE,
|
|
|
|
TRUE, TRUE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* http://www.winehq.org/test%20dir */
|
|
|
|
"http://%77%77%77%2E%77%69%6E%65%68%71%2E%6F%72%67/%74%65%73%74%20%64%69%72",0,FALSE,
|
|
|
|
"http://www.winehq.org/test dir",0,FALSE,
|
|
|
|
TRUE, TRUE,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"c:\\test.mp3",Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME,FALSE,
|
|
|
|
"file:///c:/test.mp3",0,FALSE,
|
|
|
|
TRUE,TRUE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"ftp://ftp.winehq.org/",0,FALSE,
|
|
|
|
"ftp://ftp.winehq.org",0,FALSE,
|
|
|
|
TRUE, TRUE
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"ftp://ftp.winehq.org/test/test2/../../testB/",0,FALSE,
|
|
|
|
"ftp://ftp.winehq.org/t%45stB/",0,FALSE,
|
|
|
|
FALSE, TRUE
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2010-05-26 22:30:32 +02:00
|
|
|
static inline LPWSTR a2w(LPCSTR str) {
|
|
|
|
LPWSTR ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
DWORD len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
|
|
|
|
ret = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
|
|
|
|
MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL heap_free(void* mem) {
|
|
|
|
return HeapFree(GetProcessHeap(), 0, mem);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline DWORD strcmp_aw(LPCSTR strA, LPCWSTR strB) {
|
|
|
|
LPWSTR strAW = a2w(strA);
|
|
|
|
DWORD ret = lstrcmpW(strAW, strB);
|
|
|
|
heap_free(strAW);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2010-05-10 03:23:34 +02:00
|
|
|
/*
|
|
|
|
* Simple tests to make sure the CreateUri function handles invalid flag combinations
|
|
|
|
* correctly.
|
|
|
|
*/
|
|
|
|
static void test_CreateUri_InvalidFlags(void) {
|
|
|
|
DWORD i;
|
|
|
|
|
2010-05-11 20:57:41 +02:00
|
|
|
for(i = 0; i < sizeof(invalid_flag_tests)/sizeof(invalid_flag_tests[0]); ++i) {
|
|
|
|
HRESULT hr;
|
|
|
|
IUri *uri = (void*) 0xdeadbeef;
|
|
|
|
|
|
|
|
hr = pCreateUri(http_urlW, invalid_flag_tests[i].flags, 0, &uri);
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == invalid_flag_tests[i].expected, "Error: CreateUri returned 0x%08x, expected 0x%08x, flags=0x%08x\n",
|
|
|
|
hr, invalid_flag_tests[i].expected, invalid_flag_tests[i].flags);
|
|
|
|
}
|
|
|
|
todo_wine { ok(uri == NULL, "Error: expected the IUri to be NULL, but it was %p instead\n", uri); }
|
2010-05-10 03:23:34 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-13 04:35:59 +02:00
|
|
|
static void test_CreateUri_InvalidArgs(void) {
|
|
|
|
HRESULT hr;
|
|
|
|
IUri *uri = (void*) 0xdeadbeef;
|
|
|
|
|
2010-06-07 05:39:46 +02:00
|
|
|
const WCHAR invalidW[] = {'i','n','v','a','l','i','d',0};
|
|
|
|
|
2010-05-13 04:35:59 +02:00
|
|
|
hr = pCreateUri(http_urlW, 0, 0, NULL);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: CreateUri returned 0x%08x, expected 0x%08x\n", hr, E_INVALIDARG);
|
|
|
|
|
|
|
|
hr = pCreateUri(NULL, 0, 0, &uri);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: CreateUri returned 0x%08x, expected 0x%08x\n", hr, E_INVALIDARG);
|
|
|
|
ok(uri == NULL, "Error: Expected the IUri to be NULL, but it was %p instead\n", uri);
|
2010-06-07 05:39:46 +02:00
|
|
|
|
|
|
|
uri = (void*) 0xdeadbeef;
|
|
|
|
hr = pCreateUri(invalidW, 0, 0, &uri);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
ok(uri == NULL, "Error: Expected the IUri to be NULL, but it was %p instead\n", uri);
|
2010-05-13 04:35:59 +02:00
|
|
|
}
|
|
|
|
|
2010-07-12 02:19:53 +02:00
|
|
|
static void test_CreateUri_InvalidUri(void) {
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
for(i = 0; i < sizeof(invalid_uri_tests)/sizeof(invalid_uri_tests[0]); ++i) {
|
|
|
|
invalid_uri test = invalid_uri_tests[i];
|
|
|
|
IUri *uri = NULL;
|
|
|
|
LPWSTR uriW;
|
|
|
|
HRESULT hr;
|
|
|
|
|
|
|
|
uriW = a2w(test.uri);
|
|
|
|
hr = pCreateUri(uriW, test.flags, 0, &uri);
|
|
|
|
if(test.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == E_INVALIDARG, "Error: CreateUri returned 0x%08x, expected 0x%08x on invalid_uri_tests[%d].\n",
|
|
|
|
hr, E_INVALIDARG, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == E_INVALIDARG, "Error: CreateUri returned 0x%08x, expected 0x%08x on invalid_uri_tests[%d].\n",
|
|
|
|
hr, E_INVALIDARG, i);
|
|
|
|
}
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
heap_free(uriW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-26 22:30:32 +02:00
|
|
|
static void test_IUri_GetPropertyBSTR(void) {
|
2010-05-30 17:06:10 +02:00
|
|
|
IUri *uri = NULL;
|
|
|
|
HRESULT hr;
|
2010-05-26 22:30:32 +02:00
|
|
|
DWORD i;
|
|
|
|
|
2010-05-30 17:06:10 +02:00
|
|
|
/* Make sure GetPropertyBSTR handles invalid args correctly. */
|
|
|
|
hr = pCreateUri(http_urlW, 0, 0, &uri);
|
|
|
|
ok(hr == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
BSTR received = NULL;
|
|
|
|
|
|
|
|
hr = IUri_GetPropertyBSTR(uri, Uri_PROPERTY_RAW_URI, NULL, 0);
|
|
|
|
ok(hr == E_POINTER, "Error: GetPropertyBSTR returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
/* Make sure it handles a invalid Uri_PROPERTY's correctly. */
|
|
|
|
hr = IUri_GetPropertyBSTR(uri, Uri_PROPERTY_PORT, &received, 0);
|
|
|
|
ok(hr == S_OK, "Error: GetPropertyBSTR returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
ok(received != NULL, "Error: Expected the string not to be NULL.\n");
|
|
|
|
ok(!SysStringLen(received), "Error: Expected the string to be of len=0 but it was %d instead.\n", SysStringLen(received));
|
|
|
|
SysFreeString(received);
|
|
|
|
|
|
|
|
/* Make sure it handles the ZONE property correctly. */
|
|
|
|
received = NULL;
|
|
|
|
hr = IUri_GetPropertyBSTR(uri, Uri_PROPERTY_ZONE, &received, 0);
|
|
|
|
ok(hr == S_FALSE, "Error: GetPropertyBSTR returned 0x%08x, expected 0x%08x.\n", hr, S_FALSE);
|
|
|
|
ok(received != NULL, "Error: Expected the string not to be NULL.\n");
|
|
|
|
ok(!SysStringLen(received), "Error: Expected the string to be of len=0 but it was %d instead.\n", SysStringLen(received));
|
|
|
|
SysFreeString(received);
|
|
|
|
}
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
2010-05-26 22:30:32 +02:00
|
|
|
for(i = 0; i < sizeof(uri_tests)/sizeof(uri_tests[0]); ++i) {
|
|
|
|
uri_properties test = uri_tests[i];
|
|
|
|
LPWSTR uriW;
|
2010-05-30 17:06:10 +02:00
|
|
|
uri = NULL;
|
2010-05-26 22:30:32 +02:00
|
|
|
|
|
|
|
uriW = a2w(test.uri);
|
|
|
|
hr = pCreateUri(uriW, test.create_flags, 0, &uri);
|
|
|
|
if(test.create_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x. Failed on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x. Failed on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
DWORD j;
|
|
|
|
|
|
|
|
/* Checks all the string properties of the uri. */
|
|
|
|
for(j = Uri_PROPERTY_STRING_START; j <= Uri_PROPERTY_STRING_LAST; ++j) {
|
|
|
|
BSTR received = NULL;
|
|
|
|
uri_str_property prop = test.str_props[j];
|
|
|
|
|
|
|
|
hr = IUri_GetPropertyBSTR(uri, j, &received, 0);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "GetPropertyBSTR returned 0x%08x, expected 0x%08x. On uri_tests[%d].str_props[%d].\n",
|
|
|
|
hr, prop.expected, i, j);
|
|
|
|
}
|
|
|
|
todo_wine {
|
2010-07-13 00:22:23 +02:00
|
|
|
ok(!strcmp_aw(prop.value, received) || broken(prop.broken_value && !strcmp_aw(prop.broken_value, received)),
|
|
|
|
"Expected %s but got %s on uri_tests[%d].str_props[%d].\n",
|
2010-05-26 22:30:32 +02:00
|
|
|
prop.value, wine_dbgstr_w(received), i, j);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "GetPropertyBSTR returned 0x%08x, expected 0x%08x. On uri_tests[%d].str_props[%d].\n",
|
|
|
|
hr, prop.expected, i, j);
|
2010-07-13 00:22:23 +02:00
|
|
|
ok(!strcmp_aw(prop.value, received) || broken(prop.broken_value && !strcmp_aw(prop.broken_value, received)),
|
|
|
|
"Expected %s but got %s on uri_tests[%d].str_props[%d].\n",
|
2010-05-26 22:30:32 +02:00
|
|
|
prop.value, wine_dbgstr_w(received), i, j);
|
|
|
|
}
|
|
|
|
|
|
|
|
SysFreeString(received);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
heap_free(uriW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-26 23:42:12 +02:00
|
|
|
static void test_IUri_GetPropertyDWORD(void) {
|
|
|
|
IUri *uri = NULL;
|
|
|
|
HRESULT hr;
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
hr = pCreateUri(http_urlW, 0, 0, &uri);
|
|
|
|
ok(hr == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
if(SUCCEEDED(hr)) {
|
2010-05-30 17:06:10 +02:00
|
|
|
DWORD received = 0xdeadbeef;
|
|
|
|
|
2010-05-26 23:42:12 +02:00
|
|
|
hr = IUri_GetPropertyDWORD(uri, Uri_PROPERTY_DWORD_START, NULL, 0);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetPropertyDWORD returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
2010-05-30 17:06:10 +02:00
|
|
|
|
|
|
|
hr = IUri_GetPropertyDWORD(uri, Uri_PROPERTY_ABSOLUTE_URI, &received, 0);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetPropertyDWORD returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
ok(received == 0, "Error: Expected received=%d but instead received=%d.\n", 0, received);
|
2010-05-26 23:42:12 +02:00
|
|
|
}
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
for(i = 0; i < sizeof(uri_tests)/sizeof(uri_tests[0]); ++i) {
|
|
|
|
uri_properties test = uri_tests[i];
|
|
|
|
LPWSTR uriW;
|
|
|
|
uri = NULL;
|
|
|
|
|
|
|
|
uriW = a2w(test.uri);
|
|
|
|
hr = pCreateUri(uriW, test.create_flags, 0, &uri);
|
|
|
|
if(test.create_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x. Failed on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x. Failed on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
DWORD j;
|
|
|
|
|
|
|
|
/* Checks all the DWORD properties of the uri. */
|
|
|
|
for(j = 0; j < sizeof(test.dword_props)/sizeof(test.dword_props[0]); ++j) {
|
|
|
|
DWORD received;
|
|
|
|
uri_dword_property prop = test.dword_props[j];
|
|
|
|
|
|
|
|
hr = IUri_GetPropertyDWORD(uri, j+Uri_PROPERTY_DWORD_START, &received, 0);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "GetPropertyDWORD returned 0x%08x, expected 0x%08x. On uri_tests[%d].dword_props[%d].\n",
|
|
|
|
hr, prop.expected, i, j);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(prop.value == received, "Expected %d but got %d on uri_tests[%d].dword_props[%d].\n",
|
|
|
|
prop.value, received, i, j);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "GetPropertyDWORD returned 0x%08x, expected 0x%08x. On uri_tests[%d].dword_props[%d].\n",
|
|
|
|
hr, prop.expected, i, j);
|
|
|
|
ok(prop.value == received, "Expected %d but got %d on uri_tests[%d].dword_props[%d].\n",
|
|
|
|
prop.value, received, i, j);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
heap_free(uriW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-27 20:23:52 +02:00
|
|
|
/* Tests all the 'Get*' property functions which deal with strings. */
|
|
|
|
static void test_IUri_GetStrProperties(void) {
|
|
|
|
IUri *uri = NULL;
|
|
|
|
HRESULT hr;
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
/* Make sure all the 'Get*' string property functions handle invalid args correctly. */
|
|
|
|
hr = pCreateUri(http_urlW, 0, 0, &uri);
|
|
|
|
ok(hr == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
hr = IUri_GetAbsoluteUri(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetAbsoluteUri returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetAuthority(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetAuthority returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetDisplayUri(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetDisplayUri returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetDomain(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetDomain returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetExtension(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetExtension returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetFragment(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetFragment returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
2010-06-02 02:32:09 +02:00
|
|
|
hr = IUri_GetHost(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetHost returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
2010-05-27 20:23:52 +02:00
|
|
|
hr = IUri_GetPassword(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetPassword returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
2010-05-27 21:29:46 +02:00
|
|
|
|
|
|
|
hr = IUri_GetPath(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetPath returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetPathAndQuery(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetPathAndQuery returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetQuery(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetQuery returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetRawUri(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetRawUri returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetSchemeName(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetSchemeName returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetUserInfo(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetUserInfo returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
|
|
|
|
|
|
|
hr = IUri_GetUserName(uri, NULL);
|
|
|
|
ok(hr == E_POINTER, "Error: GetUserName returned 0x%08x, expected 0x%08x.\n", hr, E_POINTER);
|
2010-05-27 20:23:52 +02:00
|
|
|
}
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
for(i = 0; i < sizeof(uri_tests)/sizeof(uri_tests[0]); ++i) {
|
|
|
|
uri_properties test = uri_tests[i];
|
|
|
|
LPWSTR uriW;
|
|
|
|
uri = NULL;
|
|
|
|
|
|
|
|
uriW = a2w(test.uri);
|
|
|
|
hr = pCreateUri(uriW, test.create_flags, 0, &uri);
|
|
|
|
if(test.create_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
uri_str_property prop;
|
|
|
|
BSTR received = NULL;
|
|
|
|
|
2010-07-30 01:35:11 +02:00
|
|
|
/* GetAbsoluteUri() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_ABSOLUTE_URI];
|
|
|
|
hr = IUri_GetAbsoluteUri(uri, &received);
|
2010-05-27 20:23:52 +02:00
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetAbsoluteUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetAbsoluteUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
hr, prop.expected, i);
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
2010-07-30 01:35:11 +02:00
|
|
|
/* GetAuthority() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_AUTHORITY];
|
|
|
|
hr = IUri_GetAuthority(uri, &received);
|
2010-05-27 20:23:52 +02:00
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetAuthority returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
2010-07-30 00:24:07 +02:00
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetAuthority returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
hr, prop.expected, i);
|
2010-07-30 00:24:07 +02:00
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
2010-07-30 01:35:11 +02:00
|
|
|
/* GetDisplayUri() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_DISPLAY_URI];
|
|
|
|
hr = IUri_GetDisplayUri(uri, &received);
|
2010-05-27 20:23:52 +02:00
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetDisplayUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(!strcmp_aw(prop.value, received) || broken(prop.broken_value && !strcmp_aw(prop.broken_value, received)),
|
|
|
|
"Error: Expected %s but got %s on uri_test[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetDisplayUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
hr, prop.expected, i);
|
2010-07-30 01:35:11 +02:00
|
|
|
ok(!strcmp_aw(prop.value, received) || broken(prop.broken_value && !strcmp_aw(prop.broken_value, received)),
|
|
|
|
"Error: Expected %s but got %s on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
2010-07-29 23:59:00 +02:00
|
|
|
/* GetDomain() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_DOMAIN];
|
|
|
|
hr = IUri_GetDomain(uri, &received);
|
2010-06-02 02:32:09 +02:00
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetDomain returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-06-02 02:32:09 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetDomain returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-06-02 02:32:09 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
2010-07-29 23:59:00 +02:00
|
|
|
/* GetExtension() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_EXTENSION];
|
|
|
|
hr = IUri_GetExtension(uri, &received);
|
2010-07-15 17:40:47 +02:00
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetExtension returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-07-15 17:40:47 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetExtension returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-07-15 17:40:47 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
2010-07-16 17:46:35 +02:00
|
|
|
received = NULL;
|
|
|
|
|
2010-07-29 23:59:00 +02:00
|
|
|
/* GetFragment() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_FRAGMENT];
|
|
|
|
hr = IUri_GetFragment(uri, &received);
|
2010-07-16 17:46:35 +02:00
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetFragment returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-07-16 17:46:35 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetFragment returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-07-16 17:46:35 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
2010-07-26 00:36:49 +02:00
|
|
|
received = NULL;
|
|
|
|
|
2010-07-29 23:59:00 +02:00
|
|
|
/* GetHost() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_HOST];
|
|
|
|
hr = IUri_GetHost(uri, &received);
|
2010-07-26 00:36:49 +02:00
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetHost returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-07-26 00:36:49 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetHost returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-07-26 00:36:49 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
2010-07-15 17:40:47 +02:00
|
|
|
received = NULL;
|
|
|
|
|
2010-07-29 23:59:00 +02:00
|
|
|
/* GetPassword() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_PASSWORD];
|
|
|
|
hr = IUri_GetPassword(uri, &received);
|
2010-05-27 20:23:52 +02:00
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetPassword returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-29 23:59:00 +02:00
|
|
|
ok(hr == prop.expected, "Error: GetPassword returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
2010-05-27 20:23:52 +02:00
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
2010-05-27 21:29:46 +02:00
|
|
|
|
|
|
|
/* GetPath() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_PATH];
|
|
|
|
hr = IUri_GetPath(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetPath returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetPath returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
|
|
|
/* GetPathAndQuery() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_PATH_AND_QUERY];
|
|
|
|
hr = IUri_GetPathAndQuery(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetPathAndQuery returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetPathAndQuery returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
|
|
|
/* GetQuery() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_QUERY];
|
|
|
|
hr = IUri_GetQuery(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetQuery returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetQuery returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
|
|
|
/* GetRawUri() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_RAW_URI];
|
|
|
|
hr = IUri_GetRawUri(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetRawUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetRawUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
|
|
|
/* GetSchemeName() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_SCHEME_NAME];
|
|
|
|
hr = IUri_GetSchemeName(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetSchemeName returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetSchemeName returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
|
|
|
/* GetUserInfo() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_USER_INFO];
|
|
|
|
hr = IUri_GetUserInfo(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetUserInfo returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetUserInfo returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
|
|
|
received = NULL;
|
|
|
|
|
|
|
|
/* GetUserName() tests. */
|
|
|
|
prop = test.str_props[Uri_PROPERTY_USER_NAME];
|
|
|
|
hr = IUri_GetUserName(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetUserName returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetUserName returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(!strcmp_aw(prop.value, received), "Error: Expected %s but got %s on uri_tests[%d].\n",
|
|
|
|
prop.value, wine_dbgstr_w(received), i);
|
|
|
|
}
|
|
|
|
SysFreeString(received);
|
2010-05-27 20:23:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
heap_free(uriW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-28 01:39:28 +02:00
|
|
|
static void test_IUri_GetDwordProperties(void) {
|
|
|
|
IUri *uri = NULL;
|
|
|
|
HRESULT hr;
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
/* Make sure all the 'Get*' dword property functions handle invalid args correctly. */
|
|
|
|
hr = pCreateUri(http_urlW, 0, 0, &uri);
|
|
|
|
ok(hr == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
hr = IUri_GetHostType(uri, NULL);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetHostType returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
|
|
|
|
hr = IUri_GetPort(uri, NULL);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetPort returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
|
|
|
|
hr = IUri_GetScheme(uri, NULL);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetScheme returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
|
|
|
|
hr = IUri_GetZone(uri, NULL);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetZone returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
}
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
for(i = 0; i < sizeof(uri_tests)/sizeof(uri_tests[0]); ++i) {
|
|
|
|
uri_properties test = uri_tests[i];
|
|
|
|
LPWSTR uriW;
|
|
|
|
uri = NULL;
|
|
|
|
|
|
|
|
uriW = a2w(test.uri);
|
|
|
|
hr = pCreateUri(uriW, test.create_flags, 0, &uri);
|
|
|
|
if(test.create_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
uri_dword_property prop;
|
|
|
|
DWORD received;
|
|
|
|
|
|
|
|
/* Assign an insane value so tests don't accidentally pass when
|
|
|
|
* they shouldn't!
|
|
|
|
*/
|
|
|
|
received = -9999999;
|
|
|
|
|
|
|
|
/* GetHostType() tests. */
|
|
|
|
prop = test.dword_props[Uri_PROPERTY_HOST_TYPE-Uri_PROPERTY_DWORD_START];
|
|
|
|
hr = IUri_GetHostType(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetHostType returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(received == prop.value, "Error: Expected %d but got %d on uri_tests[%d].\n", prop.value, received, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetHostType returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(received == prop.value, "Error: Expected %d but got %d on uri_tests[%d].\n", prop.value, received, i);
|
|
|
|
}
|
|
|
|
received = -9999999;
|
|
|
|
|
|
|
|
/* GetPort() tests. */
|
|
|
|
prop = test.dword_props[Uri_PROPERTY_PORT-Uri_PROPERTY_DWORD_START];
|
|
|
|
hr = IUri_GetPort(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetPort returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(received == prop.value, "Error: Expected %d but got %d on uri_tests[%d].\n", prop.value, received, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetPort returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(received == prop.value, "Error: Expected %d but got %d on uri_tests[%d].\n", prop.value, received, i);
|
|
|
|
}
|
|
|
|
received = -9999999;
|
|
|
|
|
|
|
|
/* GetScheme() tests. */
|
|
|
|
prop = test.dword_props[Uri_PROPERTY_SCHEME-Uri_PROPERTY_DWORD_START];
|
|
|
|
hr = IUri_GetScheme(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetScheme returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(received == prop.value, "Error: Expected %d but got %d on uri_tests[%d].\n", prop.value, received, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetScheme returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(received == prop.value, "Error: Expected %d but got %d on uri_tests[%d].\n", prop.value, received, i);
|
|
|
|
}
|
|
|
|
received = -9999999;
|
|
|
|
|
|
|
|
/* GetZone() tests. */
|
|
|
|
prop = test.dword_props[Uri_PROPERTY_ZONE-Uri_PROPERTY_DWORD_START];
|
|
|
|
hr = IUri_GetZone(uri, &received);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetZone returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(received == prop.value, "Error: Expected %d but got %d on uri_tests[%d].\n", prop.value, received, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetZone returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, prop.expected, i);
|
|
|
|
ok(received == prop.value, "Error: Expected %d but got %d on uri_tests[%d].\n", prop.value, received, i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
heap_free(uriW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-28 20:06:34 +02:00
|
|
|
static void test_IUri_GetPropertyLength(void) {
|
|
|
|
IUri *uri = NULL;
|
|
|
|
HRESULT hr;
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
/* Make sure it handles invalid args correctly. */
|
|
|
|
hr = pCreateUri(http_urlW, 0, 0, &uri);
|
|
|
|
ok(hr == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
DWORD received = 0xdeadbeef;
|
|
|
|
|
|
|
|
hr = IUri_GetPropertyLength(uri, Uri_PROPERTY_STRING_START, NULL, 0);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetPropertyLength returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
|
|
|
|
hr = IUri_GetPropertyLength(uri, Uri_PROPERTY_DWORD_START, &received, 0);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetPropertyLength return 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
ok(received == 0xdeadbeef, "Error: Expected 0xdeadbeef but got 0x%08x.\n", received);
|
|
|
|
}
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
for(i = 0; i < sizeof(uri_tests)/sizeof(uri_tests[0]); ++i) {
|
|
|
|
uri_properties test = uri_tests[i];
|
|
|
|
LPWSTR uriW;
|
|
|
|
uri = NULL;
|
|
|
|
|
|
|
|
uriW = a2w(test.uri);
|
|
|
|
hr = pCreateUri(uriW, test.create_flags, 0, &uri);
|
|
|
|
if(test.create_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x on uri_tests[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x on uri_test[%d].\n",
|
|
|
|
hr, test.create_expected, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
DWORD j;
|
|
|
|
|
|
|
|
for(j = Uri_PROPERTY_STRING_START; j <= Uri_PROPERTY_STRING_LAST; ++j) {
|
2010-07-13 00:22:23 +02:00
|
|
|
DWORD expectedLen, brokenLen, receivedLen;
|
2010-05-28 20:06:34 +02:00
|
|
|
uri_str_property prop = test.str_props[j];
|
|
|
|
|
|
|
|
expectedLen = lstrlen(prop.value);
|
2010-07-13 00:22:23 +02:00
|
|
|
brokenLen = lstrlen(prop.broken_value);
|
2010-05-28 20:06:34 +02:00
|
|
|
|
2010-06-24 10:18:34 +02:00
|
|
|
/* This won't be necessary once GetPropertyLength is implemented. */
|
2010-05-28 20:06:34 +02:00
|
|
|
receivedLen = -1;
|
|
|
|
|
|
|
|
hr = IUri_GetPropertyLength(uri, j, &receivedLen, 0);
|
|
|
|
if(prop.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == prop.expected, "Error: GetPropertyLength returned 0x%08x, expected 0x%08x on uri_tests[%d].str_props[%d].\n",
|
|
|
|
hr, prop.expected, i, j);
|
|
|
|
}
|
|
|
|
todo_wine {
|
2010-07-13 00:22:23 +02:00
|
|
|
ok(receivedLen == expectedLen || broken(receivedLen == brokenLen),
|
|
|
|
"Error: Expected a length of %d but got %d on uri_tests[%d].str_props[%d].\n",
|
2010-05-28 20:06:34 +02:00
|
|
|
expectedLen, receivedLen, i, j);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == prop.expected, "Error: GetPropertyLength returned 0x%08x, expected 0x%08x on uri_tests[%d].str_props[%d].\n",
|
|
|
|
hr, prop.expected, i, j);
|
2010-07-13 00:22:23 +02:00
|
|
|
ok(receivedLen == expectedLen || broken(receivedLen == brokenLen),
|
|
|
|
"Error: Expected a length of %d but got %d on uri_tests[%d].str_props[%d].\n",
|
2010-05-28 20:06:34 +02:00
|
|
|
expectedLen, receivedLen, i, j);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
heap_free(uriW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-31 20:43:14 +02:00
|
|
|
static void test_IUri_GetProperties(void) {
|
|
|
|
IUri *uri = NULL;
|
|
|
|
HRESULT hr;
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
hr = pCreateUri(http_urlW, 0, 0, &uri);
|
|
|
|
ok(hr == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
hr = IUri_GetProperties(uri, NULL);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: GetProperties returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
}
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
for(i = 0; i < sizeof(uri_tests)/sizeof(uri_tests[0]); ++i) {
|
|
|
|
uri_properties test = uri_tests[i];
|
|
|
|
LPWSTR uriW;
|
|
|
|
uri = NULL;
|
|
|
|
|
|
|
|
uriW = a2w(test.uri);
|
|
|
|
hr = pCreateUri(uriW, test.create_flags, 0, &uri);
|
|
|
|
if(test.create_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, test.create_expected);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, test.create_expected);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
DWORD received = 0;
|
|
|
|
DWORD j;
|
|
|
|
|
|
|
|
hr = IUri_GetProperties(uri, &received);
|
|
|
|
if(test.props_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == S_OK, "Error: GetProperties returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == S_OK, "Error: GetProperties returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
}
|
|
|
|
|
|
|
|
for(j = 0; j <= Uri_PROPERTY_DWORD_LAST; ++j) {
|
|
|
|
/* (1 << j) converts a Uri_PROPERTY to its corresponding Uri_HAS_* flag mask. */
|
|
|
|
if(test.props & (1 << j)) {
|
|
|
|
if(test.props_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(received & (1 << j), "Error: Expected flag for property %d on uri_tests[%d].\n", j, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(received & (1 << j), "Error: Expected flag for property %d on uri_tests[%d].\n", j, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
/* NOTE: Since received is initialized to 0, this test will always pass while
|
|
|
|
* GetProperties is unimplemented.
|
|
|
|
*/
|
|
|
|
ok(!(received & (1 << j)), "Error: Received flag for property %d when not expected on uri_tests[%d].\n", j, i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
heap_free(uriW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-31 21:57:37 +02:00
|
|
|
static void test_IUri_HasProperty(void) {
|
|
|
|
IUri *uri = NULL;
|
|
|
|
HRESULT hr;
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
hr = pCreateUri(http_urlW, 0, 0, &uri);
|
|
|
|
ok(hr == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, S_OK);
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
hr = IUri_HasProperty(uri, Uri_PROPERTY_RAW_URI, NULL);
|
|
|
|
ok(hr == E_INVALIDARG, "Error: HasProperty returned 0x%08x, expected 0x%08x.\n", hr, E_INVALIDARG);
|
|
|
|
}
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
for(i = 0; i < sizeof(uri_tests)/sizeof(uri_tests[0]); ++i) {
|
|
|
|
uri_properties test = uri_tests[i];
|
|
|
|
LPWSTR uriW;
|
|
|
|
uri = NULL;
|
|
|
|
|
|
|
|
uriW = a2w(test.uri);
|
|
|
|
|
|
|
|
hr = pCreateUri(uriW, test.create_flags, 0, &uri);
|
|
|
|
if(test.create_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, test.create_expected);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == test.create_expected, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hr, test.create_expected);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SUCCEEDED(hr)) {
|
|
|
|
DWORD j;
|
|
|
|
|
|
|
|
for(j = 0; j <= Uri_PROPERTY_DWORD_LAST; ++j) {
|
|
|
|
/* Assign -1, then explicitly test for TRUE or FALSE later. */
|
|
|
|
BOOL received = -1;
|
|
|
|
|
|
|
|
hr = IUri_HasProperty(uri, j, &received);
|
|
|
|
if(test.props_todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hr == S_OK, "Error: HasProperty returned 0x%08x, expected 0x%08x for property %d on uri_tests[%d].\n",
|
|
|
|
hr, S_OK, j, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Check if the property should be true. */
|
|
|
|
if(test.props & (1 << j)) {
|
|
|
|
todo_wine {
|
|
|
|
ok(received == TRUE, "Error: Expected to have property %d on uri_tests[%d].\n", j, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
todo_wine {
|
|
|
|
ok(received == FALSE, "Error: Wasn't expecting to have property %d on uri_tests[%d].\n", j, i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hr == S_OK, "Error: HasProperty returned 0x%08x, expected 0x%08x for property %d on uri_tests[%d].\n",
|
|
|
|
hr, S_OK, j, i);
|
|
|
|
|
|
|
|
if(test.props & (1 << j)) {
|
|
|
|
ok(received == TRUE, "Error: Expected to have property %d on uri_tests[%d].\n", j, i);
|
|
|
|
} else {
|
|
|
|
ok(received == FALSE, "Error: Wasn't expecting to have property %d on uri_tests[%d].\n", j, i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(uri) IUri_Release(uri);
|
|
|
|
|
|
|
|
heap_free(uriW);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-06-01 22:43:58 +02:00
|
|
|
static void test_IUri_IsEqual(void) {
|
|
|
|
IUri *uriA, *uriB;
|
|
|
|
HRESULT hrA, hrB;
|
|
|
|
DWORD i;
|
|
|
|
|
|
|
|
uriA = uriB = NULL;
|
|
|
|
|
|
|
|
/* Make sure IsEqual handles invalid args correctly. */
|
|
|
|
hrA = pCreateUri(http_urlW, 0, 0, &uriA);
|
|
|
|
hrB = pCreateUri(http_urlW, 0, 0, &uriB);
|
|
|
|
ok(hrA == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hrA, S_OK);
|
|
|
|
ok(hrB == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x.\n", hrB, S_OK);
|
|
|
|
if(SUCCEEDED(hrA) && SUCCEEDED(hrB)) {
|
|
|
|
BOOL equal = -1;
|
|
|
|
hrA = IUri_IsEqual(uriA, NULL, &equal);
|
|
|
|
ok(hrA == S_OK, "Error: IsEqual returned 0x%08x, expected 0x%08x.\n", hrA, S_OK);
|
|
|
|
ok(equal == FALSE, "Error: Expected equal to be FALSE, but was %d instead.\n", equal);
|
|
|
|
|
|
|
|
hrA = IUri_IsEqual(uriA, uriB, NULL);
|
|
|
|
ok(hrA == E_POINTER, "Error: IsEqual returned 0x%08x, expected 0x%08x.\n", hrA, E_POINTER);
|
|
|
|
}
|
|
|
|
if(uriA) IUri_Release(uriA);
|
|
|
|
if(uriB) IUri_Release(uriB);
|
|
|
|
|
|
|
|
for(i = 0; i < sizeof(equality_tests)/sizeof(equality_tests[0]); ++i) {
|
|
|
|
uri_equality test = equality_tests[i];
|
|
|
|
LPWSTR uriA_W, uriB_W;
|
|
|
|
|
|
|
|
uriA = uriB = NULL;
|
|
|
|
|
|
|
|
uriA_W = a2w(test.a);
|
|
|
|
uriB_W = a2w(test.b);
|
|
|
|
|
|
|
|
hrA = pCreateUri(uriA_W, test.create_flags_a, 0, &uriA);
|
|
|
|
if(test.create_todo_a) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hrA == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x on equality_tests[%d].a\n",
|
|
|
|
hrA, S_OK, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hrA == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x on equality_tests[%d].a\n",
|
|
|
|
hrA, S_OK, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
hrB = pCreateUri(uriB_W, test.create_flags_b, 0, &uriB);
|
|
|
|
if(test.create_todo_b) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hrB == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x on equality_tests[%d].b\n",
|
|
|
|
hrB, S_OK, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hrB == S_OK, "Error: CreateUri returned 0x%08x, expected 0x%08x on equality_tests[%d].b\n",
|
|
|
|
hrB, S_OK, i);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(SUCCEEDED(hrA) && SUCCEEDED(hrB)) {
|
|
|
|
BOOL equal = -1;
|
|
|
|
|
|
|
|
hrA = IUri_IsEqual(uriA, uriB, &equal);
|
|
|
|
if(test.todo) {
|
|
|
|
todo_wine {
|
|
|
|
ok(hrA == S_OK, "Error: IsEqual returned 0x%08x, expected 0x%08x on equality_tests[%d].\n",
|
|
|
|
hrA, S_OK, i);
|
|
|
|
}
|
|
|
|
todo_wine {
|
|
|
|
ok(equal == test.equal, "Error: Expected the comparison to be %d on equality_tests[%d].\n", test.equal, i);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
ok(hrA == S_OK, "Error: IsEqual returned 0x%08x, expected 0x%08x on equality_tests[%d].\n", hrA, S_OK, i);
|
|
|
|
ok(equal == test.equal, "Error: Expected the comparison to be %d on equality_tests[%d].\n", test.equal, i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(uriA) IUri_Release(uriA);
|
|
|
|
if(uriB) IUri_Release(uriB);
|
|
|
|
|
|
|
|
heap_free(uriA_W);
|
|
|
|
heap_free(uriB_W);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-05-10 03:23:34 +02:00
|
|
|
START_TEST(uri) {
|
2010-05-11 20:57:41 +02:00
|
|
|
HMODULE hurlmon;
|
|
|
|
|
|
|
|
hurlmon = GetModuleHandle("urlmon.dll");
|
|
|
|
pCreateUri = (void*) GetProcAddress(hurlmon, "CreateUri");
|
|
|
|
|
|
|
|
if(!pCreateUri) {
|
|
|
|
win_skip("CreateUri is not present, skipping tests.\n");
|
|
|
|
return;
|
2010-05-10 03:23:34 +02:00
|
|
|
}
|
2010-05-11 20:57:41 +02:00
|
|
|
|
|
|
|
trace("test CreateUri invalid flags...\n");
|
|
|
|
test_CreateUri_InvalidFlags();
|
2010-05-13 04:35:59 +02:00
|
|
|
|
|
|
|
trace("test CreateUri invalid args...\n");
|
|
|
|
test_CreateUri_InvalidArgs();
|
2010-05-26 22:30:32 +02:00
|
|
|
|
2010-07-12 02:19:53 +02:00
|
|
|
trace("test CreateUri invalid URIs...\n");
|
|
|
|
test_CreateUri_InvalidUri();
|
|
|
|
|
2010-05-26 22:30:32 +02:00
|
|
|
trace("test IUri_GetPropertyBSTR...\n");
|
|
|
|
test_IUri_GetPropertyBSTR();
|
2010-05-26 23:42:12 +02:00
|
|
|
|
2010-05-27 20:23:52 +02:00
|
|
|
trace("test IUri_GetPropertyDWORD...\n");
|
2010-05-26 23:42:12 +02:00
|
|
|
test_IUri_GetPropertyDWORD();
|
2010-05-27 20:23:52 +02:00
|
|
|
|
|
|
|
trace("test IUri_GetStrProperties...\n");
|
|
|
|
test_IUri_GetStrProperties();
|
2010-05-28 01:39:28 +02:00
|
|
|
|
|
|
|
trace("test IUri_GetDwordProperties...\n");
|
|
|
|
test_IUri_GetDwordProperties();
|
2010-05-28 20:06:34 +02:00
|
|
|
|
|
|
|
trace("test IUri_GetPropertyLength...\n");
|
|
|
|
test_IUri_GetPropertyLength();
|
2010-05-31 20:43:14 +02:00
|
|
|
|
|
|
|
trace("test IUri_GetProperties...\n");
|
|
|
|
test_IUri_GetProperties();
|
2010-05-31 21:57:37 +02:00
|
|
|
|
|
|
|
trace("test IUri_HasProperty...\n");
|
|
|
|
test_IUri_HasProperty();
|
2010-06-01 22:43:58 +02:00
|
|
|
|
|
|
|
trace("test IUri_IsEqual...\n");
|
|
|
|
test_IUri_IsEqual();
|
2010-05-10 03:23:34 +02:00
|
|
|
}
|