ReactOS
0.4.15-dev-4574-g434cf85
|
#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 "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 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 WCHAR | xdr_schema_uri [] = {'x','-','s','c','h','e','m','a',':','t','e','s','t','.','x','m','l',0} |
static const WCHAR | xdr_schema_xml [] |
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 462 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 485 of file schema.c.
Definition at line 477 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), test_length(), and test_schema_refs().
Definition at line 454 of file schema.c.
Referenced by _bstr_().
Definition at line 469 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().
Definition at line 881 of file schema.c.
Referenced by START_TEST().
Definition at line 670 of file schema.c.
Referenced by START_TEST().
Definition at line 1493 of file schema.c.
Referenced by START_TEST().
Definition at line 1538 of file schema.c.
Referenced by START_TEST().
Definition at line 1660 of file schema.c.
Referenced by START_TEST().
Definition at line 789 of file schema.c.
Referenced by START_TEST().
Definition at line 1439 of file schema.c.
Referenced by test_dispex().
Definition at line 1568 of file schema.c.
Referenced by START_TEST().
Definition at line 507 of file schema.c.
Referenced by START_TEST().
Definition at line 1208 of file schema.c.
Referenced by START_TEST().
Definition at line 1030 of file schema.c.
Referenced by START_TEST().
|
static |
Definition at line 451 of file schema.c.
Referenced by _bstr_(), and free_bstrs().
|
static |
Definition at line 452 of file schema.c.
Referenced by _bstr_(), and free_bstrs().
Definition at line 143 of file schema.c.
Referenced by test_XDR_datatypes().
Definition at line 219 of file schema.c.
Referenced by test_XDR_datatypes().
Definition at line 392 of file schema.c.
Referenced by test_XDR_schemas().
Definition at line 409 of file schema.c.
Referenced by test_XDR_schemas().
Definition at line 410 of file schema.c.
Referenced by test_XDR_schemas().
Definition at line 411 of file schema.c.
Referenced by test_XDR_schemas().
Definition at line 412 of file schema.c.
Referenced by test_XDR_schemas().
|
static |
Definition at line 1176 of file schema.c.
Referenced by test_XDR_datatypes().
Definition at line 51 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 52 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 69 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 70 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 85 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
Definition at line 86 of file schema.c.
Referenced by test_collection_content(), test_collection_refs(), and test_length().
|
static |
Definition at line 43 of file schema.c.
Referenced by test_schema_refs().
Definition at line 45 of file schema.c.
Referenced by test_schema_refs().
Definition at line 101 of file schema.c.
Referenced by test_collection_content(), and test_remove().
Definition at line 102 of file schema.c.
Referenced by test_collection_content(), and test_remove().
Definition at line 115 of file schema.c.
Referenced by test_collection_content().
Definition at line 116 of file schema.c.
Referenced by test_collection_content().
Definition at line 129 of file schema.c.
Referenced by test_collection_content().
Definition at line 130 of file schema.c.
Referenced by test_collection_content().