Home | History | Annotate | Download | only in tests

Lines Matching refs:f2

20   GInputStream *base, *f1, *f2;
25 f2 = g_buffered_input_stream_new (base);
30 g_assert (g_filter_input_stream_get_base_stream (G_FILTER_INPUT_STREAM (f2)) == base);
34 g_assert (!g_input_stream_is_closed (f2));
39 g_assert (!g_input_stream_is_closed (f2));
41 g_object_unref (f2);
51 GOutputStream *base, *f1, *f2;
55 f2 = g_buffered_output_stream_new (base);
60 g_assert (g_filter_output_stream_get_base_stream (G_FILTER_OUTPUT_STREAM (f2)) == base);
64 g_assert (!g_output_stream_is_closed (f2));
69 g_assert (!g_output_stream_is_closed (f2));
71 g_object_unref (f2);
102 GInputStream *base, *f1, *f2;
106 f2 = g_buffered_input_stream_new (base);
111 g_assert (g_filter_input_stream_get_base_stream (G_FILTER_INPUT_STREAM (f2)) == base);
115 g_assert (!g_input_stream_is_closed (f2));
128 g_assert (!g_input_stream_is_closed (f2));
132 g_assert (!g_input_stream_is_closed (f2));
134 expected_obj = f2;
137 g_input_stream_close_async (f2, 0, NULL, in_cb, expected_data);
145 g_assert (g_input_stream_is_closed (f2));
147 g_object_unref (f2);
174 GOutputStream *base, *f1, *f2;
178 f2 = g_buffered_output_stream_new (base);
183 g_assert (g_filter_output_stream_get_base_stream (G_FILTER_OUTPUT_STREAM (f2)) == base);
187 g_assert (!g_output_stream_is_closed (f2));
200 g_assert (!g_output_stream_is_closed (f2));
204 g_assert (!g_output_stream_is_closed (f2));
206 expected_obj = f2;
209 g_output_stream_close_async (f2, 0, NULL, out_cb, expected_data);
217 g_assert (g_output_stream_is_closed (f2));
219 g_object_unref (f2);