mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
tests: fix indentation
This commit is contained in:
parent
69436d5a61
commit
7335d03070
4 changed files with 114 additions and 109 deletions
|
@ -294,7 +294,8 @@ GST_START_TEST (test_speex_streamable)
|
||||||
fail_unless_equals_uint64 (base_time, GST_BUFFER_DTS (buf));
|
fail_unless_equals_uint64 (base_time, GST_BUFFER_DTS (buf));
|
||||||
fail_unless_equals_uint64 (duration, GST_BUFFER_DURATION (buf));
|
fail_unless_equals_uint64 (duration, GST_BUFFER_DURATION (buf));
|
||||||
fail_unless_equals_uint64 (GST_BUFFER_OFFSET_NONE, GST_BUFFER_OFFSET (buf));
|
fail_unless_equals_uint64 (GST_BUFFER_OFFSET_NONE, GST_BUFFER_OFFSET (buf));
|
||||||
fail_unless_equals_uint64 (GST_BUFFER_OFFSET_NONE, GST_BUFFER_OFFSET_END (buf));
|
fail_unless_equals_uint64 (GST_BUFFER_OFFSET_NONE,
|
||||||
|
GST_BUFFER_OFFSET_END (buf));
|
||||||
gst_buffer_map (buf, &map, GST_MAP_READ);
|
gst_buffer_map (buf, &map, GST_MAP_READ);
|
||||||
/* 0x08 means it is audio */
|
/* 0x08 means it is audio */
|
||||||
fail_unless_equals_int (0x08, map.data[0]);
|
fail_unless_equals_int (0x08, map.data[0]);
|
||||||
|
@ -313,7 +314,8 @@ GST_START_TEST (test_speex_streamable)
|
||||||
fail_unless_equals_uint64 (base_time + duration, GST_BUFFER_DTS (buf));
|
fail_unless_equals_uint64 (base_time + duration, GST_BUFFER_DTS (buf));
|
||||||
fail_unless_equals_uint64 (duration, GST_BUFFER_DURATION (buf));
|
fail_unless_equals_uint64 (duration, GST_BUFFER_DURATION (buf));
|
||||||
fail_unless_equals_uint64 (GST_BUFFER_OFFSET_NONE, GST_BUFFER_OFFSET (buf));
|
fail_unless_equals_uint64 (GST_BUFFER_OFFSET_NONE, GST_BUFFER_OFFSET (buf));
|
||||||
fail_unless_equals_uint64 (GST_BUFFER_OFFSET_NONE, GST_BUFFER_OFFSET_END (buf));
|
fail_unless_equals_uint64 (GST_BUFFER_OFFSET_NONE,
|
||||||
|
GST_BUFFER_OFFSET_END (buf));
|
||||||
gst_buffer_map (buf, &map, GST_MAP_READ);
|
gst_buffer_map (buf, &map, GST_MAP_READ);
|
||||||
/* 0x08 means it is audio */
|
/* 0x08 means it is audio */
|
||||||
fail_unless_equals_int (0x08, map.data[0]);
|
fail_unless_equals_int (0x08, map.data[0]);
|
||||||
|
@ -328,6 +330,7 @@ GST_START_TEST (test_speex_streamable)
|
||||||
|
|
||||||
gst_harness_teardown (h);
|
gst_harness_teardown (h);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
static Suite *
|
static Suite *
|
||||||
|
|
|
@ -59,6 +59,7 @@ GST_START_TEST (test_h263depay_start_packet_too_small_mode_a)
|
||||||
|
|
||||||
gst_harness_teardown (h);
|
gst_harness_teardown (h);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
GST_START_TEST (test_h263depay_start_packet_too_small_mode_b)
|
GST_START_TEST (test_h263depay_start_packet_too_small_mode_b)
|
||||||
|
@ -78,6 +79,7 @@ GST_START_TEST (test_h263depay_start_packet_too_small_mode_b)
|
||||||
|
|
||||||
gst_harness_teardown (h);
|
gst_harness_teardown (h);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
GST_START_TEST (test_h263depay_start_packet_too_small_mode_c)
|
GST_START_TEST (test_h263depay_start_packet_too_small_mode_c)
|
||||||
|
@ -97,6 +99,7 @@ GST_START_TEST (test_h263depay_start_packet_too_small_mode_c)
|
||||||
|
|
||||||
gst_harness_teardown (h);
|
gst_harness_teardown (h);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
static Suite *
|
static Suite *
|
||||||
|
|
|
@ -649,9 +649,8 @@ GST_START_TEST (test_two_lost_one_arrives_in_time)
|
||||||
/* the first lost buffer (buffer 3) out on
|
/* the first lost buffer (buffer 3) out on
|
||||||
* (buffer-timestamp (60) + latency (100) = 160) */
|
* (buffer-timestamp (60) + latency (100) = 160) */
|
||||||
gst_test_clock_wait_for_next_pending_id (testclock, &id);
|
gst_test_clock_wait_for_next_pending_id (testclock, &id);
|
||||||
fail_unless_equals_uint64 (
|
fail_unless_equals_uint64 (3 * PCMU_BUF_DURATION +
|
||||||
3 * PCMU_BUF_DURATION + jb_latency_ms * GST_MSECOND,
|
jb_latency_ms * GST_MSECOND, gst_clock_id_get_time (id));
|
||||||
gst_clock_id_get_time (id));
|
|
||||||
gst_clock_id_unref (id);
|
gst_clock_id_unref (id);
|
||||||
|
|
||||||
/* let the time expire... */
|
/* let the time expire... */
|
||||||
|
@ -1057,8 +1056,8 @@ GST_START_TEST (test_rtx_packet_delay)
|
||||||
* are exceeding the max allowed reorder distance and should request a
|
* are exceeding the max allowed reorder distance and should request a
|
||||||
* retransmission right away */
|
* retransmission right away */
|
||||||
fail_unless_equals_int (GST_FLOW_OK,
|
fail_unless_equals_int (GST_FLOW_OK,
|
||||||
gst_harness_push (h, generate_test_buffer_full (
|
gst_harness_push (h, generate_test_buffer_full (20 * GST_MSECOND, TRUE, 8,
|
||||||
20 * GST_MSECOND, TRUE, 8, 8 * PCMU_RTP_TS_DURATION)));
|
8 * PCMU_RTP_TS_DURATION)));
|
||||||
|
|
||||||
/* drop reconfigure event */
|
/* drop reconfigure event */
|
||||||
gst_event_unref (gst_harness_pull_upstream_event (h));
|
gst_event_unref (gst_harness_pull_upstream_event (h));
|
||||||
|
@ -1079,8 +1078,8 @@ GST_START_TEST (test_rtx_packet_delay)
|
||||||
|
|
||||||
/* push 9, this should immediately request retransmission of 5 */
|
/* push 9, this should immediately request retransmission of 5 */
|
||||||
fail_unless_equals_int (GST_FLOW_OK,
|
fail_unless_equals_int (GST_FLOW_OK,
|
||||||
gst_harness_push (h, generate_test_buffer_full (
|
gst_harness_push (h, generate_test_buffer_full (20 * GST_MSECOND, TRUE, 9,
|
||||||
20 * GST_MSECOND, TRUE, 9, 9 * PCMU_RTP_TS_DURATION)));
|
9 * PCMU_RTP_TS_DURATION)));
|
||||||
|
|
||||||
/* we should now receive retransmission requests for 5 */
|
/* we should now receive retransmission requests for 5 */
|
||||||
out_event = gst_harness_pull_upstream_event (h);
|
out_event = gst_harness_pull_upstream_event (h);
|
||||||
|
|
Loading…
Reference in a new issue