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
a430db9e
Commit
a430db9e
authored
Aug 02, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Add a short test case.
parent
af29c05a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
95 additions
and
0 deletions
+95
-0
configure
configure
+0
-0
configure.ac
configure.ac
+1
-0
.gitignore
dlls/.gitignore
+1
-0
Makefile.in
dlls/Makefile.in
+4
-0
Makefile.in
dlls/hlink/Makefile.in
+3
-0
Makefile.in
dlls/hlink/tests/Makefile.in
+14
-0
hlink.c
dlls/hlink/tests/hlink.c
+72
-0
No files found.
configure
View file @
a430db9e
This diff is collapsed.
Click to expand it.
configure.ac
View file @
a430db9e
...
...
@@ -1617,6 +1617,7 @@ dlls/glut32/Makefile
dlls/gphoto2.ds/Makefile
dlls/hhctrl.ocx/Makefile
dlls/hlink/Makefile
dlls/hlink/tests/Makefile
dlls/iccvid/Makefile
dlls/icmp/Makefile
dlls/ifsmgr.vxd/Makefile
...
...
dlls/.gitignore
View file @
a430db9e
...
...
@@ -94,6 +94,7 @@ dsound/libdsound.def
gdi/libgdi32.def
glu32/libglu32.def
glut32/libglut32.def
hlink/libhlink.def
icmp/libicmp.def
imagehlp/libimagehlp.def
imm32/libimm32.def
...
...
dlls/Makefile.in
View file @
a430db9e
...
...
@@ -475,6 +475,7 @@ IMPORT_LIBS = \
gdi/libgdi32.
$(IMPLIBEXT)
\
glu32/libglu32.
$(IMPLIBEXT)
\
glut32/libglut32.
$(IMPLIBEXT)
\
hlink/libhlink.
$(IMPLIBEXT)
\
icmp/libicmp.
$(IMPLIBEXT)
\
imagehlp/libimagehlp.
$(IMPLIBEXT)
\
imm32/libimm32.
$(IMPLIBEXT)
\
...
...
@@ -669,6 +670,9 @@ glu32/libglu32.$(IMPLIBEXT): glu32/glu32.spec $(WINEBUILD)
glut32/libglut32.$(IMPLIBEXT)
:
glut32/glut32.spec $(WINEBUILD)
@
cd
glut32
&&
$(MAKE)
libglut32.
$(IMPLIBEXT)
hlink/libhlink.$(IMPLIBEXT)
:
hlink/hlink.spec $(WINEBUILD)
@
cd
hlink
&&
$(MAKE)
libhlink.
$(IMPLIBEXT)
icmp/libicmp.$(IMPLIBEXT)
:
icmp/icmp.spec $(WINEBUILD)
@
cd
icmp
&&
$(MAKE)
libicmp.
$(IMPLIBEXT)
...
...
dlls/hlink/Makefile.in
View file @
a430db9e
...
...
@@ -4,6 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
hlink.dll
IMPORTS
=
ole32 advapi32 kernel32
IMPORTLIB
=
libhlink.
$(IMPLIBEXT)
DELAYIMPORTS
=
urlmon
EXTRALIBS
=
-luuid
...
...
@@ -12,6 +13,8 @@ C_SRCS = \
hlink_main.c
\
link.c
SUBDIRS
=
tests
@MAKE_DLL_RULES@
### Dependencies:
dlls/hlink/tests/Makefile.in
0 → 100644
View file @
a430db9e
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
hlink.dll
IMPORTS
=
hlink ole32 kernel32
EXTRALIBS
=
-luuid
CTESTS
=
\
hlink.c
@MAKE_TEST_RULES@
### Dependencies:
dlls/hlink/tests/hlink.c
0 → 100644
View file @
a430db9e
/*
* Implementation of hyperlinking (hlink.dll)
*
* Copyright 2006 Mike McCormack
*
* 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 <hlink.h>
#include <hlguids.h>
#include "wine/test.h"
START_TEST
(
hlink
)
{
HRESULT
r
;
IHlink
*
lnk
=
NULL
;
IMoniker
*
mk
=
NULL
;
const
WCHAR
url
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
0
};
const
WCHAR
url2
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'w'
,
'i'
,
'n'
,
'e'
,
'h'
,
'q'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
0
};
LPWSTR
str
=
NULL
;
CoInitialize
(
NULL
);
r
=
HlinkCreateFromString
(
url
,
NULL
,
NULL
,
NULL
,
0
,
NULL
,
&
IID_IHlink
,
(
LPVOID
*
)
&
lnk
);
ok
(
r
==
S_OK
,
"failed to create link
\n
"
);
if
(
FAILED
(
r
))
return
;
r
=
IHlink_GetMonikerReference
(
lnk
,
HLINKGETREF_DEFAULT
,
NULL
,
NULL
);
ok
(
r
==
S_OK
,
"failed
\n
"
);
r
=
IHlink_GetMonikerReference
(
lnk
,
HLINKGETREF_DEFAULT
,
&
mk
,
&
str
);
ok
(
r
==
S_OK
,
"failed
\n
"
);
ok
(
mk
!=
NULL
,
"no moniker
\n
"
);
ok
(
str
==
NULL
,
"string should be null
\n
"
);
r
=
IMoniker_Release
(
mk
);
ok
(
r
==
1
,
"moniker refcount wrong
\n
"
);
r
=
IHlink_GetStringReference
(
lnk
,
-
1
,
&
str
,
NULL
);
ok
(
r
==
S_OK
,
"failed
\n
"
);
r
=
IHlink_GetStringReference
(
lnk
,
HLINKGETREF_DEFAULT
,
&
str
,
NULL
);
ok
(
r
==
S_OK
,
"failed
\n
"
);
todo_wine
{
ok
(
!
lstrcmpW
(
str
,
url2
),
"url wrong
\n
"
);
}
CoTaskMemFree
(
str
);
r
=
IHlink_GetStringReference
(
lnk
,
HLINKGETREF_DEFAULT
,
NULL
,
NULL
);
ok
(
r
==
S_OK
,
"failed
\n
"
);
r
=
IHlink_GetStringReference
(
lnk
,
HLINKGETREF_DEFAULT
,
NULL
,
&
str
);
ok
(
r
==
S_OK
,
"failed
\n
"
);
ok
(
str
==
NULL
,
"string should be null
\n
"
);
}
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