mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
curlfilesink: Fix event handling in unit test
This commit is contained in:
parent
d03a38c684
commit
99832846a3
1 changed files with 6 additions and 6 deletions
|
@ -143,7 +143,7 @@ GST_START_TEST (test_properties)
|
||||||
/* start playing */
|
/* start playing */
|
||||||
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
||||||
caps = gst_caps_from_string ("application/x-gst-check");
|
caps = gst_caps_from_string ("application/x-gst-check");
|
||||||
fail_unless (gst_pad_set_caps (srcpad, caps));
|
gst_check_setup_events (srcpad, sink, caps, GST_FORMAT_BYTES);
|
||||||
|
|
||||||
/* setup buffer */
|
/* setup buffer */
|
||||||
test_set_and_play_buffer (file_contents);
|
test_set_and_play_buffer (file_contents);
|
||||||
|
@ -201,7 +201,7 @@ GST_START_TEST (test_one_file)
|
||||||
/* start playing */
|
/* start playing */
|
||||||
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
||||||
caps = gst_caps_from_string ("application/x-gst-check");
|
caps = gst_caps_from_string ("application/x-gst-check");
|
||||||
fail_unless (gst_pad_set_caps (srcpad, caps));
|
gst_check_setup_events (srcpad, sink, caps, GST_FORMAT_BYTES);
|
||||||
|
|
||||||
/* setup buffer */
|
/* setup buffer */
|
||||||
test_set_and_play_buffer (file_content);
|
test_set_and_play_buffer (file_content);
|
||||||
|
@ -251,7 +251,7 @@ GST_START_TEST (test_one_big_file)
|
||||||
/* start playing */
|
/* start playing */
|
||||||
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
||||||
caps = gst_caps_from_string ("application/x-gst-check");
|
caps = gst_caps_from_string ("application/x-gst-check");
|
||||||
fail_unless (gst_pad_set_caps (srcpad, caps));
|
gst_check_setup_events (srcpad, sink, caps, GST_FORMAT_BYTES);
|
||||||
|
|
||||||
/* setup first buffer */
|
/* setup first buffer */
|
||||||
test_set_and_play_buffer (file_line1);
|
test_set_and_play_buffer (file_line1);
|
||||||
|
@ -306,7 +306,7 @@ GST_START_TEST (test_two_files)
|
||||||
/* start playing */
|
/* start playing */
|
||||||
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
||||||
caps = gst_caps_from_string ("application/x-gst-check");
|
caps = gst_caps_from_string ("application/x-gst-check");
|
||||||
fail_unless (gst_pad_set_caps (srcpad, caps));
|
gst_check_setup_events (srcpad, sink, caps, GST_FORMAT_BYTES);
|
||||||
|
|
||||||
/* setup first buffer - content of the first file */
|
/* setup first buffer - content of the first file */
|
||||||
test_set_and_play_buffer (file_content1);
|
test_set_and_play_buffer (file_content1);
|
||||||
|
@ -362,7 +362,7 @@ GST_START_TEST (test_create_dirs)
|
||||||
/* start playing */
|
/* start playing */
|
||||||
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
||||||
caps = gst_caps_from_string ("application/x-gst-check");
|
caps = gst_caps_from_string ("application/x-gst-check");
|
||||||
fail_unless (gst_pad_set_caps (srcpad, caps));
|
gst_check_setup_events (srcpad, sink, caps, GST_FORMAT_BYTES);
|
||||||
|
|
||||||
/* setup buffer */
|
/* setup buffer */
|
||||||
test_set_and_play_buffer (file_content);
|
test_set_and_play_buffer (file_content);
|
||||||
|
@ -419,7 +419,7 @@ GST_START_TEST (test_missing_path)
|
||||||
/* start playing */
|
/* start playing */
|
||||||
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
ASSERT_SET_STATE (sink, GST_STATE_PLAYING, GST_STATE_CHANGE_ASYNC);
|
||||||
caps = gst_caps_from_string ("application/x-gst-check");
|
caps = gst_caps_from_string ("application/x-gst-check");
|
||||||
fail_unless (gst_pad_set_caps (srcpad, caps));
|
gst_check_setup_events (srcpad, sink, caps, GST_FORMAT_BYTES);
|
||||||
|
|
||||||
/* setup & play buffer which should fail due to the missing path */
|
/* setup & play buffer which should fail due to the missing path */
|
||||||
test_set_and_fail_to_play_buffer (file_content);
|
test_set_and_fail_to_play_buffer (file_content);
|
||||||
|
|
Loading…
Reference in a new issue