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
4c7380b1
Commit
4c7380b1
authored
Sep 15, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Sep 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm/tests: Tests for IMimeInternational_ConvertBuffer.
parent
91599d50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
mimeintl.c
dlls/inetcomm/tests/mimeintl.c
+30
-0
No files found.
dlls/inetcomm/tests/mimeintl.c
View file @
4c7380b1
...
...
@@ -210,11 +210,41 @@ static void test_defaultcharset(void)
IMimeInternational_Release
(
internat
);
}
static
void
test_convert
(
void
)
{
IMimeInternational
*
internat
;
HRESULT
hr
;
BLOB
src
,
dst
;
ULONG
read
;
static
const
char
test_string
[]
=
"test string"
;
hr
=
MimeOleGetInternat
(
&
internat
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
src
.
pBlobData
=
(
BYTE
*
)
test_string
;
src
.
cbSize
=
sizeof
(
test_string
);
hr
=
IMimeInternational_ConvertBuffer
(
internat
,
1252
,
28591
,
&
src
,
&
dst
,
&
read
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
read
==
sizeof
(
test_string
),
"got %d
\n
"
,
read
);
ok
(
dst
.
cbSize
==
sizeof
(
test_string
),
"got %d
\n
"
,
dst
.
cbSize
);
CoTaskMemFree
(
dst
.
pBlobData
);
src
.
cbSize
=
2
;
hr
=
IMimeInternational_ConvertBuffer
(
internat
,
1252
,
28591
,
&
src
,
&
dst
,
&
read
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
read
==
2
,
"got %d
\n
"
,
read
);
ok
(
dst
.
cbSize
==
2
,
"got %d
\n
"
,
dst
.
cbSize
);
CoTaskMemFree
(
dst
.
pBlobData
);
IMimeInternational_Release
(
internat
);
}
START_TEST
(
mimeintl
)
{
OleInitialize
(
NULL
);
test_create
();
test_charset
();
test_defaultcharset
();
test_convert
();
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