Commit 7e5a764d authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32/tests: Test default item moniker instance.

parent 70f35c65
......@@ -1311,6 +1311,13 @@ static const BYTE expected_item_moniker_comparison_data5[] =
'S',0x00, 'T',0x00,0x00,0x00,
};
static const BYTE expected_item_moniker_comparison_data6[] =
{
0x04,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46,
0x00,0x00,
};
static const BYTE expected_item_moniker_saved_data[] =
{
0x02,0x00,0x00,0x00, '!',0x00,0x05,0x00,
......@@ -1341,6 +1348,12 @@ static const BYTE expected_item_moniker_saved_data5[] =
0x00,0x00,0x00, 'T', 'e', 's', 't',0x00,
};
static const BYTE expected_item_moniker_saved_data6[] =
{
0x01,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
0x00,0x00,
};
static const BYTE expected_item_moniker_marshal_data[] =
{
0x4d,0x45,0x4f,0x57,0x04,0x00,0x00,0x00,
......@@ -1401,6 +1414,18 @@ static const BYTE expected_item_moniker_marshal_data5[] =
0x00,0x00,0x00, 'T', 'e', 's', 't',0x00,
};
static const BYTE expected_item_moniker_marshal_data6[] =
{
0x4d,0x45,0x4f,0x57,0x04,0x00,0x00,0x00,
0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46,
0x04,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46,
0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,
0x01,0x00,0x00,0x00,0x00,0x01,0x00,0x00,
0x00,0x00,
};
static const BYTE expected_anti_moniker_marshal_data[] =
{
0x4d,0x45,0x4f,0x57,0x04,0x00,0x00,0x00,
......@@ -2239,6 +2264,18 @@ todo_wine
IMoniker_Release(moniker);
IMoniker_Release(moniker2);
}
/* Default instance. */
hr = CoCreateInstance(&CLSID_ItemMoniker, NULL, CLSCTX_SERVER, &IID_IMoniker, (void **)&moniker);
ok(hr == S_OK, "Failed to create item moniker, hr %#x.\n", hr);
test_moniker("item moniker 6", moniker,
expected_item_moniker_marshal_data6, sizeof(expected_item_moniker_marshal_data6),
expected_item_moniker_saved_data6, sizeof(expected_item_moniker_saved_data6),
expected_item_moniker_comparison_data6, sizeof(expected_item_moniker_comparison_data6),
34, L"");
IMoniker_Release(moniker);
}
static void stream_write_dword(IStream *stream, DWORD value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment