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
28c94f5a
Commit
28c94f5a
authored
Oct 21, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Added TargetFrameName tests.
parent
34db2d39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
hlink.c
dlls/hlink/tests/hlink.c
+38
-0
No files found.
dlls/hlink/tests/hlink.c
View file @
28c94f5a
...
...
@@ -1821,6 +1821,43 @@ static void test_HlinkClone(void)
IMoniker_Release
(
dummy
);
}
static
void
test_StdHlink
(
void
)
{
IHlink
*
hlink
;
WCHAR
*
str
;
HRESULT
hres
;
static
const
WCHAR
testW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
0
};
hres
=
CoCreateInstance
(
&
CLSID_StdHlink
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
&
IID_IHlink
,
(
void
**
)
&
hlink
);
ok
(
hres
==
S_OK
,
"CoCreateInstance failed: %08x
\n
"
,
hres
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHlink_GetTargetFrameName
(
hlink
,
&
str
);
ok
(
hres
==
S_FALSE
,
"GetTargetFrameName failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"str = %s
\n
"
,
wine_dbgstr_w
(
str
));
hres
=
IHlink_SetTargetFrameName
(
hlink
,
testW
);
ok
(
hres
==
S_OK
,
"SetTargetFrameName failed: %08x
\n
"
,
hres
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHlink_GetTargetFrameName
(
hlink
,
&
str
);
ok
(
hres
==
S_OK
,
"GetTargetFrameName failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
str
,
testW
),
"str = %s
\n
"
,
wine_dbgstr_w
(
str
));
CoTaskMemFree
(
str
);
hres
=
IHlink_SetTargetFrameName
(
hlink
,
NULL
);
ok
(
hres
==
S_OK
,
"SetTargetFrameName failed: %08x
\n
"
,
hres
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IHlink_GetTargetFrameName
(
hlink
,
&
str
);
ok
(
hres
==
S_FALSE
,
"GetTargetFrameName failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"str = %s
\n
"
,
wine_dbgstr_w
(
str
));
IHlink_Release
(
hlink
);
}
START_TEST
(
hlink
)
{
CoInitialize
(
NULL
);
...
...
@@ -1838,6 +1875,7 @@ START_TEST(hlink)
test_HashLink
();
test_HlinkSite
();
test_HlinkClone
();
test_StdHlink
();
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