test: use more literal enums

This commit is contained in:
Thomas Vander Stichele 2012-01-27 18:33:56 +01:00
parent 020739664a
commit 16a675081d
2 changed files with 12 additions and 7 deletions

View file

@ -146,7 +146,6 @@ enum
LAST_SIGNAL
};
/* this is really arbitrarily chosen */
#define DEFAULT_MODE 1
#define DEFAULT_UNIT_FORMAT GST_FORMAT_BUFFERS

View file

@ -494,9 +494,11 @@ GST_START_TEST (test_burst_client_bytes)
/* now add the clients */
g_signal_emit_by_name (sink, "add", pfd1[1]);
g_signal_emit_by_name (sink, "add_full", pfd2[1], 3,
3, (guint64) 50, 3, (guint64) 200);
GST_TCP_UNIT_FORMAT_BYTES, (guint64) 50, GST_TCP_UNIT_FORMAT_BYTES,
(guint64) 200);
g_signal_emit_by_name (sink, "add_full", pfd3[1], 3,
3, (guint64) 50, 3, (guint64) 50);
GST_TCP_UNIT_FORMAT_BYTES, (guint64) 50, GST_TCP_UNIT_FORMAT_BYTES,
(guint64) 50);
/* push last buffer to make client fds ready for reading */
for (i = 9; i < 10; i++) {
@ -584,9 +586,11 @@ GST_START_TEST (test_burst_client_bytes_keyframe)
/* now add the clients */
g_signal_emit_by_name (sink, "add", pfd1[1]);
g_signal_emit_by_name (sink, "add_full", pfd2[1], 4,
3, (guint64) 50, 3, (guint64) 90);
GST_TCP_UNIT_FORMAT_BYTES, (guint64) 50, GST_TCP_UNIT_FORMAT_BYTES,
(guint64) 90);
g_signal_emit_by_name (sink, "add_full", pfd3[1], 4,
3, (guint64) 50, 3, (guint64) 50);
GST_TCP_UNIT_FORMAT_BYTES, (guint64) 50, GST_TCP_UNIT_FORMAT_BYTES,
(guint64) 50);
/* push last buffer to make client fds ready for reading */
for (i = 9; i < 10; i++) {
@ -675,9 +679,11 @@ GST_START_TEST (test_burst_client_bytes_with_keyframe)
/* now add the clients */
g_signal_emit_by_name (sink, "add", pfd1[1]);
g_signal_emit_by_name (sink, "add_full", pfd2[1], 5,
3, (guint64) 50, 3, (guint64) 90);
GST_TCP_UNIT_FORMAT_BYTES, (guint64) 50, GST_TCP_UNIT_FORMAT_BYTES,
(guint64) 90);
g_signal_emit_by_name (sink, "add_full", pfd3[1], 5,
3, (guint64) 50, 3, (guint64) 50);
GST_TCP_UNIT_FORMAT_BYTES, (guint64) 50, GST_TCP_UNIT_FORMAT_BYTES,
(guint64) 50);
/* push last buffer to make client fds ready for reading */
for (i = 9; i < 10; i++) {