[KMTEST]
[reactos.git] / rostests / kmtests / tcpip / TcpIp_user.c
1 /*
2 * PROJECT: ReactOS kernel-mode tests
3 * LICENSE: GPLv2+ - See COPYING in the top level directory
4 * PURPOSE: User mode part of the TcpIp.sys test suite
5 * PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
6 */
7
8 #include <kmt_test.h>
9
10 #include "tcpip.h"
11
12 static
13 void
14 LoadTcpIpTestDriver(void)
15 {
16 /* Start the special-purpose driver */
17 KmtLoadDriver(L"TcpIp", FALSE);
18 KmtOpenDriver();
19 }
20
21 static
22 void
23 UnloadTcpIpTestDriver(void)
24 {
25 /* Stop the driver. */
26 KmtCloseDriver();
27 KmtUnloadDriver();
28 }
29
30 START_TEST(TcpIpTdi)
31 {
32 LoadTcpIpTestDriver();
33
34 ok(KmtSendToDriver(IOCTL_TEST_TDI) == ERROR_SUCCESS, "\n");
35
36 UnloadTcpIpTestDriver();
37 }