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

ninput/tests: Enable compilation with long types.

parent 219ff69a
EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = ninput.dll
IMPORTS = ninput
......
......@@ -25,14 +25,14 @@ static void test_context(void)
HRESULT hr;
hr = CreateInteractionContext(&context);
ok(hr == S_OK, "Failed to create context, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to create context, hr %#lx.\n", hr);
hr = DestroyInteractionContext(context);
ok(hr == S_OK, "Failed to destroy context, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to destroy context, hr %#lx.\n", hr);
hr = CreateInteractionContext(NULL);
ok(hr == E_POINTER, "Got hr %#x.\n", hr);
ok(hr == E_POINTER, "Got hr %#lx.\n", hr);
hr = DestroyInteractionContext(NULL);
ok(hr == E_HANDLE, "Got hr %#x.\n", hr);
ok(hr == E_HANDLE, "Got hr %#lx.\n", hr);
}
static void test_properties(void)
......@@ -42,44 +42,44 @@ static void test_properties(void)
HRESULT hr;
hr = CreateInteractionContext(&context);
ok(hr == S_OK, "Failed to create context, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to create context, hr %#lx.\n", hr);
hr = GetPropertyInteractionContext(context, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, &value);
ok(hr == S_OK, "Failed to get property, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to get property, hr %#lx.\n", hr);
ok(value == TRUE, "Got unexpected value %#x.\n", value);
hr = SetPropertyInteractionContext(context, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, TRUE);
ok(hr == S_OK, "Failed to set property, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to set property, hr %#lx.\n", hr);
hr = GetPropertyInteractionContext(context, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, &value);
ok(hr == S_OK, "Failed to get property, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to get property, hr %#lx.\n", hr);
ok(value == TRUE, "Got unexpected value %#x.\n", value);
hr = SetPropertyInteractionContext(context, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, FALSE);
ok(hr == S_OK, "Failed to set property, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to set property, hr %#lx.\n", hr);
hr = GetPropertyInteractionContext(context, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, &value);
ok(hr == S_OK, "Failed to get property, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to get property, hr %#lx.\n", hr);
ok(value == FALSE, "Got unexpected value %#x.\n", value);
hr = SetPropertyInteractionContext(context, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, 2);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
ok(hr == E_INVALIDARG, "Got hr %#lx.\n", hr);
hr = SetPropertyInteractionContext(context, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, 3);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
ok(hr == E_INVALIDARG, "Got hr %#lx.\n", hr);
hr = SetPropertyInteractionContext(context, 0xdeadbeef, 0);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
ok(hr == E_INVALIDARG, "Got hr %#lx.\n", hr);
hr = GetPropertyInteractionContext(context, 0xdeadbeef, &value);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
ok(hr == E_INVALIDARG, "Got hr %#lx.\n", hr);
hr = GetPropertyInteractionContext(context, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, NULL);
ok(hr == E_POINTER, "Got hr %#x.\n", hr);
ok(hr == E_POINTER, "Got hr %#lx.\n", hr);
hr = SetPropertyInteractionContext(NULL, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, FALSE);
ok(hr == E_HANDLE, "Got hr %#x.\n", hr);
ok(hr == E_HANDLE, "Got hr %#lx.\n", hr);
hr = GetPropertyInteractionContext(NULL, INTERACTION_CONTEXT_PROPERTY_FILTER_POINTERS, &value);
ok(hr == E_HANDLE, "Got hr %#x.\n", hr);
ok(hr == E_HANDLE, "Got hr %#lx.\n", hr);
hr = DestroyInteractionContext(context);
ok(hr == S_OK, "Failed to destroy context, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to destroy context, hr %#lx.\n", hr);
}
static void test_configuration(void)
......@@ -101,20 +101,20 @@ static void test_configuration(void)
};
hr = CreateInteractionContext(&context);
ok(hr == S_OK, "Failed to create context, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to create context, hr %#lx.\n", hr);
hr = SetInteractionConfigurationInteractionContext(NULL, 0, NULL);
ok(hr == E_HANDLE, "Got hr %#x.\n", hr);
ok(hr == E_HANDLE, "Got hr %#lx.\n", hr);
hr = SetInteractionConfigurationInteractionContext(context, 0, NULL);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
ok(hr == E_INVALIDARG, "Got hr %#lx.\n", hr);
hr = SetInteractionConfigurationInteractionContext(context, 1, NULL);
ok(hr == E_POINTER, "Got hr %#x.\n", hr);
ok(hr == E_POINTER, "Got hr %#lx.\n", hr);
hr = SetInteractionConfigurationInteractionContext(context, ARRAY_SIZE(config), config);
ok(hr == S_OK, "Failed to set configuration, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to set configuration, hr %#lx.\n", hr);
hr = DestroyInteractionContext(context);
ok(hr == S_OK, "Failed to destroy context, hr %#x.\n", hr);
ok(hr == S_OK, "Failed to destroy context, hr %#lx.\n", hr);
}
START_TEST(ninput)
......
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