Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
87212d51
Commit
87212d51
authored
Jul 31, 2010
by
David Hedberg
Committed by
Alexandre Julliard
Aug 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorerframe/tests: Add initial NamespaceTreeControl tests.
parent
46a3e7c2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
0 deletions
+94
-0
configure
configure
+1
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/explorerframe/tests/Makefile.in
+11
-0
nstc.c
dlls/explorerframe/tests/nstc.c
+81
-0
No files found.
configure
View file @
87212d51
...
...
@@ -14504,6 +14504,7 @@ wine_fn_config_dll dxgi enable_dxgi dxgi
wine_fn_config_test dlls/dxgi/tests dxgi_test
wine_fn_config_lib dxguid
wine_fn_config_dll explorerframe enable_explorerframe
wine_fn_config_test dlls/explorerframe/tests explorerframe_test
wine_fn_config_dll faultrep enable_faultrep
wine_fn_config_dll fltlib enable_fltlib
wine_fn_config_dll fusion enable_fusion
...
...
configure.ac
View file @
87212d51
...
...
@@ -2360,6 +2360,7 @@ WINE_CONFIG_DLL(dxgi,,[dxgi])
WINE_CONFIG_TEST(dlls/dxgi/tests)
WINE_CONFIG_LIB(dxguid)
WINE_CONFIG_DLL(explorerframe)
WINE_CONFIG_TEST(dlls/explorerframe/tests)
WINE_CONFIG_DLL(faultrep)
WINE_CONFIG_DLL(fltlib)
WINE_CONFIG_DLL(fusion)
...
...
dlls/explorerframe/tests/Makefile.in
0 → 100644
View file @
87212d51
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
explorerframe.dll
IMPORTS
=
uuid user32 ole32
C_SRCS
=
\
nstc.c
@MAKE_TEST_RULES@
dlls/explorerframe/tests/nstc.c
0 → 100644
View file @
87212d51
/*
* Unit tests for the NamespaceTree Control
*
* Copyright 2010 David Hedberg
*
* 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>
#define COBJMACROS
#include "shlobj.h"
#include "wine/test.h"
static
HWND
hwnd
;
/* "Intended for internal use" */
#define TVS_EX_NOSINGLECOLLAPSE 0x1
/* Returns FALSE if the NamespaceTreeControl failed to be instantiated. */
static
BOOL
test_initialization
(
void
)
{
INameSpaceTreeControl
*
pnstc
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_NamespaceTreeControl
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_INameSpaceTreeControl
,
(
void
**
)
&
pnstc
);
ok
(
hr
==
S_OK
||
hr
==
REGDB_E_CLASSNOTREG
,
"Got 0x%08x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
return
FALSE
;
}
INameSpaceTreeControl_Release
(
pnstc
);
return
TRUE
;
}
static
void
setup_window
(
void
)
{
WNDCLASSA
wc
;
static
const
char
nstctest_wnd_name
[]
=
"nstctest_wnd"
;
ZeroMemory
(
&
wc
,
sizeof
(
WNDCLASSA
));
wc
.
lpfnWndProc
=
DefWindowProcA
;
wc
.
lpszClassName
=
nstctest_wnd_name
;
RegisterClassA
(
&
wc
);
hwnd
=
CreateWindowA
(
nstctest_wnd_name
,
NULL
,
WS_TABSTOP
,
0
,
0
,
200
,
200
,
NULL
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
NULL
,
"Failed to create window for test (lasterror: %d).
\n
"
,
GetLastError
());
}
static
void
destroy_window
(
void
)
{
DestroyWindow
(
hwnd
);
}
START_TEST
(
nstc
)
{
OleInitialize
(
NULL
);
setup_window
();
test_initialization
();
destroy_window
();
OleUninitialize
();
}
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