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
518e05cb
Commit
518e05cb
authored
Apr 16, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
browseui/tests: Add tests for IProgressDialog.
parent
744acc1d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
1 deletion
+74
-1
Makefile.in
dlls/browseui/tests/Makefile.in
+2
-1
progressdlg.c
dlls/browseui/tests/progressdlg.c
+72
-0
No files found.
dlls/browseui/tests/Makefile.in
View file @
518e05cb
...
@@ -2,6 +2,7 @@ TESTDLL = browseui.dll
...
@@ -2,6 +2,7 @@ TESTDLL = browseui.dll
IMPORTS
=
ole32
IMPORTS
=
ole32
C_SRCS
=
\
C_SRCS
=
\
autocomplete.c
autocomplete.c
\
progressdlg.c
@MAKE_TEST_RULES@
@MAKE_TEST_RULES@
dlls/browseui/tests/progressdlg.c
0 → 100644
View file @
518e05cb
/* Unit tests for progressdialog object
*
* Copyright 2012 Detlef Riekenberg
*
* 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
*/
#define COBJMACROS
#include <stdarg.h>
#include <shlobj.h>
#include "wine/test.h"
static
void
test_IProgressDialog_QueryInterface
(
void
)
{
IProgressDialog
*
dlg
;
IProgressDialog
*
dlg2
;
IOleWindow
*
olewindow
;
IUnknown
*
unk
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_ProgressDialog
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IProgressDialog
,
(
void
*
)
&
dlg
);
if
(
FAILED
(
hr
))
{
win_skip
(
"CoCreateInstance for IProgressDialog returned 0x%x
\n
"
,
hr
);
return
;
}
hr
=
IUnknown_QueryInterface
(
dlg
,
&
IID_IUnknown
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got 0x%x (expected E_POINTER)
\n
"
,
hr
);
hr
=
IUnknown_QueryInterface
(
dlg
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"QueryInterface (IUnknown) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_Release
(
unk
);
}
hr
=
IUnknown_QueryInterface
(
dlg
,
&
IID_IOleWindow
,
(
void
**
)
&
olewindow
);
ok
(
hr
==
S_OK
,
"QueryInterface (IOleWindow) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IUnknown_QueryInterface
(
olewindow
,
&
IID_IProgressDialog
,
(
void
**
)
&
dlg2
);
ok
(
hr
==
S_OK
,
"QueryInterface (IProgressDialog) returned 0x%x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
IProgressDialog_Release
(
dlg2
);
}
IOleWindow_Release
(
olewindow
);
}
IProgressDialog_Release
(
dlg
);
}
START_TEST
(
progressdlg
)
{
CoInitialize
(
NULL
);
test_IProgressDialog_QueryInterface
();
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