url.c (11d1bab6) | url.c (98e4a3ec) |
---|---|
1/* 2 * UrlMon URL tests 3 * 4 * Copyright 2004 Kevin Koltzau 5 * Copyright 2004-2007 Jacek Caban for CodeWeavers 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public --- 18 unchanged lines hidden (view full) --- 27#define CONST_VTABLE 28 29#include "windef.h" 30#include "winbase.h" 31#include "initguid.h" 32#include "urlmon.h" 33#include "wininet.h" 34#include "mshtml.h" | 1/* 2 * UrlMon URL tests 3 * 4 * Copyright 2004 Kevin Koltzau 5 * Copyright 2004-2007 Jacek Caban for CodeWeavers 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public --- 18 unchanged lines hidden (view full) --- 27#define CONST_VTABLE 28 29#include "windef.h" 30#include "winbase.h" 31#include "initguid.h" 32#include "urlmon.h" 33#include "wininet.h" 34#include "mshtml.h" |
35#include "shlwapi.h" |
|
35 36#include "wine/test.h" 37 38static HRESULT (WINAPI *pCreateAsyncBindCtxEx)(IBindCtx *, DWORD, 39 IBindStatusCallback *, IEnumFORMATETC *, IBindCtx **, DWORD); 40static HRESULT (WINAPI *pCreateUri)(LPCWSTR, DWORD, DWORD_PTR, IUri**); 41 42DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); --- 2857 unchanged lines hidden (view full) --- 2900 break; 2901 case ITS_TEST: 2902 url_a = "its:test.chm::/blank.html"; 2903 break; 2904 case HTTPS_TEST: 2905 url_a = (flags & BINDTEST_INVALID_CN) ? "https://4.15.184.77/favicon.ico" : "https://test.winehq.org/tests/hello.html"; 2906 break; 2907 case FTP_TEST: | 36 37#include "wine/test.h" 38 39static HRESULT (WINAPI *pCreateAsyncBindCtxEx)(IBindCtx *, DWORD, 40 IBindStatusCallback *, IEnumFORMATETC *, IBindCtx **, DWORD); 41static HRESULT (WINAPI *pCreateUri)(LPCWSTR, DWORD, DWORD_PTR, IUri**); 42 43DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); --- 2857 unchanged lines hidden (view full) --- 2901 break; 2902 case ITS_TEST: 2903 url_a = "its:test.chm::/blank.html"; 2904 break; 2905 case HTTPS_TEST: 2906 url_a = (flags & BINDTEST_INVALID_CN) ? "https://4.15.184.77/favicon.ico" : "https://test.winehq.org/tests/hello.html"; 2907 break; 2908 case FTP_TEST: |
2908 url_a = "ftp://ftp.winehq.org/welcome.msg"; | 2909 url_a = "ftp://ftp.winehq.org/welcome%2emsg"; |
2909 break; 2910 default: 2911 url_a = "winetest:test"; 2912 } 2913 2914 if(url_a) 2915 MultiByteToWideChar(CP_ACP, 0, url_a, -1, current_url, ARRAY_SIZE(current_url)); 2916 --- 47 unchanged lines hidden (view full) --- 2964 IBindStatusCallback_Release(previousclb); 2965 } 2966 2967 hres = CreateURLMoniker(NULL, current_url, &mon); 2968 ok(hres == S_OK, "failed to create moniker: %08x\n", hres); 2969 if(FAILED(hres)) 2970 return; 2971 | 2910 break; 2911 default: 2912 url_a = "winetest:test"; 2913 } 2914 2915 if(url_a) 2916 MultiByteToWideChar(CP_ACP, 0, url_a, -1, current_url, ARRAY_SIZE(current_url)); 2917 --- 47 unchanged lines hidden (view full) --- 2965 IBindStatusCallback_Release(previousclb); 2966 } 2967 2968 hres = CreateURLMoniker(NULL, current_url, &mon); 2969 ok(hres == S_OK, "failed to create moniker: %08x\n", hres); 2970 if(FAILED(hres)) 2971 return; 2972 |
2973 if(protocol == FTP_TEST) 2974 { 2975 /* FTP urls don't have any escape characters so convert the url to what is expected */ 2976 DWORD size = 0; 2977 UrlUnescapeW(current_url, NULL, &size, URL_UNESCAPE_INPLACE); 2978 } 2979 |
|
2972 hres = IMoniker_QueryInterface(mon, &IID_IBinding, (void**)&bind); 2973 ok(hres == E_NOINTERFACE, "IMoniker should not have IBinding interface\n"); 2974 if(SUCCEEDED(hres)) 2975 IBinding_Release(bind); 2976 2977 hres = IMoniker_GetDisplayName(mon, bctx, NULL, &display_name); 2978 ok(hres == S_OK, "GetDisplayName failed %08x\n", hres); 2979 ok(!lstrcmpW(display_name, current_url), "GetDisplayName got wrong name %s, expected %s\n", --- 1183 unchanged lines hidden --- | 2980 hres = IMoniker_QueryInterface(mon, &IID_IBinding, (void**)&bind); 2981 ok(hres == E_NOINTERFACE, "IMoniker should not have IBinding interface\n"); 2982 if(SUCCEEDED(hres)) 2983 IBinding_Release(bind); 2984 2985 hres = IMoniker_GetDisplayName(mon, bctx, NULL, &display_name); 2986 ok(hres == S_OK, "GetDisplayName failed %08x\n", hres); 2987 ok(!lstrcmpW(display_name, current_url), "GetDisplayName got wrong name %s, expected %s\n", --- 1183 unchanged lines hidden --- |