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
9229c19d
Commit
9229c19d
authored
Sep 10, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm/tests: Tests for IMimeInternational_FindCharset.
parent
ed3ca136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
mimeintl.c
dlls/inetcomm/tests/mimeintl.c
+26
-0
No files found.
dlls/inetcomm/tests/mimeintl.c
View file @
9229c19d
...
...
@@ -52,9 +52,35 @@ static void test_create(void)
IMimeInternational_Release
(
internat
);
}
static
void
test_charset
(
void
)
{
IMimeInternational
*
internat
;
HRESULT
hr
;
HCHARSET
hcs
,
hcs_windows_1252
,
hcs_windows_1251
;
hr
=
MimeOleGetInternat
(
&
internat
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeInternational_FindCharset
(
internat
,
"non-existent"
,
&
hcs
);
ok
(
hr
==
MIME_E_NOT_FOUND
,
"got %08x
\n
"
,
hr
);
hr
=
IMimeInternational_FindCharset
(
internat
,
"windows-1252"
,
&
hcs_windows_1252
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IMimeInternational_FindCharset
(
internat
,
"windows-1252"
,
&
hcs
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hcs_windows_1252
==
hcs
,
"got different hcharsets for the same name
\n
"
);
hr
=
IMimeInternational_FindCharset
(
internat
,
"windows-1251"
,
&
hcs_windows_1251
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hcs_windows_1252
!=
hcs_windows_1251
,
"got the same hcharset for the different names
\n
"
);
IMimeInternational_Release
(
internat
);
}
START_TEST
(
mimeintl
)
{
OleInitialize
(
NULL
);
test_create
();
test_charset
();
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