ReactOS  0.4.14-dev-1314-gacf135d
httpreq.c File Reference
#include <stdio.h>
#include <assert.h>
#include "windows.h"
#include "msxml2.h"
#include "msxml2did.h"
#include "dispex.h"
#include "initguid.h"
#include "objsafe.h"
#include "mshtml.h"
#include "wine/heap.h"
#include "wine/test.h"
Include dependency graph for httpreq.c:

Go to the source code of this file.

Classes

struct  dispevent
 

Macros

#define COBJMACROS
 
#define CONST_VTABLE
 
#define EXPECT_HR(hr, hr_exp)   ok(hr == hr_exp, "got 0x%08x, expected 0x%08x\n", hr, hr_exp)
 
#define EXPECT_REF(node, ref)   _expect_ref((IUnknown*)node, ref, __LINE__)
 
#define DEFINE_EXPECT(func)   static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
 
#define SET_EXPECT(func)   expect_ ## func = TRUE
 
#define CHECK_EXPECT2(func)
 
#define CHECK_CALLED(func)
 
#define test_open(a, b, c, d)   _test_open(__LINE__,a,b,c,d)
 
#define test_server_open(a, b, c, d)   _test_server_open(__LINE__,a,b,c,d)
 

Functions

static void _expect_ref (IUnknown *obj, ULONG ref, int line)
 
 DEFINE_GUID (SID_SContainerDispatch, 0xb722be00, 0x4e68, 0x101b, 0xa2, 0xbc, 0x00, 0xaa, 0x00, 0x40, 0x47, 0x70)
 
 DEFINE_GUID (SID_UnknownSID, 0x75dd09cb, 0x6c40, 0x11d5, 0x85, 0x43, 0x00, 0xc0, 0x4f, 0xa0, 0xfb, 0xa3)
 
 DEFINE_EXPECT (site_qi_IServiceProvider)
 
 DEFINE_EXPECT (site_qi_IXMLDOMDocument)
 
 DEFINE_EXPECT (site_qi_IOleClientSite)
 
 DEFINE_EXPECT (sp_queryservice_SID_SBindHost)
 
 DEFINE_EXPECT (sp_queryservice_SID_SContainerDispatch_htmldoc2)
 
 DEFINE_EXPECT (sp_queryservice_SID_secmgr_htmldoc2)
 
 DEFINE_EXPECT (sp_queryservice_SID_secmgr_xmldomdoc)
 
 DEFINE_EXPECT (sp_queryservice_SID_secmgr_secmgr)
 
 DEFINE_EXPECT (htmldoc2_get_all)
 
 DEFINE_EXPECT (htmldoc2_get_url)
 
 DEFINE_EXPECT (collection_get_length)
 
static int strcmp_wa (const WCHAR *strw, const char *stra)
 
static BSTR alloc_str_from_narrow (const char *str)
 
static BSTR _bstr_ (const char *str)
 
static void free_bstrs (void)
 
static BSTR a2bstr (const char *str)
 
static HRESULT WINAPI htmlecoll_QueryInterface (IHTMLElementCollection *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI htmlecoll_AddRef (IHTMLElementCollection *iface)
 
static ULONG WINAPI htmlecoll_Release (IHTMLElementCollection *iface)
 
static HRESULT WINAPI htmlecoll_GetTypeInfoCount (IHTMLElementCollection *iface, UINT *pctinfo)
 
static HRESULT WINAPI htmlecoll_GetTypeInfo (IHTMLElementCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI htmlecoll_GetIDsOfNames (IHTMLElementCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI htmlecoll_Invoke (IHTMLElementCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI htmlecoll_toString (IHTMLElementCollection *iface, BSTR *String)
 
static HRESULT WINAPI htmlecoll_put_length (IHTMLElementCollection *iface, LONG v)
 
static HRESULT WINAPI htmlecoll_get_length (IHTMLElementCollection *iface, LONG *v)
 
static HRESULT WINAPI htmlecoll_get__newEnum (IHTMLElementCollection *iface, IUnknown **p)
 
static HRESULT WINAPI htmlecoll_item (IHTMLElementCollection *iface, VARIANT name, VARIANT index, IDispatch **pdisp)
 
static HRESULT WINAPI htmlecoll_tags (IHTMLElementCollection *iface, VARIANT tagName, IDispatch **pdisp)
 
static HRESULT WINAPI htmldoc2_QueryInterface (IHTMLDocument2 *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI htmldoc2_AddRef (IHTMLDocument2 *iface)
 
static ULONG WINAPI htmldoc2_Release (IHTMLDocument2 *iface)
 
static HRESULT WINAPI htmldoc2_GetTypeInfoCount (IHTMLDocument2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI htmldoc2_GetTypeInfo (IHTMLDocument2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI htmldoc2_GetIDsOfNames (IHTMLDocument2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI htmldoc2_Invoke (IHTMLDocument2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI htmldoc2_get_Script (IHTMLDocument2 *iface, IDispatch **p)
 
static HRESULT WINAPI htmldoc2_get_all (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_get_body (IHTMLDocument2 *iface, IHTMLElement **p)
 
static HRESULT WINAPI htmldoc2_get_activeElement (IHTMLDocument2 *iface, IHTMLElement **p)
 
static HRESULT WINAPI htmldoc2_get_images (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_get_applets (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_get_links (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_get_forms (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_get_anchors (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_put_title (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI htmldoc2_get_title (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_scripts (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_put_designMode (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI htmldoc2_get_designMode (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_selection (IHTMLDocument2 *iface, IHTMLSelectionObject **p)
 
static HRESULT WINAPI htmldoc2_get_readyState (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_frames (IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
 
static HRESULT WINAPI htmldoc2_get_embeds (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_get_plugins (IHTMLDocument2 *iface, IHTMLElementCollection **p)
 
static HRESULT WINAPI htmldoc2_put_alinkColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_alinkColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_bgColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_bgColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_fgColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_fgColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_linkColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_linkColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_vlinkColor (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_vlinkColor (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_get_referrer (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_location (IHTMLDocument2 *iface, IHTMLLocation **p)
 
static HRESULT WINAPI htmldoc2_get_lastModified (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_put_URL (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI htmldoc2_get_URL (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_put_domain (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI htmldoc2_get_domain (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_put_cookie (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI htmldoc2_get_cookie (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_put_expando (IHTMLDocument2 *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI htmldoc2_get_expando (IHTMLDocument2 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI htmldoc2_put_charset (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI htmldoc2_get_charset (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_put_defaultCharset (IHTMLDocument2 *iface, BSTR v)
 
static HRESULT WINAPI htmldoc2_get_defaultCharset (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_mimeType (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_fileSize (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_fileCreatedDate (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_fileModifiedDate (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_fileUpdatedDate (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_security (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_protocol (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_get_nameProp (IHTMLDocument2 *iface, BSTR *p)
 
static HRESULT WINAPI htmldoc2_write (IHTMLDocument2 *iface, SAFEARRAY *psarray)
 
static HRESULT WINAPI htmldoc2_writeln (IHTMLDocument2 *iface, SAFEARRAY *psarray)
 
static HRESULT WINAPI htmldoc2_open (IHTMLDocument2 *iface, BSTR url, VARIANT name, VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
 
static HRESULT WINAPI htmldoc2_close (IHTMLDocument2 *iface)
 
static HRESULT WINAPI htmldoc2_clear (IHTMLDocument2 *iface)
 
static HRESULT WINAPI htmldoc2_queryCommandSupported (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI htmldoc2_queryCommandEnabled (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI htmldoc2_queryCommandState (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI htmldoc2_queryCommandIndeterm (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI htmldoc2_queryCommandText (IHTMLDocument2 *iface, BSTR cmdID, BSTR *pfRet)
 
static HRESULT WINAPI htmldoc2_queryCommandValue (IHTMLDocument2 *iface, BSTR cmdID, VARIANT *pfRet)
 
static HRESULT WINAPI htmldoc2_execCommand (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI htmldoc2_execCommandShowHelp (IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI htmldoc2_createElement (IHTMLDocument2 *iface, BSTR eTag, IHTMLElement **newElem)
 
static HRESULT WINAPI htmldoc2_put_onhelp (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onhelp (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onclick (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onclick (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_ondblclick (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_ondblclick (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onkeyup (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onkeyup (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onkeydown (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onkeydown (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onkeypress (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onkeypress (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onmouseup (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onmouseup (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onmousedown (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onmousedown (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onmousemove (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onmousemove (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onmouseout (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onmouseout (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onmouseover (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onmouseover (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onreadystatechange (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onreadystatechange (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onafterupdate (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onafterupdate (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onrowexit (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onrowexit (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onrowenter (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onrowenter (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_ondragstart (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_ondragstart (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onselectstart (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onselectstart (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_elementFromPoint (IHTMLDocument2 *iface, LONG x, LONG y, IHTMLElement **elementHit)
 
static HRESULT WINAPI htmldoc2_get_parentWindow (IHTMLDocument2 *iface, IHTMLWindow2 **p)
 
static HRESULT WINAPI htmldoc2_get_styleSheets (IHTMLDocument2 *iface, IHTMLStyleSheetsCollection **p)
 
static HRESULT WINAPI htmldoc2_put_onbeforeupdate (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onbeforeupdate (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_put_onerrorupdate (IHTMLDocument2 *iface, VARIANT v)
 
static HRESULT WINAPI htmldoc2_get_onerrorupdate (IHTMLDocument2 *iface, VARIANT *p)
 
static HRESULT WINAPI htmldoc2_toString (IHTMLDocument2 *iface, BSTR *String)
 
static HRESULT WINAPI htmldoc2_createStyleSheet (IHTMLDocument2 *iface, BSTR bstrHref, LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet)
 
static HRESULT WINAPI sp_QueryInterface (IServiceProvider *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI sp_AddRef (IServiceProvider *iface)
 
static ULONG WINAPI sp_Release (IServiceProvider *iface)
 
static HRESULT WINAPI sp_QueryService (IServiceProvider *iface, REFGUID service, REFIID riid, void **obj)
 
static HRESULT WINAPI site_QueryInterface (IUnknown *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI site_AddRef (IUnknown *iface)
 
static ULONG WINAPI site_Release (IUnknown *iface)
 
static dispeventimpl_from_IDispatch (IDispatch *iface)
 
static HRESULT WINAPI dispevent_QueryInterface (IDispatch *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI dispevent_AddRef (IDispatch *iface)
 
static ULONG WINAPI dispevent_Release (IDispatch *iface)
 
static HRESULT WINAPI dispevent_GetTypeInfoCount (IDispatch *iface, UINT *pctinfo)
 
static HRESULT WINAPI dispevent_GetTypeInfo (IDispatch *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI dispevent_GetIDsOfNames (IDispatch *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI dispevent_Invoke (IDispatch *iface, DISPID member, REFIID riid, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *result, EXCEPINFO *excepInfo, UINT *argErr)
 
static IDispatchcreate_dispevent (void)
 
static IXMLHttpRequestcreate_xhr (void)
 
static IServerXMLHTTPRequest * create_server_xhr (void)
 
static void set_safety_opt (IUnknown *unk, DWORD mask, DWORD opts)
 
static void set_xhr_site (IXMLHttpRequest *xhr)
 
static void _test_open (unsigned line, IXMLHttpRequest *xhr, const char *method, const char *url, HRESULT exhres)
 
static void _test_server_open (unsigned line, IServerXMLHTTPRequest *xhr, const char *method, const char *url, HRESULT exhres)
 
static void test_XMLHTTP (void)
 
static void test_server_xhr (void)
 
static void test_safe_httpreq (void)
 
static void test_supporterrorinfo (void)
 
 START_TEST (httpreq)
 

Variables

static const char xmltestA [] = "http://test.winehq.org/tests/xmltest.xml"
 
static const CHAR xmltestbodyA [] = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<a>TEST</a>\n"
 
static BOOL g_enablecallchecks
 
static int g_unexpectedcall
 
static int g_expectedcall
 
static BSTR alloced_bstrs [256]
 
static int alloced_bstrs_count
 
static const IHTMLElementCollectionVtbl TestHTMLECollectionVtbl
 
static IHTMLElementCollection htmlecoll = { &TestHTMLECollectionVtbl }
 
static const IHTMLDocument2Vtbl TestHTMLDocumentVtbl
 
static IHTMLDocument2 htmldoc2 = { &TestHTMLDocumentVtbl }
 
static const IServiceProviderVtbl testprovVtbl
 
static IServiceProvider testprov = { &testprovVtbl }
 
static const IUnknownVtbl testsiteVtbl
 
static IUnknown testsite = { &testsiteVtbl }
 
static IXMLHttpRequesthttpreq
 
static const IDispatchVtbl dispeventVtbl
 

Macro Definition Documentation

◆ CHECK_CALLED

#define CHECK_CALLED (   func)
Value:
do { \
ok(called_ ## func, "expected " #func "\n"); \
expect_ ## func = called_ ## func = FALSE; \
}while(0)
GLenum func
Definition: glext.h:6028

Definition at line 74 of file httpreq.c.

◆ CHECK_EXPECT2

#define CHECK_EXPECT2 (   func)
Value:
do { \
ok(expect_ ##func, "unexpected call " #func "\n"); \
called_ ## func = TRUE; \
}while(0)
GLenum func
Definition: glext.h:6028
#define TRUE
Definition: types.h:120
#define expect_(expected, got, precision)
Definition: font.c:29
static BOOL g_enablecallchecks
Definition: httpreq.c:59

Definition at line 67 of file httpreq.c.

◆ COBJMACROS

#define COBJMACROS

Definition at line 22 of file httpreq.c.

◆ CONST_VTABLE

#define CONST_VTABLE

Definition at line 23 of file httpreq.c.

◆ DEFINE_EXPECT

#define DEFINE_EXPECT (   func)    static BOOL expect_ ## func = FALSE, called_ ## func = FALSE

Definition at line 61 of file httpreq.c.

◆ EXPECT_HR

#define EXPECT_HR (   hr,
  hr_exp 
)    ok(hr == hr_exp, "got 0x%08x, expected 0x%08x\n", hr, hr_exp)

Definition at line 41 of file httpreq.c.

◆ EXPECT_REF

#define EXPECT_REF (   node,
  ref 
)    _expect_ref((IUnknown*)node, ref, __LINE__)

Definition at line 44 of file httpreq.c.

◆ SET_EXPECT

#define SET_EXPECT (   func)    expect_ ## func = TRUE

Definition at line 64 of file httpreq.c.

◆ test_open

#define test_open (   a,
  b,
  c,
  d 
)    _test_open(__LINE__,a,b,c,d)

Definition at line 1430 of file httpreq.c.

◆ test_server_open

#define test_server_open (   a,
  b,
  c,
  d 
)    _test_server_open(__LINE__,a,b,c,d)

Definition at line 1444 of file httpreq.c.

Function Documentation

◆ _bstr_()

static BSTR _bstr_ ( const char str)
static

Definition at line 115 of file httpreq.c.

116 {
117  if(!str)
118  return NULL;
119 
123 }
#define assert(x)
Definition: debug.h:53
static BSTR alloced_bstrs[256]
Definition: httpreq.c:112
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
static int alloced_bstrs_count
Definition: httpreq.c:113
static BSTR alloc_str_from_narrow(const char *str)
Definition: httpreq.c:104
#define ARRAY_SIZE(a)
Definition: main.h:24

Referenced by _test_open(), _test_server_open(), and test_XMLHTTP().

◆ _expect_ref()

static void _expect_ref ( IUnknown obj,
ULONG  ref,
int  line 
)
static

Definition at line 45 of file httpreq.c.

46 {
47  ULONG rc;
48  IUnknown_AddRef(obj);
49  rc = IUnknown_Release(obj);
50  ok_(__FILE__, line)(rc == ref, "expected refcount %d, got %d\n", ref, rc);
51 }
GLenum GLint ref
Definition: glext.h:6028
Definition: parser.c:48
unsigned int ULONG
Definition: retypes.h:1
#define ok_(x1, x2)
Definition: atltest.h:61

◆ _test_open()

static void _test_open ( unsigned  line,
IXMLHttpRequest xhr,
const char method,
const char url,
HRESULT  exhres 
)
static

Definition at line 1431 of file httpreq.c.

1432 {
1433  VARIANT empty, vfalse;
1434  HRESULT hr;
1435 
1436  V_VT(&empty) = VT_EMPTY;
1437  V_VT(&vfalse) = VT_BOOL;
1438  V_BOOL(&vfalse) = VARIANT_FALSE;
1439 
1440  hr = IXMLHttpRequest_open(xhr, _bstr_(method), _bstr_(url), vfalse, empty, empty);
1441  ok_(__FILE__,line)(hr == exhres, "open(%s %s) failed: %08x, expected %08x\n", method, url, hr, exhres);
1442 }
static IHTMLXMLHttpRequest * xhr
HRESULT hr
Definition: shlfolder.c:183
static BSTR _bstr_(const char *str)
Definition: httpreq.c:115
Definition: parser.c:48
LONG HRESULT
Definition: typedefs.h:78
static const WCHAR url[]
Definition: encode.c:1432
#define V_BOOL(A)
Definition: oleauto.h:224
method
Definition: dragdrop.c:53
#define V_VT(A)
Definition: oleauto.h:211
BOOL empty
Definition: button.c:170
#define ok_(x1, x2)
Definition: atltest.h:61

◆ _test_server_open()

static void _test_server_open ( unsigned  line,
IServerXMLHTTPRequest *  xhr,
const char method,
const char url,
HRESULT  exhres 
)
static

Definition at line 1445 of file httpreq.c.

1446 {
1447  VARIANT empty, vfalse;
1448  HRESULT hr;
1449 
1450  V_VT(&empty) = VT_EMPTY;
1451  V_VT(&vfalse) = VT_BOOL;
1452  V_BOOL(&vfalse) = VARIANT_FALSE;
1453 
1454  hr = IServerXMLHTTPRequest_open(xhr, _bstr_(method), _bstr_(url), vfalse, empty, empty);
1455  ok_(__FILE__,line)(hr == exhres, "open(%s %s) failed: %08x, expected %08x\n", method, url, hr, exhres);
1456 }
static IHTMLXMLHttpRequest * xhr
HRESULT hr
Definition: shlfolder.c:183
static BSTR _bstr_(const char *str)
Definition: httpreq.c:115
Definition: parser.c:48
LONG HRESULT
Definition: typedefs.h:78
static const WCHAR url[]
Definition: encode.c:1432
#define V_BOOL(A)
Definition: oleauto.h:224
method
Definition: dragdrop.c:53
#define V_VT(A)
Definition: oleauto.h:211
BOOL empty
Definition: button.c:170
#define ok_(x1, x2)
Definition: atltest.h:61

◆ a2bstr()

static BSTR a2bstr ( const char str)
static

Definition at line 133 of file httpreq.c.

134 {
135  BSTR ret;
136  int len;
137 
138  if(!str)
139  return NULL;
140 
141  len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
143  MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len);
144 
145  return ret;
146 }
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:339
#define CP_ACP
Definition: compat.h:99
OLECHAR * BSTR
Definition: compat.h:1942
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
int ret
GLenum GLsizei len
Definition: glext.h:6722
#define MultiByteToWideChar
Definition: compat.h:100

Referenced by htmldoc2_get_URL(), and test_XMLHTTP().

◆ alloc_str_from_narrow()

static BSTR alloc_str_from_narrow ( const char str)
static

Definition at line 104 of file httpreq.c.

105 {
106  int len = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
107  BSTR ret = SysAllocStringLen(NULL, len - 1); /* NUL character added automatically */
108  MultiByteToWideChar(CP_ACP, 0, str, -1, ret, len-1);
109  return ret;
110 }
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:339
#define CP_ACP
Definition: compat.h:99
OLECHAR * BSTR
Definition: compat.h:1942
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
int ret
GLenum GLsizei len
Definition: glext.h:6722
#define MultiByteToWideChar
Definition: compat.h:100

Referenced by _bstr_().

◆ create_dispevent()

static IDispatch* create_dispevent ( void  )
static

Definition at line 1332 of file httpreq.c.

1333 {
1334  dispevent *event = heap_alloc(sizeof(*event));
1335 
1336  event->IDispatch_iface.lpVtbl = &dispeventVtbl;
1337  event->ref = 1;
1338 
1339  return &event->IDispatch_iface;
1340 }
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
static const IDispatchVtbl dispeventVtbl
Definition: httpreq.c:1321
struct _cl_event * event
Definition: glext.h:7739

Referenced by test_XMLHTTP().

◆ create_server_xhr()

static IServerXMLHTTPRequest* create_server_xhr ( void  )
static

Definition at line 1353 of file httpreq.c.

1354 {
1355  IServerXMLHTTPRequest *ret;
1356  HRESULT hr;
1357 
1358  hr = CoCreateInstance(&CLSID_ServerXMLHTTP30, NULL, CLSCTX_INPROC_SERVER, &IID_IServerXMLHTTPRequest, (void **)&ret);
1359 
1360  return SUCCEEDED(hr) ? ret : NULL;
1361 }
HRESULT hr
Definition: shlfolder.c:183
smooth NULL
Definition: ftsmooth.c:416
LONG HRESULT
Definition: typedefs.h:78
int ret
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by test_server_xhr(), and test_supporterrorinfo().

◆ create_xhr()

static IXMLHttpRequest* create_xhr ( void  )
static

Definition at line 1342 of file httpreq.c.

1343 {
1345  HRESULT hr;
1346 
1347  hr = CoCreateInstance(&CLSID_XMLHTTPRequest, NULL, CLSCTX_INPROC_SERVER,
1348  &IID_IXMLHttpRequest, (void**)&ret);
1349 
1350  return SUCCEEDED(hr) ? ret : NULL;
1351 }
HRESULT hr
Definition: shlfolder.c:183
smooth NULL
Definition: ftsmooth.c:416
LONG HRESULT
Definition: typedefs.h:78
int ret
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
Definition: compobj.c:3325
const struct _GUID CLSID_XMLHTTPRequest
#define SUCCEEDED(hr)
Definition: intsafe.h:57

Referenced by START_TEST(), test_safe_httpreq(), test_supporterrorinfo(), and test_XMLHTTP().

◆ DEFINE_EXPECT() [1/11]

DEFINE_EXPECT ( site_qi_IServiceProvider  )

◆ DEFINE_EXPECT() [2/11]

DEFINE_EXPECT ( site_qi_IXMLDOMDocument  )

◆ DEFINE_EXPECT() [3/11]

DEFINE_EXPECT ( site_qi_IOleClientSite  )

◆ DEFINE_EXPECT() [4/11]

DEFINE_EXPECT ( sp_queryservice_SID_SBindHost  )

◆ DEFINE_EXPECT() [5/11]

DEFINE_EXPECT ( sp_queryservice_SID_SContainerDispatch_htmldoc2  )

◆ DEFINE_EXPECT() [6/11]

DEFINE_EXPECT ( sp_queryservice_SID_secmgr_htmldoc2  )

◆ DEFINE_EXPECT() [7/11]

DEFINE_EXPECT ( sp_queryservice_SID_secmgr_xmldomdoc  )

◆ DEFINE_EXPECT() [8/11]

DEFINE_EXPECT ( sp_queryservice_SID_secmgr_secmgr  )

◆ DEFINE_EXPECT() [9/11]

DEFINE_EXPECT ( htmldoc2_get_all  )

◆ DEFINE_EXPECT() [10/11]

DEFINE_EXPECT ( htmldoc2_get_url  )

◆ DEFINE_EXPECT() [11/11]

DEFINE_EXPECT ( collection_get_length  )

◆ DEFINE_GUID() [1/2]

DEFINE_GUID ( SID_SContainerDispatch  ,
0xb722be00  ,
0x4e68  ,
0x101b  ,
0xa2  ,
0xbc  ,
0x00  ,
0xaa  ,
0x00  ,
0x40  ,
0x47  ,
0x70   
)

◆ DEFINE_GUID() [2/2]

DEFINE_GUID ( SID_UnknownSID  ,
0x75dd09cb  ,
0x6c40  ,
0x11d5  ,
0x85  ,
0x43  ,
0x00  ,
0xc0  ,
0x4f  ,
0xa0  ,
0xfb  ,
0xa3   
)

◆ dispevent_AddRef()

static ULONG WINAPI dispevent_AddRef ( IDispatch iface)
static

Definition at line 1245 of file httpreq.c.

1246 {
1247  dispevent *This = impl_from_IDispatch( iface );
1248  return InterlockedIncrement( &This->ref );
1249 }
static dispevent * impl_from_IDispatch(IDispatch *iface)
Definition: httpreq.c:1223
#define InterlockedIncrement
Definition: armddk.h:53

◆ dispevent_GetIDsOfNames()

static HRESULT WINAPI dispevent_GetIDsOfNames ( IDispatch iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 1276 of file httpreq.c.

1278 {
1279  g_unexpectedcall++;
1280  return S_OK;
1281 }
static int g_unexpectedcall
Definition: httpreq.c:95
#define S_OK
Definition: intsafe.h:59

◆ dispevent_GetTypeInfo()

static HRESULT WINAPI dispevent_GetTypeInfo ( IDispatch iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 1269 of file httpreq.c.

1271 {
1272  g_unexpectedcall++;
1273  return S_OK;
1274 }
static int g_unexpectedcall
Definition: httpreq.c:95
#define S_OK
Definition: intsafe.h:59

◆ dispevent_GetTypeInfoCount()

static HRESULT WINAPI dispevent_GetTypeInfoCount ( IDispatch iface,
UINT pctinfo 
)
static

Definition at line 1262 of file httpreq.c.

1263 {
1264  g_unexpectedcall++;
1265  *pctinfo = 0;
1266  return S_OK;
1267 }
static int g_unexpectedcall
Definition: httpreq.c:95
#define S_OK
Definition: intsafe.h:59

◆ dispevent_Invoke()

static HRESULT WINAPI dispevent_Invoke ( IDispatch iface,
DISPID  member,
REFIID  riid,
LCID  lcid,
WORD  flags,
DISPPARAMS *  params,
VARIANT result,
EXCEPINFO *  excepInfo,
UINT argErr 
)
static

Definition at line 1283 of file httpreq.c.

1286 {
1287  LONG state;
1288  HRESULT hr;
1289 
1290  ok(member == 0, "expected 0 member, got %d\n", member);
1291  ok(lcid == LOCALE_SYSTEM_DEFAULT, "expected LOCALE_SYSTEM_DEFAULT, got lcid %x\n", lcid);
1292  ok(flags == DISPATCH_METHOD, "expected DISPATCH_METHOD, got %d\n", flags);
1293 
1294  ok(params->cArgs == 0, "got %d\n", params->cArgs);
1295  ok(params->cNamedArgs == 0, "got %d\n", params->cNamedArgs);
1296  ok(params->rgvarg == NULL, "got %p\n", params->rgvarg);
1297  ok(params->rgdispidNamedArgs == NULL, "got %p\n", params->rgdispidNamedArgs);
1298 
1299  ok(result == NULL, "got %p\n", result);
1300  ok(excepInfo == NULL, "got %p\n", excepInfo);
1301  ok(argErr == NULL, "got %p\n", argErr);
1302 
1303  g_expectedcall++;
1304 
1305  state = READYSTATE_UNINITIALIZED;
1306  hr = IXMLHttpRequest_get_readyState(httpreq, &state);
1307  ok(hr == S_OK, "got 0x%08x\n", hr);
1308  if (state == READYSTATE_COMPLETE)
1309  {
1310  BSTR text = NULL;
1311 
1312  hr = IXMLHttpRequest_get_responseText(httpreq, &text);
1313  ok(hr == S_OK, "got 0x%08x\n", hr);
1314  ok(*text != 0, "got %s\n", wine_dbgstr_w(text));
1316  }
1317 
1318  return E_FAIL;
1319 }
HRESULT hr
Definition: shlfolder.c:183
char * wine_dbgstr_w(const wchar_t *wstr)
Definition: atltest.h:87
const WCHAR * text
Definition: package.c:1827
OLECHAR * BSTR
Definition: compat.h:1942
static int g_expectedcall
Definition: httpreq.c:95
#define E_FAIL
Definition: ddrawi.h:102
#define DISPATCH_METHOD
Definition: oleauto.h:1006
GLenum const GLfloat * params
Definition: glext.h:5645
long LONG
Definition: pedump.c:60
smooth NULL
Definition: ftsmooth.c:416
LONG HRESULT
Definition: typedefs.h:78
#define LOCALE_SYSTEM_DEFAULT
GLbitfield flags
Definition: glext.h:7161
static int state
Definition: maze.c:121
#define S_OK
Definition: intsafe.h:59
static IXMLHttpRequest * httpreq
Definition: httpreq.c:1221
#define ok(value,...)
Definition: atltest.h:57
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
GLuint64EXT * result
Definition: glext.h:11304

◆ dispevent_QueryInterface()

static HRESULT WINAPI dispevent_QueryInterface ( IDispatch iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 1228 of file httpreq.c.

1229 {
1230  *ppvObject = NULL;
1231 
1232  if ( IsEqualGUID( riid, &IID_IDispatch) ||
1234  {
1235  *ppvObject = iface;
1236  }
1237  else
1238  return E_NOINTERFACE;
1239 
1240  IDispatch_AddRef( iface );
1241 
1242  return S_OK;
1243 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
smooth NULL
Definition: ftsmooth.c:416
const GUID IID_IUnknown
const GUID IID_IDispatch
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ dispevent_Release()

static ULONG WINAPI dispevent_Release ( IDispatch iface)
static

Definition at line 1251 of file httpreq.c.

1252 {
1253  dispevent *This = impl_from_IDispatch( iface );
1254  ULONG ref = InterlockedDecrement( &This->ref );
1255 
1256  if (ref == 0)
1257  heap_free(This);
1258 
1259  return ref;
1260 }
Definition: send.c:47
GLenum GLint ref
Definition: glext.h:6028
static dispevent * impl_from_IDispatch(IDispatch *iface)
Definition: httpreq.c:1223
#define InterlockedDecrement
Definition: armddk.h:52
unsigned int ULONG
Definition: retypes.h:1
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ free_bstrs()

static void free_bstrs ( void  )
static

Definition at line 125 of file httpreq.c.

126 {
127  int i;
128  for (i = 0; i < alloced_bstrs_count; i++)
131 }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static BSTR alloced_bstrs[256]
Definition: httpreq.c:112
static int alloced_bstrs_count
Definition: httpreq.c:113
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271

Referenced by test_safe_httpreq(), test_server_xhr(), and test_XMLHTTP().

◆ htmldoc2_AddRef()

static ULONG WINAPI htmldoc2_AddRef ( IHTMLDocument2 *  iface)
static

Definition at line 258 of file httpreq.c.

259 {
260  return 2;
261 }

◆ htmldoc2_clear()

static HRESULT WINAPI htmldoc2_clear ( IHTMLDocument2 *  iface)
static

Definition at line 636 of file httpreq.c.

637 {
638  ok(0, "unexpected call\n");
639  return E_NOTIMPL;
640 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_close()

static HRESULT WINAPI htmldoc2_close ( IHTMLDocument2 *  iface)
static

Definition at line 630 of file httpreq.c.

631 {
632  ok(0, "unexpected call\n");
633  return E_NOTIMPL;
634 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_createElement()

static HRESULT WINAPI htmldoc2_createElement ( IHTMLDocument2 *  iface,
BSTR  eTag,
IHTMLElement **  newElem 
)
static

Definition at line 698 of file httpreq.c.

700 {
701  ok(0, "unexpected call\n");
702  return E_NOTIMPL;
703 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_createStyleSheet()

static HRESULT WINAPI htmldoc2_createStyleSheet ( IHTMLDocument2 *  iface,
BSTR  bstrHref,
LONG  lIndex,
IHTMLStyleSheet **  ppnewStyleSheet 
)
static

Definition at line 959 of file httpreq.c.

961 {
962  ok(0, "unexpected call\n");
963  return E_NOTIMPL;
964 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_elementFromPoint()

static HRESULT WINAPI htmldoc2_elementFromPoint ( IHTMLDocument2 *  iface,
LONG  x,
LONG  y,
IHTMLElement **  elementHit 
)
static

Definition at line 909 of file httpreq.c.

911 {
912  ok(0, "unexpected call\n");
913  return E_NOTIMPL;
914 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_execCommand()

static HRESULT WINAPI htmldoc2_execCommand ( IHTMLDocument2 *  iface,
BSTR  cmdID,
VARIANT_BOOL  showUI,
VARIANT  value,
VARIANT_BOOL pfRet 
)
static

Definition at line 684 of file httpreq.c.

686 {
687  ok(0, "unexpected call\n");
688  return E_NOTIMPL;
689 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_execCommandShowHelp()

static HRESULT WINAPI htmldoc2_execCommandShowHelp ( IHTMLDocument2 *  iface,
BSTR  cmdID,
VARIANT_BOOL pfRet 
)
static

Definition at line 691 of file httpreq.c.

693 {
694  ok(0, "unexpected call\n");
695  return E_NOTIMPL;
696 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_activeElement()

static HRESULT WINAPI htmldoc2_get_activeElement ( IHTMLDocument2 *  iface,
IHTMLElement **  p 
)
static

Definition at line 316 of file httpreq.c.

317 {
318  ok(0, "unexpected call\n");
319  return E_NOTIMPL;
320 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_alinkColor()

static HRESULT WINAPI htmldoc2_get_alinkColor ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 418 of file httpreq.c.

419 {
420  ok(0, "unexpected call\n");
421  return E_NOTIMPL;
422 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_all()

static HRESULT WINAPI htmldoc2_get_all ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 303 of file httpreq.c.

304 {
306  *p = &htmlecoll;
307  return S_OK;
308 }
#define CHECK_EXPECT2(func)
Definition: httpreq.c:67
static HRESULT WINAPI htmldoc2_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
Definition: httpreq.c:303
#define S_OK
Definition: intsafe.h:59
static IHTMLElementCollection htmlecoll
Definition: httpreq.c:248
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by set_xhr_site().

◆ htmldoc2_get_anchors()

static HRESULT WINAPI htmldoc2_get_anchors ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 346 of file httpreq.c.

347 {
348  ok(0, "unexpected call\n");
349  return E_NOTIMPL;
350 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_applets()

static HRESULT WINAPI htmldoc2_get_applets ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 328 of file httpreq.c.

329 {
330  ok(0, "unexpected call\n");
331  return E_NOTIMPL;
332 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_bgColor()

static HRESULT WINAPI htmldoc2_get_bgColor ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 430 of file httpreq.c.

431 {
432  ok(0, "unexpected call\n");
433  return E_NOTIMPL;
434 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_body()

static HRESULT WINAPI htmldoc2_get_body ( IHTMLDocument2 *  iface,
IHTMLElement **  p 
)
static

Definition at line 310 of file httpreq.c.

311 {
312  ok(0, "unexpected call\n");
313  return E_NOTIMPL;
314 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_charset()

static HRESULT WINAPI htmldoc2_get_charset ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 545 of file httpreq.c.

546 {
547  ok(0, "unexpected call\n");
548  return E_NOTIMPL;
549 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_cookie()

static HRESULT WINAPI htmldoc2_get_cookie ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 521 of file httpreq.c.

522 {
523  ok(0, "unexpected call\n");
524  return E_NOTIMPL;
525 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_defaultCharset()

static HRESULT WINAPI htmldoc2_get_defaultCharset ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 557 of file httpreq.c.

558 {
559  ok(0, "unexpected call\n");
560  return E_NOTIMPL;
561 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_designMode()

static HRESULT WINAPI htmldoc2_get_designMode ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 376 of file httpreq.c.

377 {
378  ok(0, "unexpected call\n");
379  return E_NOTIMPL;
380 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_domain()

static HRESULT WINAPI htmldoc2_get_domain ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 509 of file httpreq.c.

510 {
511  ok(0, "unexpected call\n");
512  return E_NOTIMPL;
513 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_embeds()

static HRESULT WINAPI htmldoc2_get_embeds ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 400 of file httpreq.c.

401 {
402  ok(0, "unexpected call\n");
403  return E_NOTIMPL;
404 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_expando()

static HRESULT WINAPI htmldoc2_get_expando ( IHTMLDocument2 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 533 of file httpreq.c.

534 {
535  ok(0, "unexpected call\n");
536  return E_NOTIMPL;
537 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_fgColor()

static HRESULT WINAPI htmldoc2_get_fgColor ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 442 of file httpreq.c.

443 {
444  ok(0, "unexpected call\n");
445  return E_NOTIMPL;
446 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_fileCreatedDate()

static HRESULT WINAPI htmldoc2_get_fileCreatedDate ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 575 of file httpreq.c.

576 {
577  ok(0, "unexpected call\n");
578  return E_NOTIMPL;
579 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_fileModifiedDate()

static HRESULT WINAPI htmldoc2_get_fileModifiedDate ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 581 of file httpreq.c.

582 {
583  ok(0, "unexpected call\n");
584  return E_NOTIMPL;
585 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_fileSize()

static HRESULT WINAPI htmldoc2_get_fileSize ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 569 of file httpreq.c.

570 {
571  ok(0, "unexpected call\n");
572  return E_NOTIMPL;
573 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_fileUpdatedDate()

static HRESULT WINAPI htmldoc2_get_fileUpdatedDate ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 587 of file httpreq.c.

588 {
589  ok(0, "unexpected call\n");
590  return E_NOTIMPL;
591 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_forms()

static HRESULT WINAPI htmldoc2_get_forms ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 340 of file httpreq.c.

341 {
342  ok(0, "unexpected call\n");
343  return E_NOTIMPL;
344 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_frames()

static HRESULT WINAPI htmldoc2_get_frames ( IHTMLDocument2 *  iface,
IHTMLFramesCollection2 **  p 
)
static

Definition at line 394 of file httpreq.c.

395 {
396  ok(0, "unexpected call\n");
397  return E_NOTIMPL;
398 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_images()

static HRESULT WINAPI htmldoc2_get_images ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 322 of file httpreq.c.

323 {
324  ok(0, "unexpected call\n");
325  return E_NOTIMPL;
326 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_lastModified()

static HRESULT WINAPI htmldoc2_get_lastModified ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 484 of file httpreq.c.

485 {
486  ok(0, "unexpected call\n");
487  return E_NOTIMPL;
488 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_linkColor()

static HRESULT WINAPI htmldoc2_get_linkColor ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 454 of file httpreq.c.

455 {
456  ok(0, "unexpected call\n");
457  return E_NOTIMPL;
458 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_links()

static HRESULT WINAPI htmldoc2_get_links ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 334 of file httpreq.c.

335 {
336  ok(0, "unexpected call\n");
337  return E_NOTIMPL;
338 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_location()

static HRESULT WINAPI htmldoc2_get_location ( IHTMLDocument2 *  iface,
IHTMLLocation **  p 
)
static

Definition at line 478 of file httpreq.c.

479 {
480  ok(0, "unexpected call\n");
481  return E_NOTIMPL;
482 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_mimeType()

static HRESULT WINAPI htmldoc2_get_mimeType ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 563 of file httpreq.c.

564 {
565  ok(0, "unexpected call\n");
566  return E_NOTIMPL;
567 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_nameProp()

static HRESULT WINAPI htmldoc2_get_nameProp ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 605 of file httpreq.c.

606 {
607  ok(0, "unexpected call\n");
608  return E_NOTIMPL;
609 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onafterupdate()

static HRESULT WINAPI htmldoc2_get_onafterupdate ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 855 of file httpreq.c.

856 {
857  ok(0, "unexpected call\n");
858  return E_NOTIMPL;
859 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onbeforeupdate()

static HRESULT WINAPI htmldoc2_get_onbeforeupdate ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 935 of file httpreq.c.

936 {
937  ok(0, "unexpected call\n");
938  return E_NOTIMPL;
939 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onclick()

static HRESULT WINAPI htmldoc2_get_onclick ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 723 of file httpreq.c.

724 {
725  ok(0, "unexpected call\n");
726  return E_NOTIMPL;
727 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_ondblclick()

static HRESULT WINAPI htmldoc2_get_ondblclick ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 735 of file httpreq.c.

736 {
737  ok(0, "unexpected call\n");
738  return E_NOTIMPL;
739 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_ondragstart()

static HRESULT WINAPI htmldoc2_get_ondragstart ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 891 of file httpreq.c.

892 {
893  ok(0, "unexpected call\n");
894  return E_NOTIMPL;
895 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onerrorupdate()

static HRESULT WINAPI htmldoc2_get_onerrorupdate ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 947 of file httpreq.c.

948 {
949  ok(0, "unexpected call\n");
950  return E_NOTIMPL;
951 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onhelp()

static HRESULT WINAPI htmldoc2_get_onhelp ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 711 of file httpreq.c.

712 {
713  ok(0, "unexpected call\n");
714  return E_NOTIMPL;
715 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onkeydown()

static HRESULT WINAPI htmldoc2_get_onkeydown ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 759 of file httpreq.c.

760 {
761  ok(0, "unexpected call\n");
762  return E_NOTIMPL;
763 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onkeypress()

static HRESULT WINAPI htmldoc2_get_onkeypress ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 771 of file httpreq.c.

772 {
773  ok(0, "unexpected call\n");
774  return E_NOTIMPL;
775 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onkeyup()

static HRESULT WINAPI htmldoc2_get_onkeyup ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 747 of file httpreq.c.

748 {
749  ok(0, "unexpected call\n");
750  return E_NOTIMPL;
751 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onmousedown()

static HRESULT WINAPI htmldoc2_get_onmousedown ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 795 of file httpreq.c.

796 {
797  ok(0, "unexpected call\n");
798  return E_NOTIMPL;
799 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onmousemove()

static HRESULT WINAPI htmldoc2_get_onmousemove ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 807 of file httpreq.c.

808 {
809  ok(0, "unexpected call\n");
810  return E_NOTIMPL;
811 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onmouseout()

static HRESULT WINAPI htmldoc2_get_onmouseout ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 819 of file httpreq.c.

820 {
821  ok(0, "unexpected call\n");
822  return E_NOTIMPL;
823 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onmouseover()

static HRESULT WINAPI htmldoc2_get_onmouseover ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 831 of file httpreq.c.

832 {
833  ok(0, "unexpected call\n");
834  return E_NOTIMPL;
835 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onmouseup()

static HRESULT WINAPI htmldoc2_get_onmouseup ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 783 of file httpreq.c.

784 {
785  ok(0, "unexpected call\n");
786  return E_NOTIMPL;
787 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onreadystatechange()

static HRESULT WINAPI htmldoc2_get_onreadystatechange ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 843 of file httpreq.c.

844 {
845  ok(0, "unexpected call\n");
846  return E_NOTIMPL;
847 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onrowenter()

static HRESULT WINAPI htmldoc2_get_onrowenter ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 879 of file httpreq.c.

880 {
881  ok(0, "unexpected call\n");
882  return E_NOTIMPL;
883 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onrowexit()

static HRESULT WINAPI htmldoc2_get_onrowexit ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 867 of file httpreq.c.

868 {
869  ok(0, "unexpected call\n");
870  return E_NOTIMPL;
871 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_onselectstart()

static HRESULT WINAPI htmldoc2_get_onselectstart ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 903 of file httpreq.c.

904 {
905  ok(0, "unexpected call\n");
906  return E_NOTIMPL;
907 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_parentWindow()

static HRESULT WINAPI htmldoc2_get_parentWindow ( IHTMLDocument2 *  iface,
IHTMLWindow2 **  p 
)
static

Definition at line 916 of file httpreq.c.

917 {
918  ok(0, "unexpected call\n");
919  return E_NOTIMPL;
920 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_plugins()

static HRESULT WINAPI htmldoc2_get_plugins ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 406 of file httpreq.c.

407 {
408  ok(0, "unexpected call\n");
409  return E_NOTIMPL;
410 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_protocol()

static HRESULT WINAPI htmldoc2_get_protocol ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 599 of file httpreq.c.

600 {
601  ok(0, "unexpected call\n");
602  return E_NOTIMPL;
603 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_readyState()

static HRESULT WINAPI htmldoc2_get_readyState ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 388 of file httpreq.c.

389 {
390  ok(0, "unexpected call\n");
391  return E_NOTIMPL;
392 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_referrer()

static HRESULT WINAPI htmldoc2_get_referrer ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 472 of file httpreq.c.

473 {
474  ok(0, "unexpected call\n");
475  return E_NOTIMPL;
476 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_Script()

static HRESULT WINAPI htmldoc2_get_Script ( IHTMLDocument2 *  iface,
IDispatch **  p 
)
static

Definition at line 297 of file httpreq.c.

298 {
299  ok(0, "unexpected call\n");
300  return E_NOTIMPL;
301 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_scripts()

static HRESULT WINAPI htmldoc2_get_scripts ( IHTMLDocument2 *  iface,
IHTMLElementCollection **  p 
)
static

Definition at line 364 of file httpreq.c.

365 {
366  ok(0, "unexpected call\n");
367  return E_NOTIMPL;
368 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_security()

static HRESULT WINAPI htmldoc2_get_security ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 593 of file httpreq.c.

594 {
595  ok(0, "unexpected call\n");
596  return E_NOTIMPL;
597 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_selection()

static HRESULT WINAPI htmldoc2_get_selection ( IHTMLDocument2 *  iface,
IHTMLSelectionObject **  p 
)
static

Definition at line 382 of file httpreq.c.

383 {
384  ok(0, "unexpected call\n");
385  return E_NOTIMPL;
386 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_styleSheets()

static HRESULT WINAPI htmldoc2_get_styleSheets ( IHTMLDocument2 *  iface,
IHTMLStyleSheetsCollection **  p 
)
static

Definition at line 922 of file httpreq.c.

924 {
925  ok(0, "unexpected call\n");
926  return E_NOTIMPL;
927 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_title()

static HRESULT WINAPI htmldoc2_get_title ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 358 of file httpreq.c.

359 {
360  ok(0, "unexpected call\n");
361  return E_NOTIMPL;
362 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_get_URL()

static HRESULT WINAPI htmldoc2_get_URL ( IHTMLDocument2 *  iface,
BSTR p 
)
static

Definition at line 496 of file httpreq.c.

497 {
498  CHECK_EXPECT2(htmldoc2_get_url);
499  *p = a2bstr("http://test.winehq.org/");
500  return S_OK;
501 }
#define CHECK_EXPECT2(func)
Definition: httpreq.c:67
static BSTR a2bstr(const char *str)
Definition: httpreq.c:133
#define S_OK
Definition: intsafe.h:59
GLfloat GLfloat p
Definition: glext.h:8902

◆ htmldoc2_get_vlinkColor()

static HRESULT WINAPI htmldoc2_get_vlinkColor ( IHTMLDocument2 *  iface,
VARIANT p 
)
static

Definition at line 466 of file httpreq.c.

467 {
468  ok(0, "unexpected call\n");
469  return E_NOTIMPL;
470 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_GetIDsOfNames()

static HRESULT WINAPI htmldoc2_GetIDsOfNames ( IHTMLDocument2 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 281 of file httpreq.c.

284 {
285  ok(0, "unexpected call\n");
286  return E_NOTIMPL;
287 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_GetTypeInfo()

static HRESULT WINAPI htmldoc2_GetTypeInfo ( IHTMLDocument2 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 274 of file httpreq.c.

276 {
277  ok(0, "unexpected call\n");
278  return E_NOTIMPL;
279 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_GetTypeInfoCount()

static HRESULT WINAPI htmldoc2_GetTypeInfoCount ( IHTMLDocument2 *  iface,
UINT pctinfo 
)
static

Definition at line 268 of file httpreq.c.

269 {
270  ok(0, "unexpected call\n");
271  return E_NOTIMPL;
272 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_Invoke()

static HRESULT WINAPI htmldoc2_Invoke ( IHTMLDocument2 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 289 of file httpreq.c.

292 {
293  ok(0, "unexpected call\n");
294  return E_NOTIMPL;
295 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_open()

static HRESULT WINAPI htmldoc2_open ( IHTMLDocument2 *  iface,
BSTR  url,
VARIANT  name,
VARIANT  features,
VARIANT  replace,
IDispatch **  pomWindowResult 
)
static

Definition at line 623 of file httpreq.c.

625 {
626  ok(0, "unexpected call\n");
627  return E_NOTIMPL;
628 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_alinkColor()

static HRESULT WINAPI htmldoc2_put_alinkColor ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 412 of file httpreq.c.

413 {
414  ok(0, "unexpected call\n");
415  return E_NOTIMPL;
416 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_bgColor()

static HRESULT WINAPI htmldoc2_put_bgColor ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 424 of file httpreq.c.

425 {
426  ok(0, "unexpected call\n");
427  return E_NOTIMPL;
428 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_charset()

static HRESULT WINAPI htmldoc2_put_charset ( IHTMLDocument2 *  iface,
BSTR  v 
)
static

Definition at line 539 of file httpreq.c.

540 {
541  ok(0, "unexpected call\n");
542  return E_NOTIMPL;
543 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_cookie()

static HRESULT WINAPI htmldoc2_put_cookie ( IHTMLDocument2 *  iface,
BSTR  v 
)
static

Definition at line 515 of file httpreq.c.

516 {
517  ok(0, "unexpected call\n");
518  return E_NOTIMPL;
519 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_defaultCharset()

static HRESULT WINAPI htmldoc2_put_defaultCharset ( IHTMLDocument2 *  iface,
BSTR  v 
)
static

Definition at line 551 of file httpreq.c.

552 {
553  ok(0, "unexpected call\n");
554  return E_NOTIMPL;
555 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_designMode()

static HRESULT WINAPI htmldoc2_put_designMode ( IHTMLDocument2 *  iface,
BSTR  v 
)
static

Definition at line 370 of file httpreq.c.

371 {
372  ok(0, "unexpected call\n");
373  return E_NOTIMPL;
374 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_domain()

static HRESULT WINAPI htmldoc2_put_domain ( IHTMLDocument2 *  iface,
BSTR  v 
)
static

Definition at line 503 of file httpreq.c.

504 {
505  ok(0, "unexpected call\n");
506  return E_NOTIMPL;
507 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_expando()

static HRESULT WINAPI htmldoc2_put_expando ( IHTMLDocument2 *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 527 of file httpreq.c.

528 {
529  ok(0, "unexpected call\n");
530  return E_NOTIMPL;
531 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_fgColor()

static HRESULT WINAPI htmldoc2_put_fgColor ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 436 of file httpreq.c.

437 {
438  ok(0, "unexpected call\n");
439  return E_NOTIMPL;
440 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_linkColor()

static HRESULT WINAPI htmldoc2_put_linkColor ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 448 of file httpreq.c.

449 {
450  ok(0, "unexpected call\n");
451  return E_NOTIMPL;
452 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onafterupdate()

static HRESULT WINAPI htmldoc2_put_onafterupdate ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 849 of file httpreq.c.

850 {
851  ok(0, "unexpected call\n");
852  return E_NOTIMPL;
853 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onbeforeupdate()

static HRESULT WINAPI htmldoc2_put_onbeforeupdate ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 929 of file httpreq.c.

930 {
931  ok(0, "unexpected call\n");
932  return E_NOTIMPL;
933 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onclick()

static HRESULT WINAPI htmldoc2_put_onclick ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 717 of file httpreq.c.

718 {
719  ok(0, "unexpected call\n");
720  return E_NOTIMPL;
721 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_ondblclick()

static HRESULT WINAPI htmldoc2_put_ondblclick ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 729 of file httpreq.c.

730 {
731  ok(0, "unexpected call\n");
732  return E_NOTIMPL;
733 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_ondragstart()

static HRESULT WINAPI htmldoc2_put_ondragstart ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 885 of file httpreq.c.

886 {
887  ok(0, "unexpected call\n");
888  return E_NOTIMPL;
889 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onerrorupdate()

static HRESULT WINAPI htmldoc2_put_onerrorupdate ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 941 of file httpreq.c.

942 {
943  ok(0, "unexpected call\n");
944  return E_NOTIMPL;
945 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onhelp()

static HRESULT WINAPI htmldoc2_put_onhelp ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 705 of file httpreq.c.

706 {
707  ok(0, "unexpected call\n");
708  return E_NOTIMPL;
709 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onkeydown()

static HRESULT WINAPI htmldoc2_put_onkeydown ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 753 of file httpreq.c.

754 {
755  ok(0, "unexpected call\n");
756  return E_NOTIMPL;
757 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onkeypress()

static HRESULT WINAPI htmldoc2_put_onkeypress ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 765 of file httpreq.c.

766 {
767  ok(0, "unexpected call\n");
768  return E_NOTIMPL;
769 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onkeyup()

static HRESULT WINAPI htmldoc2_put_onkeyup ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 741 of file httpreq.c.

742 {
743  ok(0, "unexpected call\n");
744  return E_NOTIMPL;
745 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onmousedown()

static HRESULT WINAPI htmldoc2_put_onmousedown ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 789 of file httpreq.c.

790 {
791  ok(0, "unexpected call\n");
792  return E_NOTIMPL;
793 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onmousemove()

static HRESULT WINAPI htmldoc2_put_onmousemove ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 801 of file httpreq.c.

802 {
803  ok(0, "unexpected call\n");
804  return E_NOTIMPL;
805 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onmouseout()

static HRESULT WINAPI htmldoc2_put_onmouseout ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 813 of file httpreq.c.

814 {
815  ok(0, "unexpected call\n");
816  return E_NOTIMPL;
817 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onmouseover()

static HRESULT WINAPI htmldoc2_put_onmouseover ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 825 of file httpreq.c.

826 {
827  ok(0, "unexpected call\n");
828  return E_NOTIMPL;
829 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onmouseup()

static HRESULT WINAPI htmldoc2_put_onmouseup ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 777 of file httpreq.c.

778 {
779  ok(0, "unexpected call\n");
780  return E_NOTIMPL;
781 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onreadystatechange()

static HRESULT WINAPI htmldoc2_put_onreadystatechange ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 837 of file httpreq.c.

838 {
839  ok(0, "unexpected call\n");
840  return E_NOTIMPL;
841 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onrowenter()

static HRESULT WINAPI htmldoc2_put_onrowenter ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 873 of file httpreq.c.

874 {
875  ok(0, "unexpected call\n");
876  return E_NOTIMPL;
877 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onrowexit()

static HRESULT WINAPI htmldoc2_put_onrowexit ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 861 of file httpreq.c.

862 {
863  ok(0, "unexpected call\n");
864  return E_NOTIMPL;
865 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_onselectstart()

static HRESULT WINAPI htmldoc2_put_onselectstart ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 897 of file httpreq.c.

898 {
899  ok(0, "unexpected call\n");
900  return E_NOTIMPL;
901 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_title()

static HRESULT WINAPI htmldoc2_put_title ( IHTMLDocument2 *  iface,
BSTR  v 
)
static

Definition at line 352 of file httpreq.c.

353 {
354  ok(0, "unexpected call\n");
355  return E_NOTIMPL;
356 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_URL()

static HRESULT WINAPI htmldoc2_put_URL ( IHTMLDocument2 *  iface,
BSTR  v 
)
static

Definition at line 490 of file httpreq.c.

491 {
492  ok(0, "unexpected call\n");
493  return E_NOTIMPL;
494 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_put_vlinkColor()

static HRESULT WINAPI htmldoc2_put_vlinkColor ( IHTMLDocument2 *  iface,
VARIANT  v 
)
static

Definition at line 460 of file httpreq.c.

461 {
462  ok(0, "unexpected call\n");
463  return E_NOTIMPL;
464 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_queryCommandEnabled()

static HRESULT WINAPI htmldoc2_queryCommandEnabled ( IHTMLDocument2 *  iface,
BSTR  cmdID,
VARIANT_BOOL pfRet 
)
static

Definition at line 649 of file httpreq.c.

651 {
652  ok(0, "unexpected call\n");
653  return E_NOTIMPL;
654 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_queryCommandIndeterm()

static HRESULT WINAPI htmldoc2_queryCommandIndeterm ( IHTMLDocument2 *  iface,
BSTR  cmdID,
VARIANT_BOOL pfRet 
)
static

Definition at line 663 of file httpreq.c.

665 {
666  ok(0, "unexpected call\n");
667  return E_NOTIMPL;
668 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_queryCommandState()

static HRESULT WINAPI htmldoc2_queryCommandState ( IHTMLDocument2 *  iface,
BSTR  cmdID,
VARIANT_BOOL pfRet 
)
static

Definition at line 656 of file httpreq.c.

658 {
659  ok(0, "unexpected call\n");
660  return E_NOTIMPL;
661 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_queryCommandSupported()

static HRESULT WINAPI htmldoc2_queryCommandSupported ( IHTMLDocument2 *  iface,
BSTR  cmdID,
VARIANT_BOOL pfRet 
)
static

Definition at line 642 of file httpreq.c.

644 {
645  ok(0, "unexpected call\n");
646  return E_NOTIMPL;
647 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_queryCommandText()

static HRESULT WINAPI htmldoc2_queryCommandText ( IHTMLDocument2 *  iface,
BSTR  cmdID,
BSTR pfRet 
)
static

Definition at line 670 of file httpreq.c.

672 {
673  ok(0, "unexpected call\n");
674  return E_NOTIMPL;
675 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_queryCommandValue()

static HRESULT WINAPI htmldoc2_queryCommandValue ( IHTMLDocument2 *  iface,
BSTR  cmdID,
VARIANT pfRet 
)
static

Definition at line 677 of file httpreq.c.

679 {
680  ok(0, "unexpected call\n");
681  return E_NOTIMPL;
682 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_QueryInterface()

static HRESULT WINAPI htmldoc2_QueryInterface ( IHTMLDocument2 *  iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 251 of file httpreq.c.

252 {
253  trace("\n");
254  *ppvObject = NULL;
255  return E_NOINTERFACE;
256 }
#define E_NOINTERFACE
Definition: winerror.h:2364
smooth NULL
Definition: ftsmooth.c:416
#define trace
Definition: atltest.h:70
REFIID LPVOID * ppvObject
Definition: precomp.h:44

◆ htmldoc2_Release()

static ULONG WINAPI htmldoc2_Release ( IHTMLDocument2 *  iface)
static

Definition at line 263 of file httpreq.c.

264 {
265  return 1;
266 }

◆ htmldoc2_toString()

static HRESULT WINAPI htmldoc2_toString ( IHTMLDocument2 *  iface,
BSTR String 
)
static

Definition at line 953 of file httpreq.c.

954 {
955  ok(0, "unexpected call\n");
956  return E_NOTIMPL;
957 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_write()

static HRESULT WINAPI htmldoc2_write ( IHTMLDocument2 *  iface,
SAFEARRAY psarray 
)
static

Definition at line 611 of file httpreq.c.

612 {
613  ok(0, "unexpected call\n");
614  return E_NOTIMPL;
615 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmldoc2_writeln()

static HRESULT WINAPI htmldoc2_writeln ( IHTMLDocument2 *  iface,
SAFEARRAY psarray 
)
static

Definition at line 617 of file httpreq.c.

618 {
619  ok(0, "unexpected call\n");
620  return E_NOTIMPL;
621 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_AddRef()

static ULONG WINAPI htmlecoll_AddRef ( IHTMLElementCollection *  iface)
static

Definition at line 157 of file httpreq.c.

158 {
159  return 2;
160 }

◆ htmlecoll_get__newEnum()

static HRESULT WINAPI htmlecoll_get__newEnum ( IHTMLElementCollection *  iface,
IUnknown **  p 
)
static

Definition at line 214 of file httpreq.c.

215 {
216  ok(0, "unexpected call\n");
217  return E_NOTIMPL;
218 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_get_length()

static HRESULT WINAPI htmlecoll_get_length ( IHTMLElementCollection *  iface,
LONG v 
)
static

Definition at line 208 of file httpreq.c.

209 {
210  CHECK_EXPECT2(collection_get_length);
211  return E_NOTIMPL;
212 }
#define CHECK_EXPECT2(func)
Definition: httpreq.c:67
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_GetIDsOfNames()

static HRESULT WINAPI htmlecoll_GetIDsOfNames ( IHTMLElementCollection *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 180 of file httpreq.c.

183 {
184  ok(0, "unexpected call\n");
185  return E_NOTIMPL;
186 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_GetTypeInfo()

static HRESULT WINAPI htmlecoll_GetTypeInfo ( IHTMLElementCollection *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 173 of file httpreq.c.

175 {
176  ok(0, "unexpected call\n");
177  return E_NOTIMPL;
178 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_GetTypeInfoCount()

static HRESULT WINAPI htmlecoll_GetTypeInfoCount ( IHTMLElementCollection *  iface,
UINT pctinfo 
)
static

Definition at line 167 of file httpreq.c.

168 {
169  ok(0, "unexpected call\n");
170  return E_NOTIMPL;
171 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_Invoke()

static HRESULT WINAPI htmlecoll_Invoke ( IHTMLElementCollection *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 188 of file httpreq.c.

191 {
192  ok(0, "unexpected call\n");
193  return E_NOTIMPL;
194 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_item()

static HRESULT WINAPI htmlecoll_item ( IHTMLElementCollection *  iface,
VARIANT  name,
VARIANT  index,
IDispatch **  pdisp 
)
static

Definition at line 220 of file httpreq.c.

221 {
222  ok(0, "unexpected call\n");
223  return E_NOTIMPL;
224 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_put_length()

static HRESULT WINAPI htmlecoll_put_length ( IHTMLElementCollection *  iface,
LONG  v 
)
static

Definition at line 202 of file httpreq.c.

203 {
204  ok(0, "unexpected call\n");
205  return E_NOTIMPL;
206 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_QueryInterface()

static HRESULT WINAPI htmlecoll_QueryInterface ( IHTMLElementCollection *  iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 150 of file httpreq.c.

151 {
152  ok(0, "unexpected call\n");
153  *ppvObject = NULL;
154  return E_NOINTERFACE;
155 }
#define E_NOINTERFACE
Definition: winerror.h:2364
smooth NULL
Definition: ftsmooth.c:416
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define ok(value,...)
Definition: atltest.h:57

◆ htmlecoll_Release()

static ULONG WINAPI htmlecoll_Release ( IHTMLElementCollection *  iface)
static

Definition at line 162 of file httpreq.c.

163 {
164  return 1;
165 }

◆ htmlecoll_tags()

static HRESULT WINAPI htmlecoll_tags ( IHTMLElementCollection *  iface,
VARIANT  tagName,
IDispatch **  pdisp 
)
static

Definition at line 226 of file httpreq.c.

227 {
228  ok(0, "unexpected call\n");
229  return E_NOTIMPL;
230 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ htmlecoll_toString()

static HRESULT WINAPI htmlecoll_toString ( IHTMLElementCollection *  iface,
BSTR String 
)
static

Definition at line 196 of file httpreq.c.

197 {
198  ok(0, "unexpected call\n");
199  return E_NOTIMPL;
200 }
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ impl_from_IDispatch()

static dispevent* impl_from_IDispatch ( IDispatch iface)
inlinestatic

Definition at line 1223 of file httpreq.c.

1224 {
1225  return CONTAINING_RECORD(iface, dispevent, IDispatch_iface);
1226 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by dispevent_AddRef(), and dispevent_Release().

◆ set_safety_opt()

static void set_safety_opt ( IUnknown unk,
DWORD  mask,
DWORD  opts 
)
static

Definition at line 1363 of file httpreq.c.

1364 {
1365  IObjectSafety *obj_safety;
1366  HRESULT hr;
1367 
1368  hr = IUnknown_QueryInterface(unk, &IID_IObjectSafety, (void**)&obj_safety);
1369  ok(hr == S_OK, "Could not get IObjectSafety iface: %08x\n", hr);
1370 
1371  hr = IObjectSafety_SetInterfaceSafetyOptions(obj_safety, &IID_IDispatch, mask, mask&opts);
1372  ok(hr == S_OK, "SetInterfaceSafetyOptions failed: %08x\n", hr);
1373 
1374  IObjectSafety_Release(obj_safety);
1375 }
HRESULT hr
Definition: shlfolder.c:183
GLenum GLint GLuint mask
Definition: glext.h:6028
LONG HRESULT
Definition: typedefs.h:78
const GUID IID_IDispatch
#define S_OK
Definition: intsafe.h:59
#define ok(value,...)
Definition: atltest.h:57

Referenced by test_safe_httpreq().

◆ set_xhr_site()

static void set_xhr_site ( IXMLHttpRequest xhr)
static

Definition at line 1377 of file httpreq.c.

1378 {
1379  IObjectWithSite *obj_site;
1380  HRESULT hr;
1381 
1382  hr = IXMLHttpRequest_QueryInterface(xhr, &IID_IObjectWithSite, (void**)&obj_site);
1383  ok(hr == S_OK, "Could not get IObjectWithSite iface: %08x\n", hr);
1384 
1386 
1387  SET_EXPECT(site_qi_IServiceProvider);
1388  SET_EXPECT(sp_queryservice_SID_SBindHost);
1389  SET_EXPECT(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1390  SET_EXPECT(sp_queryservice_SID_secmgr_htmldoc2);
1391  SET_EXPECT(sp_queryservice_SID_secmgr_xmldomdoc);
1392  SET_EXPECT(sp_queryservice_SID_secmgr_secmgr);
1393 
1394  /* calls to IHTMLDocument2 */
1396  SET_EXPECT(collection_get_length);
1397  SET_EXPECT(htmldoc2_get_url);
1398 
1399  SET_EXPECT(site_qi_IXMLDOMDocument);
1400  SET_EXPECT(site_qi_IOleClientSite);
1401 
1402  hr = IObjectWithSite_SetSite(obj_site, &testsite);
1403  EXPECT_HR(hr, S_OK);
1404 
1405  CHECK_CALLED(site_qi_IServiceProvider);
1406 todo_wine
1407  CHECK_CALLED(sp_queryservice_SID_SBindHost);
1408  CHECK_CALLED(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1409  CHECK_CALLED(sp_queryservice_SID_secmgr_htmldoc2);
1410 todo_wine
1411  CHECK_CALLED(sp_queryservice_SID_secmgr_xmldomdoc);
1412  /* this one isn't very reliable
1413  CHECK_CALLED(sp_queryservice_SID_secmgr_secmgr); */
1414 todo_wine {
1416  CHECK_CALLED(collection_get_length);
1417 }
1418  CHECK_CALLED(htmldoc2_get_url);
1419 
1420 todo_wine {
1421  CHECK_CALLED(site_qi_IXMLDOMDocument);
1422  CHECK_CALLED(site_qi_IOleClientSite);
1423 }
1424 
1426 
1427  IObjectWithSite_Release(obj_site);
1428 }
static IHTMLXMLHttpRequest * xhr
#define TRUE
Definition: types.h:120
HRESULT hr
Definition: shlfolder.c:183
#define SET_EXPECT(func)
Definition: httpreq.c:64
static HRESULT WINAPI htmldoc2_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
Definition: httpreq.c:303
#define CHECK_CALLED(func)
Definition: httpreq.c:74
static IUnknown testsite
Definition: httpreq.c:1213
LONG HRESULT
Definition: typedefs.h:78
const IID IID_IObjectWithSite
#define todo_wine
Definition: test.h:162
static BOOL g_enablecallchecks
Definition: httpreq.c:59
#define S_OK
Definition: intsafe.h:59
#define EXPECT_HR(hr, hr_exp)
Definition: httpreq.c:41
#define ok(value,...)
Definition: atltest.h:57

Referenced by test_safe_httpreq(), and test_XMLHTTP().

◆ site_AddRef()

static ULONG WINAPI site_AddRef ( IUnknown iface)
static

Definition at line 1196 of file httpreq.c.

1197 {
1198  return 2;
1199 }

◆ site_QueryInterface()

static HRESULT WINAPI site_QueryInterface ( IUnknown iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 1173 of file httpreq.c.

1174 {
1175  *ppvObject = NULL;
1176 
1177  if (IsEqualGUID(riid, &IID_IServiceProvider))
1178  CHECK_EXPECT2(site_qi_IServiceProvider);
1179 
1180  if (IsEqualGUID(riid, &IID_IXMLDOMDocument))
1181  CHECK_EXPECT2(site_qi_IXMLDOMDocument);
1182 
1184  CHECK_EXPECT2(site_qi_IOleClientSite);
1185 
1186  if (IsEqualGUID(riid, &IID_IUnknown))
1187  *ppvObject = iface;
1188  else if (IsEqualGUID(riid, &IID_IServiceProvider))
1189  *ppvObject = &testprov;
1190 
1191  if (*ppvObject) IUnknown_AddRef(iface);
1192 
1193  return *ppvObject ? S_OK : E_NOINTERFACE;
1194 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
const GUID IID_IOleClientSite
#define CHECK_EXPECT2(func)
Definition: httpreq.c:67
smooth NULL
Definition: ftsmooth.c:416
const GUID IID_IUnknown
static IServiceProvider testprov
Definition: httpreq.c:1171
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ site_Release()

static ULONG WINAPI site_Release ( IUnknown iface)
static

Definition at line 1201 of file httpreq.c.

1202 {
1203  return 1;
1204 }

◆ sp_AddRef()

static ULONG WINAPI sp_AddRef ( IServiceProvider iface)
static

Definition at line 1104 of file httpreq.c.

1105 {
1106  return 2;
1107 }

◆ sp_QueryInterface()

static HRESULT WINAPI sp_QueryInterface ( IServiceProvider iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 1087 of file httpreq.c.

1088 {
1089  *ppvObject = NULL;
1090 
1091  if (IsEqualGUID(riid, &IID_IUnknown) ||
1092  IsEqualGUID(riid, &IID_IServiceProvider))
1093  {
1094  *ppvObject = iface;
1095  IServiceProvider_AddRef(iface);
1096  return S_OK;
1097  }
1098 
1099  ok(0, "unexpected query interface: %s\n", wine_dbgstr_guid(riid));
1100 
1101  return E_NOINTERFACE;
1102 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
const char * wine_dbgstr_guid(const GUID *guid)
smooth NULL
Definition: ftsmooth.c:416
const GUID IID_IUnknown
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define S_OK
Definition: intsafe.h:59
#define ok(value,...)
Definition: atltest.h:57
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ sp_QueryService()

static HRESULT WINAPI sp_QueryService ( IServiceProvider iface,
REFGUID  service,
REFIID  riid,
void **  obj 
)
static

Definition at line 1114 of file httpreq.c.

1115 {
1116  *obj = NULL;
1117 
1118  if (IsEqualGUID(service, &SID_SBindHost) &&
1119  IsEqualGUID(riid, &IID_IBindHost))
1120  {
1121  CHECK_EXPECT2(sp_queryservice_SID_SBindHost);
1122  }
1123  else if (IsEqualGUID(service, &SID_SContainerDispatch) &&
1124  IsEqualGUID(riid, &IID_IHTMLDocument2))
1125  {
1126  CHECK_EXPECT2(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1127  }
1128  else if (IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1129  IsEqualGUID(riid, &IID_IHTMLDocument2))
1130  {
1131  CHECK_EXPECT2(sp_queryservice_SID_secmgr_htmldoc2);
1132  *obj = &htmldoc2;
1133  return S_OK;
1134  }
1135  else if (IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1136  IsEqualGUID(riid, &IID_IXMLDOMDocument))
1137  {
1138  CHECK_EXPECT2(sp_queryservice_SID_secmgr_xmldomdoc);
1139  }
1140  else if (IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1141  IsEqualGUID(riid, &IID_IInternetHostSecurityManager))
1142  {
1143  CHECK_EXPECT2(sp_queryservice_SID_secmgr_secmgr);
1144  }
1145  else if (IsEqualGUID(service, &SID_UnknownSID) &&
1146  IsEqualGUID(riid, &IID_IStream))
1147  {
1148  /* FIXME: unidentified service id */
1149  }
1150  else if ((IsEqualGUID(service, &IID_IInternetProtocol) && IsEqualGUID(riid, &IID_IInternetProtocol)) ||
1151  (IsEqualGUID(service, &IID_IHttpNegotiate2) && IsEqualGUID(riid, &IID_IHttpNegotiate2)) ||
1152  (IsEqualGUID(service, &IID_IGetBindHandle) && IsEqualGUID(riid, &IID_IGetBindHandle)) ||
1153  (IsEqualGUID(service, &IID_IBindStatusCallback) && IsEqualGUID(riid, &IID_IBindStatusCallback)) ||
1154  (IsEqualGUID(service, &IID_IWindowForBindingUI) && IsEqualGUID(riid, &IID_IWindowForBindingUI)))
1155  {
1156  }
1157  else
1158  ok(0, "unexpected request: sid %s, riid %s\n", wine_dbgstr_guid(service), wine_dbgstr_guid(riid));
1159 
1160  return E_NOTIMPL;
1161 }
REFIID riid
Definition: precomp.h:44
#define CHECK_EXPECT2(func)
Definition: httpreq.c:67
const char * wine_dbgstr_guid(const GUID *guid)
smooth NULL
Definition: ftsmooth.c:416
#define S_OK
Definition: intsafe.h:59
#define ok(value,...)
Definition: atltest.h:57
#define E_NOTIMPL
Definition: ddrawi.h:99
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
static IHTMLDocument2 htmldoc2
Definition: httpreq.c:1085

◆ sp_Release()

static ULONG WINAPI sp_Release ( IServiceProvider iface)
static

Definition at line 1109 of file httpreq.c.

1110 {
1111  return 1;
1112 }

◆ START_TEST()

START_TEST ( httpreq  )

Definition at line 1912 of file httpreq.c.

1913 {
1915 
1916  CoInitialize(NULL);
1917 
1918  if (!(xhr = create_xhr()))
1919  {
1920  win_skip("IXMLHTTPRequest is not available\n");
1921  CoUninitialize();
1922  return;
1923  }
1924 
1925  IXMLHttpRequest_Release(xhr);
1926 
1927  test_XMLHTTP();
1928  test_server_xhr();
1931 
1932  CoUninitialize();
1933 }
static IHTMLXMLHttpRequest * xhr
static void test_safe_httpreq(void)
Definition: httpreq.c:1849
static void test_server_xhr(void)
Definition: httpreq.c:1805
smooth NULL
Definition: ftsmooth.c:416
static IXMLHttpRequest * create_xhr(void)
Definition: httpreq.c:1342
static void test_supporterrorinfo(void)
Definition: httpreq.c:1869
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
Definition: compobj.c:2067
static void test_XMLHTTP(void)
Definition: httpreq.c:1458
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
Definition: compobj.c:1964
#define win_skip
Definition: test.h:149

◆ strcmp_wa()

static int strcmp_wa ( const WCHAR strw,
const char stra 
)
static

Definition at line 97 of file httpreq.c.

98 {
99  WCHAR buf[512];
100  MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, ARRAY_SIZE(buf));
101  return lstrcmpW(strw, buf);
102 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define CP_ACP
Definition: compat.h:99
int WINAPI lstrcmpW(LPCWSTR lpString1, LPCWSTR lpString2)
Definition: lstring.c:170
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define ARRAY_SIZE(a)
Definition: main.h:24
#define MultiByteToWideChar
Definition: compat.h:100
static const char * strw(LPCWSTR x)
Definition: actctx.c:49

Referenced by test_server_xhr().

◆ test_safe_httpreq()

static void test_safe_httpreq ( void  )
static

Definition at line 1849 of file httpreq.c.

1850 {
1852 
1853  xhr = create_xhr();
1854 
1855  set_safety_opt((IUnknown*)xhr, INTERFACESAFE_FOR_UNTRUSTED_DATA, -1);
1856  set_xhr_site(xhr);
1857 
1858  /* different scheme */
1859  test_open(xhr, "GET", "https://test.winehq.org/tests/hello.html", E_ACCESSDENIED);
1860 
1861  /* different host */
1862  test_open(xhr, "GET", "http://tests.winehq.org/tests/hello.html", E_ACCESSDENIED);
1863  test_open(xhr, "GET", "http://www.test.winehq.org/tests/hello.html", E_ACCESSDENIED);
1864 
1865  IXMLHttpRequest_Release(xhr);
1866  free_bstrs();
1867 }
static IHTMLXMLHttpRequest * xhr
#define E_ACCESSDENIED
Definition: winerror.h:2849
static void free_bstrs(void)
Definition: httpreq.c:125
static void set_safety_opt(IUnknown *unk, DWORD mask, DWORD opts)
Definition: httpreq.c:1363
static IXMLHttpRequest * create_xhr(void)
Definition: httpreq.c:1342
#define test_open(a, b, c, d)
Definition: httpreq.c:1430
static void set_xhr_site(IXMLHttpRequest *xhr)
Definition: httpreq.c:1377

Referenced by START_TEST().

◆ test_server_xhr()

static void test_server_xhr ( void  )
static

Definition at line 1805 of file httpreq.c.

1806 {
1807  IServerXMLHTTPRequest *xhr;
1808  BSTR response;
1809  VARIANT body;
1810  HRESULT hr;
1811 
1812  /* GET request */
1813  xhr = create_server_xhr();
1814 
1815  test_server_open(xhr, "GET", xmltestA, S_OK);
1816 
1817  V_VT(&body) = VT_EMPTY;
1818 
1819  hr = IServerXMLHTTPRequest_send(xhr, body);
1820  if (hr == INET_E_RESOURCE_NOT_FOUND)
1821  {
1822  skip("No connection could be made with test.winehq.org\n");
1823  IServerXMLHTTPRequest_Release(xhr);
1824  return;
1825  }
1826  ok(hr == S_OK, "send failed: %08x\n", hr);
1827 
1828  hr = IServerXMLHTTPRequest_get_responseText(xhr, &response);
1829  ok(hr == S_OK, "get_responseText failed: %08x\n", hr);
1830  ok(!strcmp_wa(response, xmltestbodyA), "got %s\n", wine_dbgstr_w(response));
1831  SysFreeString(response);
1832 
1833  IServerXMLHTTPRequest_Release(xhr);
1834 
1835  /* invalid host */
1836  xhr = create_server_xhr();
1837 
1838  test_server_open(xhr, "GET", "http://invalid.host.test.winehq.org/test/path", S_OK);
1839 
1840  V_VT(&body) = VT_EMPTY;
1841  hr = IServerXMLHTTPRequest_send(xhr, body);
1842  todo_wine
1843  ok(hr == WININET_E_NAME_NOT_RESOLVED, "send to invalid host returned %#x.\n", hr);
1844 
1845  IServerXMLHTTPRequest_Release(xhr);
1846  free_bstrs();
1847 }
static IHTMLXMLHttpRequest * xhr
HRESULT hr
Definition: shlfolder.c:183
static int strcmp_wa(const WCHAR *strw, const char *stra)
Definition: httpreq.c:97
char * wine_dbgstr_w(const wchar_t *wstr)
Definition: atltest.h:87
OLECHAR * BSTR
Definition: compat.h:1942
static void free_bstrs(void)
Definition: httpreq.c:125
static const char xmltestA[]
Definition: httpreq.c:53
#define test_server_open(a, b, c, d)
Definition: httpreq.c:1444
LONG HRESULT
Definition: typedefs.h:78
static IServerXMLHTTPRequest * create_server_xhr(void)
Definition: httpreq.c:1353
#define todo_wine
Definition: test.h:162
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59
#define WININET_E_NAME_NOT_RESOLVED
Definition: winerror.h:3271
#define ok(value,...)
Definition: atltest.h:57
static const void * body(MD5_CTX *ctx, const void *data, unsigned long size)
Definition: md5.c:100
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
#define skip(...)
Definition: atltest.h:64
static const CHAR xmltestbodyA[]
Definition: httpreq.c:54

Referenced by START_TEST().

◆ test_supporterrorinfo()

static void test_supporterrorinfo ( void  )
static

Definition at line 1869 of file httpreq.c.

1870 {
1871  HRESULT hr;
1873  IServerXMLHTTPRequest *server_xhr;
1874  ISupportErrorInfo *errorinfo, *errorinfo2;
1875 
1876  xhr = create_xhr();
1877 
1878  EXPECT_REF(xhr, 1);
1879  hr = IXMLHttpRequest_QueryInterface(xhr, &IID_ISupportErrorInfo, (void **)&errorinfo);
1880  ok(hr == S_OK, "Failed to get ISupportErrorInfo, hr %#x.\n", hr);
1881  EXPECT_REF(xhr, 2);
1882 
1883  hr = IXMLHttpRequest_QueryInterface(xhr, &IID_ISupportErrorInfo, (void **)&errorinfo2);
1884  ok(hr == S_OK, "Failed to get ISupportErrorInfo, hr %#x.\n", hr);
1885  ok(errorinfo == errorinfo2, "Unexpected error info instance.\n");
1886  EXPECT_REF(xhr, 3);
1887 
1888  ISupportErrorInfo_Release(errorinfo2);
1889  ISupportErrorInfo_Release(errorinfo);
1890 
1891  IXMLHttpRequest_Release(xhr);
1892 
1893  /* ServerXMLHTTP */
1894  server_xhr = create_server_xhr();
1895 
1896  EXPECT_REF(server_xhr, 1);
1897  hr = IServerXMLHTTPRequest_QueryInterface(server_xhr, &IID_ISupportErrorInfo, (void **)&errorinfo);
1898  ok(hr == S_OK, "Failed to get ISupportErrorInfo, hr %#x.\n", hr);
1899  EXPECT_REF(server_xhr, 2);
1900 
1901  hr = IServerXMLHTTPRequest_QueryInterface(server_xhr, &IID_ISupportErrorInfo, (void **)&errorinfo2);
1902  ok(hr == S_OK, "Failed to get ISupportErrorInfo, hr %#x.\n", hr);
1903  ok(errorinfo == errorinfo2, "Unexpected error info instance.\n");
1904  EXPECT_REF(server_xhr, 3);
1905 
1906  ISupportErrorInfo_Release(errorinfo2);
1907  ISupportErrorInfo_Release(errorinfo);
1908 
1909  IServerXMLHTTPRequest_Release(server_xhr);
1910 }
static IHTMLXMLHttpRequest * xhr
HRESULT hr
Definition: shlfolder.c:183
LONG HRESULT
Definition: typedefs.h:78
static IServerXMLHTTPRequest * create_server_xhr(void)
Definition: httpreq.c:1353
static IXMLHttpRequest * create_xhr(void)
Definition: httpreq.c:1342
#define S_OK
Definition: intsafe.h:59
#define ok(value,...)
Definition: atltest.h:57
#define EXPECT_REF(node, ref)
Definition: httpreq.c:44

Referenced by START_TEST().

◆ test_XMLHTTP()

static void test_XMLHTTP ( void  )
static

Definition at line 1458 of file httpreq.c.

1459 {
1460  static const char bodyA[] = "mode=Test";
1461  static const char urlA[] = "http://test.winehq.org/tests/post.php";
1462  static const char referertesturl[] = "http://test.winehq.org/tests/referer.php";
1463  static const WCHAR wszExpectedResponse[] = {'F','A','I','L','E','D',0};
1464  static const WCHAR norefererW[] = {'n','o',' ','r','e','f','e','r','e','r',' ','s','e','t',0};
1465 
1467  IObjectWithSite *obj_site, *obj_site2;
1468  BSTR bstrResponse, str, str1;
1469  VARIANT varbody;
1470  VARIANT dummy;
1471  LONG state, status, bound;
1472  IDispatch *event;
1473  void *ptr;
1474  HRESULT hr;
1475  HGLOBAL g;
1476 
1477  xhr = create_xhr();
1478 
1479  VariantInit(&dummy);
1480  V_VT(&dummy) = VT_ERROR;
1482 
1483  hr = IXMLHttpRequest_put_onreadystatechange(xhr, NULL);
1484  EXPECT_HR(hr, S_OK);
1485 
1486  hr = IXMLHttpRequest_abort(xhr);
1487  EXPECT_HR(hr, S_OK);
1488 
1489  V_VT(&varbody) = VT_I2;
1490  V_I2(&varbody) = 1;
1491  hr = IXMLHttpRequest_get_responseBody(xhr, &varbody);
1493  ok(V_VT(&varbody) == VT_EMPTY, "got type %d\n", V_VT(&varbody));
1494 
1495  V_VT(&varbody) = VT_I2;
1496  V_I2(&varbody) = 1;
1497  hr = IXMLHttpRequest_get_responseStream(xhr, &varbody);
1499  ok(V_VT(&varbody) == VT_EMPTY, "got type %d\n", V_VT(&varbody));
1500 
1501  /* send before open */
1502  hr = IXMLHttpRequest_send(xhr, dummy);
1503  ok(hr == E_FAIL || broken(hr == E_UNEXPECTED) /* win2k */, "got 0x%08x\n", hr);
1504 
1505  /* initial status code */
1506  hr = IXMLHttpRequest_get_status(xhr, NULL);
1507  ok(hr == E_POINTER || broken(hr == E_INVALIDARG) /* <win8 */, "got 0x%08x\n", hr);
1508 
1509  status = 0xdeadbeef;
1510  hr = IXMLHttpRequest_get_status(xhr, &status);
1511  ok(hr == E_FAIL || broken(hr == E_UNEXPECTED) /* win2k */, "got 0x%08x\n", hr);
1512  ok(status == READYSTATE_UNINITIALIZED || broken(status == 0xdeadbeef) /* <win8 */, "got %d\n", status);
1513 
1514  hr = IXMLHttpRequest_get_statusText(xhr, &str);
1515  ok(hr == E_FAIL, "got 0x%08x\n", hr);
1516 
1517  /* invalid parameters */
1519  test_open(xhr, "POST", NULL, E_INVALIDARG);
1520  test_open(xhr, NULL, urlA, E_INVALIDARG);
1521 
1522  hr = IXMLHttpRequest_setRequestHeader(xhr, NULL, NULL);
1524 
1525  hr = IXMLHttpRequest_setRequestHeader(xhr, _bstr_("header1"), NULL);
1526  ok(hr == E_FAIL || broken(hr == E_UNEXPECTED) /* win2k */, "got 0x%08x\n", hr);
1527 
1528  hr = IXMLHttpRequest_setRequestHeader(xhr, NULL, _bstr_("value1"));
1530 
1531  hr = IXMLHttpRequest_setRequestHeader(xhr, _bstr_("header1"), _bstr_("value1"));
1532  ok(hr == E_FAIL || broken(hr == E_UNEXPECTED) /* win2k */, "got 0x%08x\n", hr);
1533 
1534  hr = IXMLHttpRequest_get_readyState(xhr, NULL);
1535  ok(hr == E_POINTER || broken(hr == E_INVALIDARG) /* <win8 */, "got 0x%08x\n", hr);
1536 
1537  state = -1;
1538  hr = IXMLHttpRequest_get_readyState(xhr, &state);
1539  EXPECT_HR(hr, S_OK);
1540  ok(state == READYSTATE_UNINITIALIZED, "got %d, expected READYSTATE_UNINITIALIZED\n", state);
1541 
1542  httpreq = xhr;
1543  event = create_dispevent();
1544 
1545  EXPECT_REF(event, 1);
1546  hr = IXMLHttpRequest_put_onreadystatechange(xhr, event);
1547  EXPECT_HR(hr, S_OK);
1548  EXPECT_REF(event, 2);
1549 
1551 
1552  test_open(xhr, "POST", urlA, S_OK);
1553 
1554  ok(g_unexpectedcall == 0, "unexpected disp event call\n");
1555  ok(g_expectedcall == 1 || broken(g_expectedcall == 0) /* win2k */, "no expected disp event call\n");
1556 
1557  /* status code after ::open() */
1558  status = 0xdeadbeef;
1559  hr = IXMLHttpRequest_get_status(xhr, &status);
1560  ok(hr == E_FAIL || broken(hr == E_UNEXPECTED) /* win2k */, "got 0x%08x\n", hr);
1561  ok(status == READYSTATE_UNINITIALIZED || broken(status == 0xdeadbeef) /* <win8 */, "got %d\n", status);
1562 
1563  state = -1;
1564  hr = IXMLHttpRequest_get_readyState(xhr, &state);
1565  EXPECT_HR(hr, S_OK);
1566  ok(state == READYSTATE_LOADING, "got %d, expected READYSTATE_LOADING\n", state);
1567 
1568  hr = IXMLHttpRequest_abort(xhr);
1569  EXPECT_HR(hr, S_OK);
1570 
1571  state = -1;
1572  hr = IXMLHttpRequest_get_readyState(xhr, &state);
1573  EXPECT_HR(hr, S_OK);
1574  ok(state == READYSTATE_UNINITIALIZED || broken(state == READYSTATE_LOADING) /* win2k */,
1575  "got %d, expected READYSTATE_UNINITIALIZED\n", state);
1576 
1577  test_open(xhr, "POST", urlA, S_OK);
1578 
1579  hr = IXMLHttpRequest_setRequestHeader(xhr, _bstr_("header1"), _bstr_("value1"));
1580  EXPECT_HR(hr, S_OK);
1581 
1582  hr = IXMLHttpRequest_setRequestHeader(xhr, NULL, _bstr_("value1"));
1584 
1585  hr = IXMLHttpRequest_setRequestHeader(xhr, _bstr_(""), _bstr_("value1"));
1587 
1588  V_VT(&varbody) = VT_BSTR;
1589  V_BSTR(&varbody) = _bstr_(bodyA);
1590 
1591  hr = IXMLHttpRequest_send(xhr, varbody);
1592  if (hr == INET_E_RESOURCE_NOT_FOUND)
1593  {
1594  skip("No connection could be made with test.winehq.org\n");
1595  IXMLHttpRequest_Release(xhr);
1596  return;
1597  }
1598  EXPECT_HR(hr, S_OK);
1599 
1600  /* response headers */
1601  hr = IXMLHttpRequest_getAllResponseHeaders(xhr, NULL);
1602  ok(hr == E_POINTER || broken(hr == E_INVALIDARG) /* <win8 */, "got 0x%08x\n", hr);
1603  hr = IXMLHttpRequest_getAllResponseHeaders(xhr, &str);
1604  EXPECT_HR(hr, S_OK);
1605  /* status line is stripped already */
1606  ok(memcmp(str, _bstr_("HTTP"), 4*sizeof(WCHAR)), "got response headers %s\n", wine_dbgstr_w(str));
1607  ok(*str, "got empty headers\n");
1608  hr = IXMLHttpRequest_getAllResponseHeaders(xhr, &str1);
1609  EXPECT_HR(hr, S_OK);
1610  ok(str1 != str, "got %p\n", str1);
1611  SysFreeString(str1);
1612  SysFreeString(str);
1613 
1614  hr = IXMLHttpRequest_getResponseHeader(xhr, NULL, NULL);
1616  hr = IXMLHttpRequest_getResponseHeader(xhr, _bstr_("Date"), NULL);
1617  ok(hr == E_POINTER || broken(hr == E_INVALIDARG) /* <win8 */, "got 0x%08x\n", hr);
1618  hr = IXMLHttpRequest_getResponseHeader(xhr, _bstr_("Date"), &str);
1619  EXPECT_HR(hr, S_OK);
1620  ok(*str != ' ', "got leading space in header %s\n", wine_dbgstr_w(str));
1621  SysFreeString(str);
1622 
1623  /* status code after ::send() */
1624  status = 0xdeadbeef;
1625  hr = IXMLHttpRequest_get_status(xhr, &status);
1626  EXPECT_HR(hr, S_OK);
1627  ok(status == 200, "got %d\n", status);
1628 
1629  hr = IXMLHttpRequest_get_statusText(xhr, NULL);
1630  ok(hr == E_POINTER || broken(hr == E_INVALIDARG) /* <win8 */, "got 0x%08x\n", hr);
1631 
1632  hr = IXMLHttpRequest_get_statusText(xhr, &str);
1633  EXPECT_HR(hr, S_OK);
1634  ok(!lstrcmpW(str, _bstr_("OK")), "got status %s\n", wine_dbgstr_w(str));
1635  SysFreeString(str);
1636 
1637  /* another ::send() after completed request */
1638  V_VT(&varbody) = VT_BSTR;
1639  V_BSTR(&varbody) = _bstr_(bodyA);
1640 
1641  hr = IXMLHttpRequest_send(xhr, varbody);
1642  ok(hr == E_FAIL || broken(hr == E_UNEXPECTED) /* win2k */, "got 0x%08x\n", hr);
1643 
1644  hr = IXMLHttpRequest_get_responseText(xhr, &bstrResponse);
1645  EXPECT_HR(hr, S_OK);
1646  /* the server currently returns "FAILED" because the Content-Type header is
1647  * not what the server expects */
1648  if(hr == S_OK)
1649  {
1650  ok(!memcmp(bstrResponse, wszExpectedResponse, sizeof(wszExpectedResponse)),
1651  "expected %s, got %s\n", wine_dbgstr_w(wszExpectedResponse), wine_dbgstr_w(bstrResponse));
1652  SysFreeString(bstrResponse);
1653  }
1654 
1655  /* POST: VT_VARIANT body */
1656  /* VT_VARIANT|VT_BYREF fails on Windows 10 */
1657  test_open(xhr, "POST", urlA, S_OK);
1658 
1659  hr = IXMLHttpRequest_send(xhr, varbody);
1660  EXPECT_HR(hr, S_OK);
1661 
1662  /* GET request */
1663  test_open(xhr, "GET", xmltestA, S_OK);
1664 
1665  V_VT(&varbody) = VT_EMPTY;
1666 
1667  hr = IXMLHttpRequest_send(xhr, varbody);
1668  if (hr == INET_E_RESOURCE_NOT_FOUND)
1669  {
1670  skip("No connection could be made with test.winehq.org\n");
1671  IXMLHttpRequest_Release(xhr);
1672  return;
1673  }
1674  EXPECT_HR(hr, S_OK);
1675 
1676  hr = IXMLHttpRequest_get_responseText(xhr, NULL);
1677  ok(hr == E_POINTER || broken(hr == E_INVALIDARG) /* <win8 */, "got 0x%08x\n", hr);
1678 
1679  hr = IXMLHttpRequest_get_responseText(xhr, &bstrResponse);
1680  EXPECT_HR(hr, S_OK);
1681  ok(!memcmp(bstrResponse, _bstr_(xmltestbodyA), sizeof(xmltestbodyA)*sizeof(WCHAR)),
1682  "expected %s, got %s\n", xmltestbodyA, wine_dbgstr_w(bstrResponse));
1683  SysFreeString(bstrResponse);
1684 
1685  hr = IXMLHttpRequest_get_responseBody(xhr, NULL);
1687 
1688  V_VT(&varbody) = VT_EMPTY;
1689  hr = IXMLHttpRequest_get_responseBody(xhr, &varbody);
1690  EXPECT_HR(hr, S_OK);
1691  ok(V_VT(&varbody) == (VT_ARRAY|VT_UI1), "got type %d, expected %d\n", V_VT(&varbody), VT_ARRAY|VT_UI1);
1692  ok(SafeArrayGetDim(V_ARRAY(&varbody)) == 1, "got %d, expected one dimension\n", SafeArrayGetDim(V_ARRAY(&varbody)));
1693 
1694  bound = -1;
1695  hr = SafeArrayGetLBound(V_ARRAY(&varbody), 1, &bound);
1696  EXPECT_HR(hr, S_OK);
1697  ok(bound == 0, "got %d, expected zero bound\n", bound);
1698 
1699  hr = SafeArrayAccessData(V_ARRAY(&varbody), &ptr);
1700  EXPECT_HR(hr, S_OK);
1701  ok(memcmp(ptr, xmltestbodyA, sizeof(xmltestbodyA)-1) == 0, "got wrong body data\n");
1702  SafeArrayUnaccessData(V_ARRAY(&varbody));
1703 
1704  VariantClear(&varbody);
1705 
1706  /* get_responseStream */
1707  hr = IXMLHttpRequest_get_responseStream(xhr, NULL);
1709 
1710  V_VT(&varbody) = VT_EMPTY;
1711  hr = IXMLHttpRequest_get_responseStream(xhr, &varbody);
1712  ok(V_VT(&varbody) == VT_UNKNOWN, "got type %d\n", V_VT(&varbody));
1713  EXPECT_HR(hr, S_OK);
1714  EXPECT_REF(V_UNKNOWN(&varbody), 1);
1715 
1716  g = NULL;
1717  hr = GetHGlobalFromStream((IStream*)V_UNKNOWN(&varbody), &g);
1718  EXPECT_HR(hr, S_OK);
1719  ok(g != NULL, "got %p\n", g);
1720  VariantClear(&varbody);
1721 
1722  IDispatch_Release(event);
1723 
1724  /* test if referrer header is sent */
1725  test_open(xhr, "GET", referertesturl, S_OK);
1726 
1727  V_VT(&varbody) = VT_EMPTY;
1728  hr = IXMLHttpRequest_send(xhr, varbody);
1729  ok(hr == S_OK, "got 0x%08x\n", hr);
1730  hr = IXMLHttpRequest_get_responseText(xhr, &str);
1731  ok(hr == S_OK, "got 0x%08x\n", hr);
1732  ok(!lstrcmpW(str, norefererW), "got response text %s\n", wine_dbgstr_w(str));
1733  SysFreeString(str);
1734 
1735  /* interaction with object site */
1736  hr = IXMLHttpRequest_QueryInterface(xhr, &IID_IObjectWithSite, (void**)&obj_site);
1737  EXPECT_HR(hr, S_OK);
1738 
1739  hr = IObjectWithSite_SetSite(obj_site, NULL);
1740  ok(hr == S_OK, "got 0x%08x\n", hr);
1741 
1742  hr = IXMLHttpRequest_QueryInterface(xhr, &IID_IObjectWithSite, (void**)&obj_site2);
1743  EXPECT_HR(hr, S_OK);
1744  ok(obj_site == obj_site2 || broken(obj_site != obj_site2), "got new instance\n");
1745  IObjectWithSite_Release(obj_site2);
1746 
1747  set_xhr_site(xhr);
1748 
1749  test_open(xhr, "GET", "tests/referer.php", S_OK);
1750  str1 = a2bstr("http://test.winehq.org/");
1751 
1752  V_VT(&varbody) = VT_EMPTY;
1753  hr = IXMLHttpRequest_send(xhr, varbody);
1754  ok(hr == S_OK, "got 0x%08x\n", hr);
1755 
1756  hr = IXMLHttpRequest_get_responseText(xhr, &str);
1757  ok(hr == S_OK, "got 0x%08x\n", hr);
1758  ok(!lstrcmpW(str, str1), "got response text %s, expected %s\n", wine_dbgstr_w(str), wine_dbgstr_w(str1));
1759  SysFreeString(str);
1760  SysFreeString(str1);
1761 
1762  /* try to set site another time */
1763  hr = IObjectWithSite_SetSite(obj_site, &testsite);
1764  EXPECT_HR(hr, S_OK);
1765 
1766  IObjectWithSite_Release(obj_site);
1767 
1768  /* HEAD request */
1769  hr = IXMLHttpRequest_put_onreadystatechange(xhr, NULL);
1770  ok(hr == S_OK, "Failed to reset state change handler, hr %#x.\n", hr);
1771 
1772  test_open(xhr, "HEAD", xmltestA, S_OK);
1773 
1774  V_VT(&varbody) = VT_EMPTY;
1775  hr = IXMLHttpRequest_send(xhr, varbody);
1776  ok(hr == S_OK, "Failed to send HEAD request, hr %#x.\n", hr);
1777 
1778  str = NULL;
1779  hr = IXMLHttpRequest_get_responseText(xhr, &str);
1780  ok(hr == S_OK, "Failed to get response text, hr %#x.\n", hr);
1781  ok(!*str, "Unexpected text %s.\n", wine_dbgstr_w(str));
1782  SysFreeString(str);
1783 
1784  hr = IXMLHttpRequest_getAllResponseHeaders(xhr, &str);
1785  ok(hr == S_OK, "Failed to get response headers, hr %#x.\n", hr);
1786  ok(str && *str, "Expected response headers.\n");
1787  SysFreeString(str);
1788 
1789  IXMLHttpRequest_Release(xhr);
1790 
1791  /* invalid host */
1792  xhr = create_xhr();
1793 
1794  test_open(xhr, "GET", "http://invalid.host.test.winehq.org/test/path", S_OK);
1795 
1796  V_VT(&varbody) = VT_EMPTY;
1797  hr = IXMLHttpRequest_send(xhr, varbody);
1798  todo_wine
1799  ok(hr == INET_E_RESOURCE_NOT_FOUND, "send to invalid host returned %#x.\n", hr);
1800 
1801  IXMLHttpRequest_Release(xhr);
1802  free_bstrs();
1803 }
static IHTMLXMLHttpRequest * xhr
UINT WINAPI SafeArrayGetDim(SAFEARRAY *psa)
Definition: safearray.c:1094
HRESULT WINAPI GetHGlobalFromStream(IStream *pstm, HGLOBAL *phglobal)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
Definition: utclib.c:112
HRESULT hr
Definition: shlfolder.c:183
char * wine_dbgstr_w(const wchar_t *wstr)
Definition: atltest.h:87
int WINAPI lstrcmpW(LPCWSTR lpString1, LPCWSTR lpString2)
Definition: lstring.c:170
#define V_ARRAY(A)
Definition: oleauto.h:222
#define V_I2(A)
Definition: oleauto.h:245
#define DISP_E_MEMBERNOTFOUND
Definition: winerror.h:2512
OLECHAR * BSTR
Definition: compat.h:1942
static void free_bstrs(void)
Definition: httpreq.c:125
void WINAPI VariantInit(VARIANTARG *pVarg)
Definition: variant.c:568
static int g_expectedcall
Definition: httpreq.c:95
#define E_FAIL
Definition: ddrawi.h:102
static const char xmltestA[]
Definition: httpreq.c:53
static BSTR _bstr_(const char *str)
Definition: httpreq.c:115
HRESULT WINAPI SafeArrayAccessData(SAFEARRAY *psa, void **ppvData)
Definition: safearray.c:1137
long LONG
Definition: pedump.c:60
static PVOID ptr
Definition: dispmode.c:27
#define E_INVALIDARG
Definition: ddrawi.h:101
const WCHAR * str
static IUnknown testsite
Definition: httpreq.c:1213
static int g_unexpectedcall
Definition: httpreq.c:95
smooth NULL
Definition: ftsmooth.c:416
GLboolean GLboolean g
Definition: glext.h:6204
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:78
const IID IID_IObjectWithSite
HRESULT WINAPI SafeArrayGetLBound(SAFEARRAY *psa, UINT nDim, LONG *plLbound)
Definition: safearray.c:1066
static BSTR a2bstr(const char *str)
Definition: httpreq.c:133
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
Definition: variant.c:648
#define todo_wine
Definition: test.h:162
#define V_VT(A)
Definition: oleauto.h:211
static int state
Definition: maze.c:121
static IXMLHttpRequest * create_xhr(void)
Definition: httpreq.c:1342
#define test_open(a, b, c, d)
Definition: httpreq.c:1430
struct _cl_event * event
Definition: glext.h:7739
#define V_UNKNOWN(A)
Definition: oleauto.h:281
#define V_BSTR(A)
Definition: oleauto.h:226
#define broken(x)
Definition: _sntprintf.h:21
static void set_xhr_site(IXMLHttpRequest *xhr)
Definition: httpreq.c:1377
#define S_OK
Definition: intsafe.h:59
#define EXPECT_HR(hr, hr_exp)
Definition: httpreq.c:41
static IXMLHttpRequest * httpreq
Definition: httpreq.c:1221
unsigned char dummy
Definition: maze.c:118
#define ok(value,...)
Definition: atltest.h:57
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
#define V_ERROR(A)
Definition: oleauto.h:241
#define E_UNEXPECTED
Definition: winerror.h:2456
#define skip(...)
Definition: atltest.h:64
static IDispatch * create_dispevent(void)
Definition: httpreq.c:1332
static const CHAR xmltestbodyA[]
Definition: httpreq.c:54
#define EXPECT_REF(node, ref)
Definition: httpreq.c:44
#define E_POINTER
Definition: winerror.h:2365
#define E_PENDING
Definition: dinput.h:172
static SERVICE_STATUS status
Definition: service.c:31
HRESULT WINAPI SafeArrayUnaccessData(SAFEARRAY *psa)
Definition: safearray.c:1168
Definition: compat.h:1946
Definition: ps.c:97

Referenced by START_TEST().

Variable Documentation

◆ alloced_bstrs

BSTR alloced_bstrs[256]
static

Definition at line 112 of file httpreq.c.

Referenced by _bstr_(), and free_bstrs().

◆ alloced_bstrs_count

int alloced_bstrs_count
static

Definition at line 113 of file httpreq.c.

Referenced by _bstr_(), and free_bstrs().

◆ dispeventVtbl

const IDispatchVtbl dispeventVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI dispevent_GetTypeInfoCount(IDispatch *iface, UINT *pctinfo)
Definition: httpreq.c:1262
static HRESULT WINAPI dispevent_Invoke(IDispatch *iface, DISPID member, REFIID riid, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *result, EXCEPINFO *excepInfo, UINT *argErr)
Definition: httpreq.c:1283
static HRESULT WINAPI dispevent_GetTypeInfo(IDispatch *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: httpreq.c:1269
static ULONG WINAPI dispevent_Release(IDispatch *iface)
Definition: httpreq.c:1251
static HRESULT WINAPI dispevent_GetIDsOfNames(IDispatch *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: httpreq.c:1276
static ULONG WINAPI dispevent_AddRef(IDispatch *iface)
Definition: httpreq.c:1245
static HRESULT WINAPI dispevent_QueryInterface(IDispatch *iface, REFIID riid, void **ppvObject)
Definition: httpreq.c:1228

Definition at line 1321 of file httpreq.c.

Referenced by create_dispevent().

◆ g_enablecallchecks

BOOL g_enablecallchecks
static

Definition at line 59 of file httpreq.c.

Referenced by set_xhr_site().

◆ g_expectedcall

int g_expectedcall
static

Definition at line 95 of file httpreq.c.

Referenced by dispevent_Invoke(), and test_XMLHTTP().

◆ g_unexpectedcall

int g_unexpectedcall
static

◆ htmldoc2

IHTMLDocument2 htmldoc2 = { &TestHTMLDocumentVtbl }
static

Definition at line 1085 of file httpreq.c.

Referenced by sp_QueryService().

◆ htmlecoll

IHTMLElementCollection htmlecoll = { &TestHTMLECollectionVtbl }
static

Definition at line 248 of file httpreq.c.

Referenced by htmldoc2_get_all().

◆ httpreq

IXMLHttpRequest* httpreq
static

Definition at line 1221 of file httpreq.c.

Referenced by dispevent_Invoke(), and test_XMLHTTP().

◆ TestHTMLDocumentVtbl

const IHTMLDocument2Vtbl TestHTMLDocumentVtbl
static

Definition at line 966 of file httpreq.c.

◆ TestHTMLECollectionVtbl

const IHTMLElementCollectionVtbl TestHTMLECollectionVtbl
static
Initial value:
= {
}
static HRESULT WINAPI htmlecoll_Invoke(IHTMLElementCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: httpreq.c:188
static HRESULT WINAPI htmlecoll_put_length(IHTMLElementCollection *iface, LONG v)
Definition: httpreq.c:202
static HRESULT WINAPI htmlecoll_get__newEnum(IHTMLElementCollection *iface, IUnknown **p)
Definition: httpreq.c:214
static HRESULT WINAPI htmlecoll_get_length(IHTMLElementCollection *iface, LONG *v)
Definition: httpreq.c:208
static HRESULT WINAPI htmlecoll_QueryInterface(IHTMLElementCollection *iface, REFIID riid, void **ppvObject)
Definition: httpreq.c:150
static HRESULT WINAPI htmlecoll_GetTypeInfo(IHTMLElementCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: httpreq.c:173
static HRESULT WINAPI htmlecoll_tags(IHTMLElementCollection *iface, VARIANT tagName, IDispatch **pdisp)
Definition: httpreq.c:226
static HRESULT WINAPI htmlecoll_toString(IHTMLElementCollection *iface, BSTR *String)
Definition: httpreq.c:196
static HRESULT WINAPI htmlecoll_item(IHTMLElementCollection *iface, VARIANT name, VARIANT index, IDispatch **pdisp)
Definition: httpreq.c:220
static ULONG WINAPI htmlecoll_AddRef(IHTMLElementCollection *iface)
Definition: httpreq.c:157
static ULONG WINAPI htmlecoll_Release(IHTMLElementCollection *iface)
Definition: httpreq.c:162
static HRESULT WINAPI htmlecoll_GetTypeInfoCount(IHTMLElementCollection *iface, UINT *pctinfo)
Definition: httpreq.c:167
static HRESULT WINAPI htmlecoll_GetIDsOfNames(IHTMLElementCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: httpreq.c:180

Definition at line 232 of file httpreq.c.

◆ testprov

IServiceProvider testprov = { &testprovVtbl }
static

Definition at line 1171 of file httpreq.c.

Referenced by site_QueryInterface().

◆ testprovVtbl

const IServiceProviderVtbl testprovVtbl
static
Initial value:
=
{
}
static ULONG WINAPI sp_Release(IServiceProvider *iface)
Definition: httpreq.c:1109
static ULONG WINAPI sp_AddRef(IServiceProvider *iface)
Definition: httpreq.c:1104
static HRESULT WINAPI sp_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppvObject)
Definition: httpreq.c:1087
static HRESULT WINAPI sp_QueryService(IServiceProvider *iface, REFGUID service, REFIID riid, void **obj)
Definition: httpreq.c:1114

Definition at line 1163 of file httpreq.c.

◆ testsite

IUnknown testsite = { &testsiteVtbl }
static

Definition at line 1213 of file httpreq.c.

Referenced by set_xhr_site(), test_secure_connection(), and test_XMLHTTP().

◆ testsiteVtbl

const IUnknownVtbl testsiteVtbl
static
Initial value:
=
{
}
static ULONG WINAPI site_Release(IUnknown *iface)
Definition: httpreq.c:1201
static HRESULT WINAPI site_QueryInterface(IUnknown *iface, REFIID riid, void **ppvObject)
Definition: httpreq.c:1173
static ULONG WINAPI site_AddRef(IUnknown *iface)
Definition: httpreq.c:1196

Definition at line 1206 of file httpreq.c.

◆ xmltestA

const char xmltestA[] = "http://test.winehq.org/tests/xmltest.xml"
static

Definition at line 53 of file httpreq.c.

Referenced by test_server_xhr(), and test_XMLHTTP().

◆ xmltestbodyA

const CHAR xmltestbodyA[] = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<a>TEST</a>\n"
static

Definition at line 54 of file httpreq.c.

Referenced by test_server_xhr(), and test_XMLHTTP().