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
010f5729
Commit
010f5729
authored
Jul 06, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added test of IProvideClassInfo.
parent
abfe2486
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
1 deletion
+89
-1
.gitignore
dlls/shdocvw/tests/.gitignore
+1
-0
Makefile.in
dlls/shdocvw/tests/Makefile.in
+2
-1
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+86
-0
No files found.
dlls/shdocvw/tests/.gitignore
View file @
010f5729
Makefile
Makefile
shortcut.ok
shortcut.ok
testlist.c
testlist.c
webbrowser.ok
dlls/shdocvw/tests/Makefile.in
View file @
010f5729
...
@@ -7,7 +7,8 @@ IMPORTS = shell32 ole32 advapi32 kernel32
...
@@ -7,7 +7,8 @@ IMPORTS = shell32 ole32 advapi32 kernel32
EXTRALIBS
=
-luuid
EXTRALIBS
=
-luuid
CTESTS
=
\
CTESTS
=
\
shortcut.c
shortcut.c
\
webbrowser.c
@MAKE_TEST_RULES@
@MAKE_TEST_RULES@
...
...
dlls/shdocvw/tests/webbrowser.c
0 → 100644
View file @
010f5729
/*
* Copyright 2006 Jacek Caban 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
*/
#define COBJMACROS
#include <wine/test.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "exdisp.h"
static
void
test_ClassInfo
(
IUnknown
*
unk
)
{
IProvideClassInfo2
*
class_info
;
GUID
guid
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IProvideClassInfo2
,
(
void
**
)
&
class_info
);
ok
(
hres
==
S_OK
,
"QueryInterface(IID_IProvideClassInfo) failed: %08lx
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
hres
=
IProvideClassInfo2_GetGUID
(
class_info
,
GUIDKIND_DEFAULT_SOURCE_DISP_IID
,
&
guid
);
ok
(
hres
==
S_OK
,
"GetGUID failed: %08lx
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
DIID_DWebBrowserEvents2
,
&
guid
),
"wrong guid
\n
"
);
hres
=
IProvideClassInfo2_GetGUID
(
class_info
,
0
,
&
guid
);
ok
(
hres
==
E_FAIL
,
"GetGUID failed: %08lx, expected E_FAIL
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
IID_NULL
,
&
guid
),
"wrong guid
\n
"
);
hres
=
IProvideClassInfo2_GetGUID
(
class_info
,
2
,
&
guid
);
ok
(
hres
==
E_FAIL
,
"GetGUID failed: %08lx, expected E_FAIL
\n
"
,
hres
);
ok
(
IsEqualGUID
(
&
IID_NULL
,
&
guid
),
"wrong guid
\n
"
);
hres
=
IProvideClassInfo2_GetGUID
(
class_info
,
GUIDKIND_DEFAULT_SOURCE_DISP_IID
,
NULL
);
ok
(
hres
==
E_POINTER
,
"GetGUID failed: %08lx, expected E_POINTER
\n
"
,
hres
);
hres
=
IProvideClassInfo2_GetGUID
(
class_info
,
0
,
NULL
);
ok
(
hres
==
E_POINTER
,
"GetGUID failed: %08lx, expected E_POINTER
\n
"
,
hres
);
IProvideClassInfo2_Release
(
class_info
);
}
static
void
test_WebBrowser
(
void
)
{
IUnknown
*
unk
=
NULL
;
ULONG
ref
;
HRESULT
hres
;
hres
=
CoCreateInstance
(
&
CLSID_WebBrowser
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hres
==
S_OK
,
"CoCreateInterface failed: %08lx
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
test_ClassInfo
(
unk
);
ref
=
IUnknown_Release
(
unk
);
ok
(
ref
==
0
,
"ref=%ld, expected 0
\n
"
,
ref
);
}
START_TEST
(
webbrowser
)
{
OleInitialize
(
NULL
);
test_WebBrowser
();
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