[WLANAPI_WINETEST]

add more tests

svn path=/trunk/; revision=66548
This commit is contained in:
Christoph von Wittich 2015-03-02 19:28:15 +00:00
parent 213dbef1b4
commit adf2d63295

View file

@ -205,6 +205,25 @@ static void WlanEnumInterfaces_test(void)
ok(ret == ERROR_INVALID_PARAMETER, "expected failure\n");
}
static void WlanGetInterfaceCapability_test(void)
{
DWORD ret;
PWLAN_INTERFACE_CAPABILITY pInterfaceCapability;
/* invalid pReserved */
ret = WlanGetInterfaceCapability((HANDLE) -1, &InterfaceGuid, (PVOID) 1, &pInterfaceCapability);
ok(ret == ERROR_INVALID_PARAMETER, "expected failure\n");
/* invalid InterfaceGuid */
ret = WlanGetInterfaceCapability((HANDLE) -1, NULL, NULL, &pInterfaceCapability);
ok(ret == ERROR_INVALID_PARAMETER, "expected failure\n");
/* invalid pInterfaceCapability */
ret = WlanGetInterfaceCapability((HANDLE) -1, &InterfaceGuid, NULL, NULL);
ok(ret == ERROR_INVALID_PARAMETER, "expected failure\n");
}
START_TEST(wlanapi)
{
WlanOpenHandle_test();
@ -216,4 +235,5 @@ START_TEST(wlanapi)
WlanDeleteProfile_test();
WlanGetProfile_test();
WlanEnumInterfaces_test();
WlanGetInterfaceCapability_test();
}