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
13a7ecff
Commit
13a7ecff
authored
Jul 19, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl/tests: Skip tests if function is not implemented.
parent
1edda50c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
atl_ax.c
dlls/atl/tests/atl_ax.c
+20
-8
No files found.
dlls/atl/tests/atl_ax.c
View file @
13a7ecff
...
...
@@ -36,7 +36,14 @@
#include <ocidl.h>
#include <exdisp.h>
HRESULT
WINAPI
AtlAxAttachControl
(
IUnknown
*
,
HWND
,
IUnknown
**
);
static
HRESULT
(
WINAPI
*
pAtlAxAttachControl
)(
IUnknown
*
,
HWND
,
IUnknown
**
);
static
void
init_function_pointers
(
void
)
{
HMODULE
hatl
=
GetModuleHandleA
(
"atl.dll"
);
pAtlAxAttachControl
=
(
void
*
)
GetProcAddress
(
hatl
,
"AtlAxAttachControl"
);
}
static
ATOM
register_class
(
void
)
{
...
...
@@ -64,16 +71,16 @@ static void test_AtlAxAttachControl(void)
HRESULT
hr
;
IUnknown
*
pObj
,
*
pContainer
;
hr
=
AtlAxAttachControl
(
NULL
,
NULL
,
NULL
);
hr
=
p
AtlAxAttachControl
(
NULL
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Expected AtlAxAttachControl to return E_INVALIDARG, got 0x%08x
\n
"
,
hr
);
pContainer
=
(
IUnknown
*
)
0xdeadbeef
;
hr
=
AtlAxAttachControl
(
NULL
,
NULL
,
&
pContainer
);
hr
=
p
AtlAxAttachControl
(
NULL
,
NULL
,
&
pContainer
);
ok
(
hr
==
E_INVALIDARG
,
"Expected AtlAxAttachControl to return E_INVALIDARG, got 0x%08x
\n
"
,
hr
);
ok
(
pContainer
==
(
IUnknown
*
)
0xdeadbeef
,
"Expected the output container pointer to be untouched, got %p
\n
"
,
pContainer
);
hr
=
AtlAxAttachControl
(
NULL
,
hwnd
,
NULL
);
hr
=
p
AtlAxAttachControl
(
NULL
,
hwnd
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Expected AtlAxAttachControl to return E_INVALIDARG, got 0x%08x
\n
"
,
hr
);
hr
=
CoCreateInstance
(
&
CLSID_WebBrowser
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
...
...
@@ -86,12 +93,12 @@ static void test_AtlAxAttachControl(void)
return
;
}
hr
=
AtlAxAttachControl
(
pObj
,
NULL
,
NULL
);
hr
=
p
AtlAxAttachControl
(
pObj
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Expected AtlAxAttachControl to return S_FALSE, got 0x%08x
\n
"
,
hr
);
pContainer
=
(
IUnknown
*
)
0xdeadbeef
;
hr
=
AtlAxAttachControl
(
pObj
,
NULL
,
&
pContainer
);
hr
=
p
AtlAxAttachControl
(
pObj
,
NULL
,
&
pContainer
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Expected AtlAxAttachControl to return S_FALSE, got 0x%08x
\n
"
,
hr
);
ok
(
pContainer
!=
(
IUnknown
*
)
0xdeadbeef
&&
...
...
@@ -101,7 +108,7 @@ static void test_AtlAxAttachControl(void)
if
(
pContainer
!=
(
IUnknown
*
)
0xdeadbeef
&&
pContainer
!=
NULL
)
IUnknown_Release
(
pContainer
);
hr
=
AtlAxAttachControl
(
pObj
,
hwnd
,
NULL
);
hr
=
p
AtlAxAttachControl
(
pObj
,
hwnd
,
NULL
);
ok
(
hr
==
S_OK
,
"Expected AtlAxAttachControl to return S_OK, got 0x%08x
\n
"
,
hr
);
IUnknown_Release
(
pObj
);
...
...
@@ -111,12 +118,17 @@ static void test_AtlAxAttachControl(void)
START_TEST
(
atl_ax
)
{
init_function_pointers
();
if
(
!
register_class
())
return
;
CoInitialize
(
NULL
);
test_AtlAxAttachControl
();
if
(
pAtlAxAttachControl
)
test_AtlAxAttachControl
();
else
win_skip
(
"AtlAxAttachControl is not available
\n
"
);
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