Author: cwittich
Date: Mon Mar 2 19:28:15 2015
New Revision: 66548
URL:
http://svn.reactos.org/svn/reactos?rev=66548&view=rev
Log:
[WLANAPI_WINETEST]
add more tests
Modified:
trunk/rostests/winetests/wlanapi/wlanapi.c
Modified: trunk/rostests/winetests/wlanapi/wlanapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/wlanapi/wlanapi…
==============================================================================
--- trunk/rostests/winetests/wlanapi/wlanapi.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/wlanapi/wlanapi.c [iso-8859-1] Mon Mar 2 19:28:15 2015
@@ -205,6 +205,25 @@
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 @@
WlanDeleteProfile_test();
WlanGetProfile_test();
WlanEnumInterfaces_test();
-}
+ WlanGetInterfaceCapability_test();
+}