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
aa80ce8c
Commit
aa80ce8c
authored
Nov 01, 2011
by
Austin English
Committed by
Alexandre Julliard
Nov 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Add some more tests for FindMimeFromData().
parent
25bc31ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
misc.c
dlls/urlmon/tests/misc.c
+25
-0
No files found.
dlls/urlmon/tests/misc.c
View file @
aa80ce8c
...
...
@@ -733,6 +733,31 @@ static void test_FindMimeFromData(void)
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime: %s
\n
"
,
wine_dbgstr_w
(
mime
));
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
url1
,
NULL
,
0
,
NULL
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x, expected S_OK
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextHtml
),
"wrong mime: %s
\n
"
,
wine_dbgstr_w
(
mime
));
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
url1
,
NULL
,
sizeof
(
data1
),
NULL
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x, expected S_OK
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextHtml
),
"wrong mime: %s
\n
"
,
wine_dbgstr_w
(
mime
));
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
url1
,
0
,
0
,
NULL
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x, expected S_OK
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextHtml
),
"wrong mime: %s
\n
"
,
wine_dbgstr_w
(
mime
));
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
url1
,
0
,
sizeof
(
data1
),
NULL
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x, expected S_OK
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextHtml
),
"wrong mime: %s
\n
"
,
wine_dbgstr_w
(
mime
));
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
url1
,
data1
,
sizeof
(
data1
),
NULL
,
0
,
&
mime
,
0
);
ok
(
hres
==
S_OK
,
"FindMimeFromData failed: %08x, expected S_OK
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
mime
,
mimeTextPlain
),
"wrong mime: %s
\n
"
,
wine_dbgstr_w
(
mime
));
CoTaskMemFree
(
mime
);
hres
=
pFindMimeFromData
(
NULL
,
NULL
,
NULL
,
0
,
NULL
,
0
,
&
mime
,
0
);
ok
(
hres
==
E_INVALIDARG
,
"FindMimeFromData failed: %08x, excepted E_INVALIDARG
\n
"
,
hres
);
...
...
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