Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
e252489a
Commit
e252489a
authored
10 years ago
by
Akihiro Sagawa
Committed by
Alexandre Julliard
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
winmm/tests: Add notify flag tests for MPEGVideo driver.
parent
12d057c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winmm/tests/mci.c
+49
-0
49 additions, 0 deletions
dlls/winmm/tests/mci.c
with
49 additions
and
0 deletions
dlls/winmm/tests/mci.c
+
49
−
0
View file @
e252489a
...
...
@@ -1347,6 +1347,54 @@ static void test_playWaveTypeMpegvideo(void)
ok
(
!
err
,
"mci close returned %s
\n
"
,
dbg_mcierr
(
err
));
}
static
void
test_asyncWaveTypeMpegvideo
(
HWND
hwnd
)
{
MCIDEVICEID
wDeviceID
;
int
err
;
char
buf
[
1024
];
memset
(
buf
,
0
,
sizeof
(
buf
));
err
=
mciSendStringA
(
"open tempfile.wav alias mysound notify type mpegvideo"
,
buf
,
sizeof
(
buf
),
hwnd
);
ok
(
err
==
ok_saved
,
"mci open tempfile.wav returned %s
\n
"
,
dbg_mcierr
(
err
));
if
(
err
)
{
skip
(
"Cannot open tempfile.wav for playing (%s), skipping
\n
"
,
dbg_mcierr
(
err
));
return
;
}
ok
(
!
strcmp
(
buf
,
"1"
),
"mci open deviceId: %s, expected 1
\n
"
,
buf
);
wDeviceID
=
atoi
(
buf
);
ok
(
wDeviceID
,
"mci open DeviceID: %d
\n
"
,
wDeviceID
);
test_notification
(
hwnd
,
"open alias notify"
,
MCI_NOTIFY_SUCCESSFUL
);
err
=
mciSendStringA
(
"play mysound notify"
,
NULL
,
0
,
hwnd
);
ok
(
!
err
,
"mci play returned %s
\n
"
,
dbg_mcierr
(
err
));
Sleep
(
500
);
/* milliseconds */
err
=
mciSendStringA
(
"pause mysound wait"
,
NULL
,
0
,
hwnd
);
ok
(
!
err
,
"mci pause wait returned %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendStringA
(
"status mysound mode notify"
,
buf
,
sizeof
(
buf
),
hwnd
);
ok
(
!
err
,
"mci status mode returned %s
\n
"
,
dbg_mcierr
(
err
));
if
(
!
err
)
ok
(
!
strcmp
(
buf
,
"paused"
),
"mci status mode: %s
\n
"
,
buf
);
todo_wine
test_notification
(
hwnd
,
"play (superseded)"
,
MCI_NOTIFY_SUPERSEDED
);
test_notification
(
hwnd
,
"status"
,
MCI_NOTIFY_SUCCESSFUL
);
err
=
mciSendStringA
(
"seek mysound to start wait"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci seek to start wait returned %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendStringA
(
"set mysound time format milliseconds"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci time format milliseconds returned %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendStringA
(
"play mysound to 1500 notify"
,
NULL
,
0
,
hwnd
);
ok
(
!
err
,
"mci play returned %s
\n
"
,
dbg_mcierr
(
err
));
Sleep
(
200
);
todo_wine
test_notification
(
hwnd
,
"play"
,
0
);
err
=
mciSendStringA
(
"close mysound wait"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci close wait returned %s
\n
"
,
dbg_mcierr
(
err
));
todo_wine
test_notification
(
hwnd
,
"play (aborted by close)"
,
MCI_NOTIFY_ABORTED
);
}
START_TEST
(
mci
)
{
char
curdir
[
MAX_PATH
],
tmpdir
[
MAX_PATH
];
...
...
@@ -1367,6 +1415,7 @@ START_TEST(mci)
test_asyncWAVE
(
hwnd
);
test_AutoOpenWAVE
(
hwnd
);
test_playWaveTypeMpegvideo
();
test_asyncWaveTypeMpegvideo
(
hwnd
);
}
else
skip
(
"No output devices available, skipping all output tests
\n
"
);
/* Win9X hangs when exiting with something still open. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment