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
90e4ad3b
Commit
90e4ad3b
authored
Nov 22, 2016
by
Bruno Jesus
Committed by
Alexandre Julliard
Nov 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32/tests: Add tests for ICInfo().
Signed-off-by:
Bruno Jesus
<
00cpxxx@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5fb1f639
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
msvfw.c
dlls/msvfw32/tests/msvfw.c
+38
-0
No files found.
dlls/msvfw32/tests/msvfw.c
View file @
90e4ad3b
...
...
@@ -285,9 +285,47 @@ static void test_ICSeqCompress(void)
ok
(
err
==
ICERR_BADHANDLE
,
"Expected -8, got %d
\n
"
,
err
);
}
static
void
test_ICInfo
(
void
)
{
ICINFO
info
,
info2
;
DWORD
i
,
found
;
unsigned
char
*
fcc
;
for
(
i
=
found
=
0
;
ICInfo
(
0
,
i
,
&
info
);
i
++
)
{
trace
(
"Codec name: %s, fccHandler: 0x%08x
\n
"
,
wine_dbgstr_w
(
info
.
szName
),
info
.
fccHandler
);
ok
(
ICInfo
(
info
.
fccType
,
info
.
fccHandler
,
&
info2
),
"ICInfo failed on fcc 0x%08x
\n
"
,
info
.
fccHandler
);
fcc
=
(
unsigned
char
*
)
&
info
.
fccHandler
;
if
(
!
isalpha
(
fcc
[
0
]))
continue
;
found
++
;
/* Test getting info with a different case - bug 41602 */
if
(
fcc
[
0
]
&
0x20
)
{
fcc
[
0
]
&=
~
0x20
;
todo_wine
ok
(
ICInfo
(
info
.
fccType
,
info
.
fccHandler
,
&
info2
),
"ICInfo failed on fcc 0x%08x using lowercase fccHandler
\n
"
,
info
.
fccHandler
);
}
else
{
fcc
[
0
]
|=
0x20
;
todo_wine
ok
(
ICInfo
(
info
.
fccType
,
info
.
fccHandler
,
&
info2
),
"ICInfo failed on fcc 0x%08x using uppercase fccHandler
\n
"
,
info
.
fccHandler
);
}
}
todo_wine
ok
(
found
!=
0
,
"expected at least one codec
\n
"
);
}
START_TEST
(
msvfw
)
{
test_OpenCase
();
test_Locate
();
test_ICSeqCompress
();
test_ICInfo
();
}
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