summaryrefslogtreecommitdiff
path: root/gio/tests
Commit message (Collapse)AuthorAgeFilesLines
* update .gitignoreDan Winship2012-06-121-0/+1
|
* gdbus: Implement g_dbus_connection_get_last_serial()Tomas Bzatek2012-06-061-0/+90
| | | | | | | This patch brings an ability to retrieve serial number of the last message sent within the current thread. https://bugzilla.gnome.org/show_bug.cgi?id=676825
* Improve GResource test coverageMatthias Clasen2012-06-041-3/+109
|
* Improve GSocketAddress test coverageMatthias Clasen2012-06-041-2/+18
|
* Improve GNetworkMonitor test coverageMatthias Clasen2012-06-041-47/+103
|
* Improve GIcon test coverageMatthias Clasen2012-06-041-0/+6
|
* Improve GMenu test coverageMatthias Clasen2012-06-041-7/+57
|
* Improve GApplication test coverageMatthias Clasen2012-06-042-2/+44
|
* Improve GActionGroup test coverageMatthias Clasen2012-06-041-11/+123
|
* Improve GIcon test coverageMatthias Clasen2012-06-041-0/+9
|
* Expand GAppInfo testsMatthias Clasen2012-06-041-0/+15
|
* GConverterInputStream: fix an edge caseDan Winship2012-05-301-0/+163
| | | | | | | | | | | | | | | | | | | | | Reading from a GConverterInputStream with both input_buffer and converted_buffer non-empty would return bogus data (the data from converted_buffer would essentially get skipped over, though the returned nread reflected what the count would be if it hadn't been). This was never noticed before because (a) it can't happen if all of your reads are at least as large as either the internal buffer size or the remaining length of the stream (which covers most real-world use), and (b) it can't happen if all of your reads are 1 byte (which covers most of tests/converter-test). (And (c) it only happens for some converters/input streams.) But this was happening occasionally in libsoup when content-sniffing a gzipped response, because the SoupContentSnifferStream would first read 512 bytes (to sniff), and then pass through larger reads after that. Fixed and added a test to converter-test. https://bugzilla.gnome.org/show_bug.cgi?id=676478
* application: Add dbus register/unregister hooksChristian Persch2012-05-292-0/+103
| | | | | | | | | | When the application is using its D-Bus backend, it is useful to be able to export extra D-Bus objects at the right time, i.e. *before* the application tries to own the bus name. This is accomplished here by adding a hook in GApplicationClass for this; and a corresponding hook that will be called on unregistration to undo whatever the register hook did. Bug #675509.
* gio: add GBytes-based input/output stream methodsDan Winship2012-05-242-0/+53
| | | | | | | | | | | | | 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
* proxy-test: work even when the upstream DNS liesDan Winship2012-05-181-0/+60
| | | | | | Rather than depending on the host's DNS configuration to properly return an error for a non-existent hostname, just substitute in a dummy GResolver implementation that does it for us.
* update .gitignoreDan Winship2012-05-161-0/+1
|
* GAppInfo: add a mechanism to query supported content typesGiovanni Campagna2012-05-162-0/+17
| | | | | | | | | This essentially adds an accessor for the MimeType field in desktop files, to retrieve the list of all mime types supported by an application. The interface though is part of GAppInfo, so it could be implemented in the future by other backends. https://bugzilla.gnome.org/show_bug.cgi?id=674111
* tests: temporarily disable GDBus async proxy testRyan Lortie2012-05-011-0/+2
| | | | | | | It has never worked properly and, with the new GDBus testing stuff, it's occasionally failing. https://bugzilla.gnome.org/show_bug.cgi?id=672248
* contenttype test: don't pass -1 as lengthRyan Lortie2012-05-011-5/+6
| | | | | g_content_type_guess() takes a gsize, not a gssize, and -1 does not mean "I am passing a NULL terminated string".
* Update gio/tests/.gitignoreDan Winship2012-04-301-0/+2
|
* fix warningsDan Winship2012-04-301-1/+1
|
* win32: More srcdir != builddir fixingDieter Verfaillie2012-04-241-1/+1
|
* Make GDataOutputStream implement GSeekableMaciej Piechotka2012-04-231-0/+194
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673034
* Make GBufferedOutputStream implement GSeekableMaciej Piechotka2012-04-231-0/+195
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673034
* Make GBufferedInputStream implement GSeekableMaciej Piechotka2012-04-231-0/+86
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=673034
* gio: add a proxy test programDan Winship2012-04-222-0/+1081
| | | | | | Test GProxy, GProxyResolver, GProxyAddress, and GProxyAddressEnumerator, plus GSocketClient's proxy-resolving codepaths.
* Add gdbus-daemon test appAlexander Larsson2012-04-202-0/+76
|
* Tests: Move dbus specific tests to if HAVE_DBUS_DAEMONAlexander Larsson2012-04-191-5/+11
| | | | | These used to only be built on unix, but if you have dbus-daemon on win32 we should really build them there too.
* Fix test building on win32Alexander Larsson2012-04-191-0/+4
|
* Remove ununsed includeAlexander Larsson2012-04-191-1/+0
|
* Fix race in gdbus-connection testAlexander Larsson2012-04-191-12/+13
| | | | | We need to flush the AddMatches before even connecting to the bus, or we risk missing the NameOwnerChanged from the new connections.
* Use GTestDBus in all GDBus unit testsXavier Claessens2012-04-1922-609/+65
| | | | | | | To make port easier, this rewrites dbus-sessionbus.c using a GTestDBus singleton internally. https://bugzilla.gnome.org/show_bug.cgi?id=672985
* Revert "Add GTestDBus object"David Zeuthen2012-04-1820-52/+469
| | | | This reverts commit 1b5f70b5b035019ba28da6a5db6eff8122e17ae7.
* GMenuModel: Don't leak GDBusConnection in testDavid Zeuthen2012-04-181-0/+1
| | | | | | See https://bugzilla.gnome.org/show_bug.cgi?id=672985#c89 Signed-off-by: David Zeuthen <davidz@redhat.com>
* Add GTestDBus objectXavier Claessens2012-04-1820-469/+52
| | | | | | | | This is a helper to write unit tests using a private dbus-daemon. session_bus_up/down() are now just wrappers around a GTestDBus singleton. https://bugzilla.gnome.org/show_bug.cgi?id=672985
* gdbus-codegen: Don't leak stuff in testsDavid Zeuthen2012-04-171-41/+67
| | | | Signed-off-by: David Zeuthen <davidz@redhat.com>
* gio: implement GPollableInput/OutputStream in more stream typesDan Winship2012-04-171-0/+214
| | | | | | | | Implement GPollableInputStream in GMemoryInputStream and GConverterInputStream, and likewise implement GPollableOutputStream in the corresponding output streams. https://bugzilla.gnome.org/show_bug.cgi?id=673997
* Only build gmenumodel test on unixKalev Lember2012-04-161-1/+1
| | | | It depends on gdbus-sessionbus.c which only builds on unix.
* Add support for MX, TXT, NS and SOA records to GResolverStef Walter2012-04-161-22/+259
| | | | | | | | | | | | * Add resolver functions for looking up DNS records of various types. Currently implemented: MX, TXT, SOA, SRV, NS * Return records as GVariant tuples. * Make the GSrvTarget lookups a wrapper over this new functionality. * Rework the resolver test so that it has support for looking up MX, NS, SOA, TXT records, and uses GOptionContext https://bugzilla.gnome.org/show_bug.cgi?id=672944
* Check that auth methods work and interoperate with libdbus-1David Zeuthen2012-04-142-0/+299
| | | | | | See https://bugzilla.gnome.org/show_bug.cgi?id=673943 Signed-off-by: David Zeuthen <davidz@redhat.com>
* GDesktopAppInfo: add an accessor for StartupWMClassGiovanni Campagna2012-04-142-0/+17
| | | | | | | Components using GIO to do window to application matching can use that field to retrieve potential candidates. https://bugzilla.gnome.org/show_bug.cgi?id=673659
* gdbus: test case for 673612Will Thompson2012-04-101-1/+59
| | | | | | | | | When presented with an array of empty arrays of 8-byte-aligned types, GDBus would incorrectly apply the 8-byte alignment when reading back. https://bugzilla.gnome.org/show_bug.cgi?id=673612 Signed-off-by: David Zeuthen <davidz@redhat.com>
* settings: Improve test coverageMatthias Clasen2012-04-081-0/+11
|
* gdbusserver: Improve test coverageMatthias Clasen2012-04-081-1/+23
|
* icon: Improve test coverageMatthias Clasen2012-04-081-0/+8
|
* contenttype: Improve test coverageMatthias Clasen2012-04-081-0/+70
| | | | | Excercise more parts of the guessing machinery. These tests rely on the mime database being present.
* networkaddress: Improve test coverageMatthias Clasen2012-04-081-1/+36
|
* Make the dbus menu tests independent from the session busMatthias Clasen2012-04-082-2/+15
| | | | | | With this change, DBUS_SESSION_BUS_ADDRESS= make check succeed here.
* ifdef out some unused codeMatthias Clasen2012-04-081-11/+15
| | | | | Nothing wrong with leaving debug spew in the code, but we should not build it if it is not used.