Commit c8431d97 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

explorerframe/tests: Enable compilation with long types.

parent 4bd7b55d
EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = explorerframe.dll TESTDLL = explorerframe.dll
IMPORTS = uuid shell32 ole32 user32 IMPORTS = uuid shell32 ole32 user32
......
...@@ -30,132 +30,132 @@ static void test_ITaskbarList(void) ...@@ -30,132 +30,132 @@ static void test_ITaskbarList(void)
HWND hwnd; HWND hwnd;
hwnd = CreateWindowA(WC_STATICA, "test", WS_POPUP | WS_VISIBLE, 0, 0, 50, 50, 0, 0, 0, NULL); hwnd = CreateWindowA(WC_STATICA, "test", WS_POPUP | WS_VISIBLE, 0, 0, 50, 50, 0, 0, 0, NULL);
ok(hwnd != NULL, "Failed to create a test window, error %u.\n", GetLastError()); ok(hwnd != NULL, "Failed to create a test window, error %lu.\n", GetLastError());
hr = CoCreateInstance((const CLSID *)&CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, hr = CoCreateInstance((const CLSID *)&CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER,
(const IID *)&IID_ITaskbarList, (void **)&taskbarlist); (const IID *)&IID_ITaskbarList, (void **)&taskbarlist);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
ref_count = ITaskbarList_AddRef(taskbarlist); ref_count = ITaskbarList_AddRef(taskbarlist);
ok(ref_count == 2, "Got unexpected reference count %u.\n", ref_count); ok(ref_count == 2, "Got unexpected reference count %lu.\n", ref_count);
ref_count = ITaskbarList_Release(taskbarlist); ref_count = ITaskbarList_Release(taskbarlist);
ok(ref_count == 1, "Got unexpected reference count %u.\n", ref_count); ok(ref_count == 1, "Got unexpected reference count %lu.\n", ref_count);
/* Test calling methods before calling ITaskbarList::HrInit() */ /* Test calling methods before calling ITaskbarList::HrInit() */
hr = ITaskbarList_AddTab(taskbarlist, hwnd); hr = ITaskbarList_AddTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_SetActiveAlt(taskbarlist, hwnd); hr = ITaskbarList_SetActiveAlt(taskbarlist, hwnd);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_ActivateTab(taskbarlist, hwnd); hr = ITaskbarList_ActivateTab(taskbarlist, hwnd);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_DeleteTab(taskbarlist, hwnd); hr = ITaskbarList_DeleteTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Call ITaskbarList::HrInit() */ /* Call ITaskbarList::HrInit() */
hr = ITaskbarList_HrInit(taskbarlist); hr = ITaskbarList_HrInit(taskbarlist);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Test ITaskbarList::HrInit() */ /* Test ITaskbarList::HrInit() */
/* Call ITaskbarList::HrInit() again */ /* Call ITaskbarList::HrInit() again */
hr = ITaskbarList_HrInit(taskbarlist); hr = ITaskbarList_HrInit(taskbarlist);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Test ITaskbarList::AddTab() */ /* Test ITaskbarList::AddTab() */
/* Check invalid parameters */ /* Check invalid parameters */
hr = ITaskbarList_AddTab(taskbarlist, NULL); hr = ITaskbarList_AddTab(taskbarlist, NULL);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_AddTab(taskbarlist, (HWND)0xdeadbeef); hr = ITaskbarList_AddTab(taskbarlist, (HWND)0xdeadbeef);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Normal ITaskbarList::AddTab() */ /* Normal ITaskbarList::AddTab() */
hr = ITaskbarList_AddTab(taskbarlist, hwnd); hr = ITaskbarList_AddTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Repeat ITaskbarList::AddTab() with the same hwnd */ /* Repeat ITaskbarList::AddTab() with the same hwnd */
hr = ITaskbarList_AddTab(taskbarlist, hwnd); hr = ITaskbarList_AddTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_DeleteTab(taskbarlist, hwnd); hr = ITaskbarList_DeleteTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Test ITaskbarList::SetActiveAlt() */ /* Test ITaskbarList::SetActiveAlt() */
/* Check invalid parameters */ /* Check invalid parameters */
hr = ITaskbarList_SetActiveAlt(taskbarlist, NULL); hr = ITaskbarList_SetActiveAlt(taskbarlist, NULL);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_SetActiveAlt(taskbarlist, (HWND)0xdeadbeef); hr = ITaskbarList_SetActiveAlt(taskbarlist, (HWND)0xdeadbeef);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Normal ITaskbarList::SetActiveAlt() */ /* Normal ITaskbarList::SetActiveAlt() */
hr = ITaskbarList_AddTab(taskbarlist, hwnd); hr = ITaskbarList_AddTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_SetActiveAlt(taskbarlist, hwnd); hr = ITaskbarList_SetActiveAlt(taskbarlist, hwnd);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Repeat ITaskbarList::SetActiveAlt() with the same hwnd */ /* Repeat ITaskbarList::SetActiveAlt() with the same hwnd */
hr = ITaskbarList_SetActiveAlt(taskbarlist, hwnd); hr = ITaskbarList_SetActiveAlt(taskbarlist, hwnd);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_DeleteTab(taskbarlist, hwnd); hr = ITaskbarList_DeleteTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Test ITaskbarList::ActivateTab() */ /* Test ITaskbarList::ActivateTab() */
/* Check invalid parameters */ /* Check invalid parameters */
hr = ITaskbarList_ActivateTab(taskbarlist, NULL); hr = ITaskbarList_ActivateTab(taskbarlist, NULL);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_ActivateTab(taskbarlist, (HWND)0xdeadbeef); hr = ITaskbarList_ActivateTab(taskbarlist, (HWND)0xdeadbeef);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Normal ITaskbarList::ActivateTab() */ /* Normal ITaskbarList::ActivateTab() */
hr = ITaskbarList_AddTab(taskbarlist, hwnd); hr = ITaskbarList_AddTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_ActivateTab(taskbarlist, hwnd); hr = ITaskbarList_ActivateTab(taskbarlist, hwnd);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Repeat ITaskbarList::ActivateTab() with the same hwnd */ /* Repeat ITaskbarList::ActivateTab() with the same hwnd */
hr = ITaskbarList_ActivateTab(taskbarlist, hwnd); hr = ITaskbarList_ActivateTab(taskbarlist, hwnd);
todo_wine todo_wine
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_DeleteTab(taskbarlist, hwnd); hr = ITaskbarList_DeleteTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Test ITaskbarList::DeleteTab() */ /* Test ITaskbarList::DeleteTab() */
/* Check invalid parameters */ /* Check invalid parameters */
hr = ITaskbarList_DeleteTab(taskbarlist, NULL); hr = ITaskbarList_DeleteTab(taskbarlist, NULL);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_DeleteTab(taskbarlist, (HWND)0xdeadbeef); hr = ITaskbarList_DeleteTab(taskbarlist, (HWND)0xdeadbeef);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_DeleteTab(taskbarlist, hwnd); hr = ITaskbarList_DeleteTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
/* Normal ITaskbarList::DeleteTab() */ /* Normal ITaskbarList::DeleteTab() */
hr = ITaskbarList_AddTab(taskbarlist, hwnd); hr = ITaskbarList_AddTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
hr = ITaskbarList_DeleteTab(taskbarlist, hwnd); hr = ITaskbarList_DeleteTab(taskbarlist, hwnd);
ok(hr == S_OK, "Got hr %#x.\n", hr); ok(hr == S_OK, "Got hr %#lx.\n", hr);
ref_count = ITaskbarList_Release(taskbarlist); ref_count = ITaskbarList_Release(taskbarlist);
ok(ref_count == 0, "Got unexpected reference count %u.\n", ref_count); ok(ref_count == 0, "Got unexpected reference count %lu.\n", ref_count);
DestroyWindow(hwnd); DestroyWindow(hwnd);
} }
......
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