tests/buffered-input-stream: Fix size of parameter passed

buffer-size is guint, but the public API is gsize for some reason.

Tested-By: gustavold@linux.vnet.ibm.com

https://bugzilla.gnome.org/show_bug.cgi?id=687801
This commit is contained in:
Colin Walters 2012-11-06 15:04:47 -05:00
parent d5df0a10f1
commit 753494a25e

View File

@ -88,6 +88,7 @@ test_set_buffer_size (void)
{
GInputStream *base;
GInputStream *in;
guint bufsize_prop;
gsize size, bufsize;
base = g_memory_input_stream_new_from_data ("abcdefghijk", -1, NULL);
@ -105,8 +106,8 @@ test_set_buffer_size (void)
g_buffered_input_stream_set_buffer_size (G_BUFFERED_INPUT_STREAM (in), 2);
size = g_buffered_input_stream_get_buffer_size (G_BUFFERED_INPUT_STREAM (in));
g_assert_cmpint (size, ==, bufsize);
g_object_get (in, "buffer-size", &size, NULL);
g_assert_cmpint (size, ==, bufsize);
g_object_get (in, "buffer-size", &bufsize_prop, NULL);
g_assert_cmpint (bufsize_prop, ==, bufsize);
g_object_unref (in);