summaryrefslogtreecommitdiff
path: root/gio/tests/memory-output-stream.c
Commit message (Collapse)AuthorAgeFilesLines
* gio: add GBytes-based input/output stream methodsDan Winship2012-05-241-0/+27
| | | | | | | | | | | | | Using a caller-supplied buffer for g_input_stream_read() doesn't translate well to the semantics of many other languages, and using a non-refcounted buffer for read_async() and write_async() makes it impossible to manage the memory correctly currently in garbage-collected languages. Fix both of these issues by adding a new set of methods that work with GBytes objects rather than plain buffers. https://bugzilla.gnome.org/show_bug.cgi?id=671139
* GMemoryOutputStream: Add API to return data as a GBytesColin Walters2012-05-211-0/+38
| | | | | | Matches the corresponding additions to GMemoryInputStream. https://bugzilla.gnome.org/show_bug.cgi?id=672102
* Fix build with gcc-2.*.Antoine Jacoutot2011-05-231-4/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=650884
* Improve coverage of memory stream testsMatthias Clasen2010-07-301-1/+28
|
* tests: Use GPOINTER_TO_SIZE() instead of just casting to guintBenjamin Otte2010-07-221-1/+1
| | | | | a) gcc doesn't like this ("Cast to pointer of different size) b) It compares only half of the pointer
* Fix warningsJuan A. Suarez Romero2010-06-091-1/+1
| | | | Do explicit casts to avoid warnings.
* Add properties to GMemoryOutputStreamMatthias Clasen2010-01-061-0/+37
| | | | This helps bindings. Patch by Krzysztof Kosiński. See bug 605733.
* Revert "Move gio tests from gio/tests/ to tests/gio/"Matthias Clasen2009-07-051-0/+100
| | | | | | This reverts commit 2262d76b33094304ece0d0d9cd5920682599a49b. Move GIO tests back to where they belong.
* Move gio tests from gio/tests/ to tests/gio/Benjamin Otte2009-07-011-100/+0
| | | | | This avoids getting tests built every time when working on libgio and running make in the gio/ directory.
* Bug 540461 – g_memory_output_stream_get_data_size() doesn't behave asAlexander Larsson2009-02-261-0/+9
| | | | | | | | | | | | | | | 2009-02-26 Alexander Larsson <alexl@redhat.com> Bug 540461 – g_memory_output_stream_get_data_size() doesn't behave as document * gmemoryoutputstream.c: Track actual valid size, even if we later seek back. * tests/memory-output-stream.c: Add testcase svn path=/trunk/; revision=7916
* Use g_assert_error() and g_assert_no_error()Dan Winship2008-09-271-3/+3
| | | | | | | | | | | * tests/data-input-stream.c: * tests/data-output-stream.c: * tests/live-g-file.c: * tests/memory-input-stream.c: * tests/memory-output-stream.c: Use g_assert_error() and g_assert_no_error() svn path=/trunk/; revision=7556
* Add some tests for GMemoryOutputStream.Matthias Clasen2008-06-301-0/+91
2008-06-29 Matthias Clasen <mclasen@redhat.com> * tests/Makefile.am: * tests/memory-output-stream.c: Add some tests for GMemoryOutputStream. 2008-06-29 Matthias Clasen <mclasen@redhat.com> Bug 540423 – unrecoverable error after g_seekable_truncate(seekable, 0, ...) * gmemoryoutputstream.c (array_resize): Handle truncation to zero correctly. Reported by Akira Tagoh svn path=/trunk/; revision=7106