Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3b63733b
Commit
3b63733b
authored
Apr 07, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netprofm: Add a couple of tests for INetworkListManager.
parent
14ab04ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
0 deletions
+73
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/netprofm/tests/Makefile.in
+5
-0
list.c
dlls/netprofm/tests/list.c
+66
-0
No files found.
configure
View file @
3b63733b
...
...
@@ -17054,6 +17054,7 @@ wine_fn_config_test dlls/netapi32/tests netapi32_test
wine_fn_config_dll netcfgx enable_netcfgx clean
wine_fn_config_test dlls/netcfgx/tests netcfgx_test
wine_fn_config_dll netprofm enable_netprofm clean
wine_fn_config_test dlls/netprofm/tests netprofm_test
wine_fn_config_dll newdev enable_newdev implib
wine_fn_config_dll normaliz enable_normaliz implib
wine_fn_config_dll npmshtml enable_npmshtml
...
...
configure.ac
View file @
3b63733b
...
...
@@ -3032,6 +3032,7 @@ WINE_CONFIG_TEST(dlls/netapi32/tests)
WINE_CONFIG_DLL(netcfgx,,[clean])
WINE_CONFIG_TEST(dlls/netcfgx/tests)
WINE_CONFIG_DLL(netprofm,,[clean])
WINE_CONFIG_TEST(dlls/netprofm/tests)
WINE_CONFIG_DLL(newdev,,[implib])
WINE_CONFIG_DLL(normaliz,,[implib])
WINE_CONFIG_DLL(npmshtml)
...
...
dlls/netprofm/tests/Makefile.in
0 → 100644
View file @
3b63733b
TESTDLL
=
netprofm.dll
IMPORTS
=
ole32
C_SRCS
=
\
list.c
dlls/netprofm/tests/list.c
0 → 100644
View file @
3b63733b
/*
* Copyright 2014 Hans Leidekker for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
#include "windows.h"
#define COBJMACROS
#include "initguid.h"
#include "objbase.h"
#include "netlistmgr.h"
#include "wine/test.h"
static
void
test_INetworkListManager
(
void
)
{
INetworkListManager
*
mgr
;
NLM_CONNECTIVITY
connectivity
;
VARIANT_BOOL
connected
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_NetworkListManager
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_INetworkListManager
,
(
void
**
)
&
mgr
);
if
(
hr
!=
S_OK
)
{
win_skip
(
"can't create instance of NetworkListManager
\n
"
);
return
;
}
connectivity
=
0xdeadbeef
;
hr
=
INetworkListManager_GetConnectivity
(
mgr
,
&
connectivity
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
connectivity
!=
0xdeadbeef
,
"unchanged value
\n
"
);
trace
(
"GetConnectivity: %08x
\n
"
,
connectivity
);
connected
=
0xdead
;
hr
=
INetworkListManager_IsConnected
(
mgr
,
&
connected
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
connected
==
VARIANT_TRUE
||
connected
==
VARIANT_FALSE
,
"expected boolean value
\n
"
);
connected
=
0xdead
;
hr
=
INetworkListManager_IsConnectedToInternet
(
mgr
,
&
connected
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
connected
==
VARIANT_TRUE
||
connected
==
VARIANT_FALSE
,
"expected boolean value
\n
"
);
INetworkListManager_Release
(
mgr
);
}
START_TEST
(
list
)
{
CoInitialize
(
NULL
);
test_INetworkListManager
();
CoUninitialize
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment