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
3c8f5c58
Commit
3c8f5c58
authored
Jan 27, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Test current encoding in test_SetData.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b0902a48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
mimeole.c
dlls/inetcomm/tests/mimeole.c
+14
-3
No files found.
dlls/inetcomm/tests/mimeole.c
View file @
3c8f5c58
...
...
@@ -131,6 +131,17 @@ static IStream *create_stream_from_string(const char *data)
return
stream
;
}
#define test_current_encoding(a,b) _test_current_encoding(__LINE__,a,b)
static
void
_test_current_encoding
(
unsigned
line
,
IMimeBody
*
mime_body
,
ENCODINGTYPE
encoding
)
{
ENCODINGTYPE
current_encoding
;
HRESULT
hres
;
hres
=
IMimeBody_GetCurrentEncoding
(
mime_body
,
&
current_encoding
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"GetCurrentEncoding failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)(
current_encoding
==
encoding
,
"encoding = %d, expected %d
\n
"
,
current_encoding
,
encoding
);
}
static
void
test_CreateBody
(
void
)
{
HRESULT
hr
;
...
...
@@ -158,9 +169,7 @@ static void test_CreateBody(void)
hr
=
IMimeBody_InitNew
(
body
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
hr
=
IMimeBody_GetCurrentEncoding
(
body
,
&
enc
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
enc
==
IET_7BIT
,
"encoding %d
\n
"
,
enc
);
test_current_encoding
(
body
,
IET_7BIT
);
hr
=
IMimeBody_Load
(
body
,
in
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
...
...
@@ -445,6 +454,8 @@ static void test_SetData(void)
todo_wine
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
test_current_encoding
(
body
,
IET_BINARY
);
SET_EXPECT
(
Stream_Stat
);
SET_EXPECT
(
Stream_Seek_END
);
hr
=
IMimeBody_GetData
(
body
,
IET_BINARY
,
&
stream
);
...
...
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