summaryrefslogtreecommitdiff
path: root/test/core/my-object.h
Commit message (Collapse)AuthorAgeFilesLines
* Add clearer licensing information using SPDX-License-IdentifierSimon McVittie2019-07-151-0/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add a regression test for fd.o#80557Simon McVittie2018-12-031-0/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* test: stop generating marshallersSimon McVittie2016-01-141-1/+0
| | | | | They haven't been needed since GLib 2.30. Until now, we were also incorrectly distributing the generated marshallers in tarball releases.
* my_object_unsafe_disable_legacy_property_access: have the right signatureSimon McVittie2012-06-281-1/+2
| | | | | | | | I'm amazed this ever worked. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=51511 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Colin Walters <walters@verbum.org>
* MyObject: make ThrowError, AsyncThrowError throw a caller-specified errorSimon McVittie2012-04-171-0/+5
| | | | | | | | | | | | | | | This can be used to test arbitrary errors, but only in-process; in tests with the service out-of-process, like test-dbus-glib, the initial error (matching the error they previously threw) will always be used. This obsoletes ThrowErrorUnderscore, ThrowErrorMultiWord and ThrowNotSupported, but not ThrowUnregisteredError due to some strange assumptions about the validity of GError domains in that method (see GNOME#660731). Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40151 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
* MyObject: register marshallers so individual tests don't have toSimon McVittie2011-08-151-0/+1
| | | | | | | | These marshallers are actually dual-use: they're used to call certain methods on MyObject, and also to bind to its signals. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38406 Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
* Regression test for fd.o #37852Simon McVittie2011-06-021-0/+2
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37852 Reviewed-by: Colin Walters <walters@verbum.org>
* Add a regression test for errors containing underscoresSimon McVittie2011-01-101-1/+2
| | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30274 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
* Respect property access flags for writing, allow disabling for readsColin Walters2010-08-111-0/+5
| | | | | | | | | | | | | | | | | | Because DBus-GLib originally was designed as a generic "object mapping" binding, the handler for org.freedesktop.DBus.Properties simply allowed access (read or write) to any GObject property that was exported. Later, the (compile time) introspection XML was added, and while we only listed "exported" properties in the dynamic introspection XML, we still allowed Get or Set calls to any property that was valid. With this patch, we deny writes to properties which aren't listed in the XML, or are listed as read-only. For backwards compatibility however, we still allow reads. A service may disable this by calling dbus_glib_global_set_disable_legacy_property_access().
* core: don't pass malformed error interface to dbus (rh#581794)Dan Williams2010-04-261-0/+1
| | | | | | | | | | While clients should really register their errors, dbus-glib shouldn't be passing a malformed error interface to dbus either. It's just not nice and libdbus will call abort(). See https://bugzilla.redhat.com/show_bug.cgi?id=581794 Signed-off-by: Colin Walters <walters@verbum.org>
* Fix hyphenated error codes correctlyColin Walters2010-03-021-1/+3
| | | | | | | | The error code names generated my glib-mkenums separate the words by hyphens which are invalid D-BUS error names. This patch converts them back to wincaps, but we can't uppercase the first letter. Based on an original patch from Neil Roberts <neil@linux.intel.com>
* Bug #16776: add a regression testSimon McVittie2009-03-261-0/+1
|
* Bug #17798: add support for 'o', 'g' and 'as' in dictionariesRobert McQueen2008-11-291-0/+4
| | | | | | | | This teaches the parameterised hash table about how to hash, compare and free object paths and signatures, allowing them to be used as hash keys and values, and also how to free strvs, so they can be used as values. Adds some simple test methods which echo a{gas} and a{oas} dictionaries back immediately and compare the results.
* Bug #17797: add support for 'g' type, as a boxed char *Robert McQueen2008-11-291-0/+1
| | | | | Adds DBUS_G_TYPE_SIGNATURE, which is a boxed type just like DBUS_G_TYPE_OBJECT_PATH.
* Add simple test suite for peer objects.Ross Burton2007-03-301-0/+104
Add a simple test suite for peer proxies. This involved refactoring the MyObject class into its own file so that it can be used by multiple tools. Also added is a test suite for dbus_connection_get_g_connection.