ReactOS 0.4.16-dev-112-g52265ae
|
#include <stdio.h>
#include <assert.h>
#include "initguid.h"
#include "windows.h"
#include "ole2.h"
#include "msxml2.h"
#include "msxml2did.h"
#include "dispex.h"
#include "cguid.h"
#include "wine/test.h"
Go to the source code of this file.
Classes | |
struct | xdr_datatypes |
Macros | |
#define | COBJMACROS |
#define | EXPECT_HR(hr, hr_exp) ok(hr == hr_exp, "got 0x%08x, expected 0x%08x\n", hr, hr_exp) |
#define | check_ref_expr(expr, n) |
#define | check_refs(iface, obj, n) |
#define | ole_check(expr) |
#define | ole_expect(expr, expect) |
#define | _expect64(expr, str, base, TYPE, CONV) |
#define | expect_int64(expr, x, base) _expect64(expr, #x, base, LONG64, strtoll) |
#define | expect_uint64(expr, x, base) _expect64(expr, #x, base, ULONG64, strtoull) |
#define | _create(cls) cls, #cls |
#define | create_document(iid) _create_object(&_create(CLSID_DOMDocument), iid, __LINE__) |
#define | create_document_version(v, iid) _create_object(&_create(CLSID_DOMDocument ## v), iid, __LINE__) |
#define | create_cache(iid) _create_object(&_create(CLSID_XMLSchemaCache), iid, __LINE__) |
#define | create_cache_version(v, iid) _create_object(&_create(CLSID_XMLSchemaCache ## v), iid, __LINE__) |
Functions | |
static BSTR | alloc_str_from_narrow (const char *str) |
static BSTR | _bstr_ (const char *str) |
static void | free_bstrs (void) |
static VARIANT | _variantdoc_ (void *doc) |
static void * | _create_object (const GUID *clsid, const char *name, const IID *iid, int line) |
static void | test_schema_refs (void) |
static void | test_collection_refs (void) |
static void | test_length (void) |
static void | test_collection_content (void) |
static HRESULT | validate_regex_document (IXMLDOMDocument2 *doc, IXMLDOMDocument2 *schema, IXMLDOMSchemaCollection *cache, const WCHAR *regex, const WCHAR *input) |
static void | test_regex (void) |
static void | test_XDR_schemas (void) |
static void | test_XDR_datatypes (void) |
static void | test_validate_on_load (void) |
static void | test_obj_dispex (IUnknown *obj) |
static void | test_dispex (void) |
static void | test_get (void) |
static void | test_remove (void) |
static void | test_ifaces (void) |
START_TEST (schema) | |
Variables | |
static const CHAR | xdr_schema1_uri [] = "x-schema:test1.xdr" |
static const CHAR | xdr_schema1_xml [] |
static const CHAR | xdr_schema2_uri [] = "x-schema:test2.xdr" |
static const CHAR | xdr_schema2_xml [] |
static const CHAR | xdr_schema3_uri [] = "x-schema:test3.xdr" |
static const CHAR | xdr_schema3_xml [] |
static const CHAR | xsd_schema1_uri [] = "x-schema:test1.xsd" |
static const CHAR | xsd_schema1_xml [] |
static const CHAR | xsd_schema2_uri [] = "x-schema:test2.xsd" |
static const CHAR | xsd_schema2_xml [] |
static const CHAR | xsd_schema3_uri [] = "x-schema:test3.xsd" |
static const CHAR | xsd_schema3_xml [] |
static const CHAR | szDatatypeXDR [] |
static const CHAR | szDatatypeXML [] |
static const CHAR | szOpenSeqXDR [] |
static const CHAR | szOpenSeqXML1 [] = "<test><x/><x/><y/><z/><z/></test>" |
static const CHAR | szOpenSeqXML2 [] = "<test><x/><x/><y/><z/><z/><w/></test>" |
static const CHAR | szOpenSeqXML3 [] = "<test><w/><x/><x/><y/><z/><z/></test>" |
static const CHAR | szOpenSeqXML4 [] = "<test><x/><x/><y/><z/><z/><v/></test>" |
static BSTR | alloced_bstrs [256] |
static int | alloced_bstrs_count |
static const xdr_datatypes | xdr_datatypes_data [] |
#define create_cache | ( | iid | ) | _create_object(&_create(CLSID_XMLSchemaCache), iid, __LINE__) |
#define create_cache_version | ( | v, | |
iid | |||
) | _create_object(&_create(CLSID_XMLSchemaCache ## v), iid, __LINE__) |
#define create_document | ( | iid | ) | _create_object(&_create(CLSID_DOMDocument), iid, __LINE__) |
#define create_document_version | ( | v, | |
iid | |||
) | _create_object(&_create(CLSID_DOMDocument ## v), iid, __LINE__) |
Definition at line 451 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), test_get(), test_length(), test_remove(), test_XDR_datatypes(), and test_XDR_schemas().
|
static |
Definition at line 474 of file schema.c.
Definition at line 466 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), test_length(), and test_schema_refs().
Definition at line 443 of file schema.c.
Referenced by _bstr_(), and validate_regex_document().
Definition at line 458 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), test_get(), test_length(), test_remove(), test_XDR_datatypes(), and test_XDR_schemas().
START_TEST | ( | schema | ) |
Definition at line 1850 of file schema.c.
Definition at line 877 of file schema.c.
Referenced by START_TEST().
Definition at line 666 of file schema.c.
Referenced by START_TEST().
Definition at line 1665 of file schema.c.
Referenced by START_TEST().
Definition at line 1710 of file schema.c.
Referenced by START_TEST().
Definition at line 1832 of file schema.c.
Referenced by START_TEST().
Definition at line 785 of file schema.c.
Referenced by START_TEST().
Definition at line 1613 of file schema.c.
Referenced by test_dispex().
Definition at line 1130 of file schema.c.
Referenced by START_TEST().
Definition at line 1740 of file schema.c.
Referenced by START_TEST().
Definition at line 496 of file schema.c.
Referenced by START_TEST().
Definition at line 1382 of file schema.c.
Referenced by START_TEST().
Definition at line 1204 of file schema.c.
Referenced by START_TEST().
|
static |
Definition at line 1044 of file schema.c.
Referenced by test_regex().
|
static |
Definition at line 440 of file schema.c.
Referenced by _bstr_(), and free_bstrs().
|
static |
Definition at line 441 of file schema.c.
Referenced by _bstr_(), and free_bstrs().
Definition at line 132 of file schema.c.
Referenced by test_XDR_datatypes().
Definition at line 208 of file schema.c.
Referenced by test_XDR_datatypes().
Definition at line 381 of file schema.c.
Referenced by test_XDR_schemas().
Definition at line 398 of file schema.c.
Referenced by test_XDR_schemas().
Definition at line 399 of file schema.c.
Referenced by test_XDR_schemas().
Definition at line 400 of file schema.c.
Referenced by test_XDR_schemas().
Definition at line 401 of file schema.c.
Referenced by test_XDR_schemas().
|
static |
Definition at line 1350 of file schema.c.
Referenced by test_XDR_datatypes().
Definition at line 40 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 41 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 58 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 59 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 74 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 75 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 90 of file schema.c.
Referenced by test_collection_content(), and test_remove().
Definition at line 91 of file schema.c.
Referenced by test_collection_content(), and test_remove().
Definition at line 104 of file schema.c.
Referenced by test_collection_content().
Definition at line 105 of file schema.c.
Referenced by test_collection_content().
Definition at line 118 of file schema.c.
Referenced by test_collection_content().
Definition at line 119 of file schema.c.
Referenced by test_collection_content().