summaryrefslogtreecommitdiff
path: root/tests/client.c
Commit message (Collapse)AuthorAgeFilesLines
* engine: Limit the number of in-flight requests to oneTomasz Miąsko2018-11-161-22/+13
| | | | | | Reduce the number of in-flight requests to one, so as to increase chances of merging pending requests. Drop the in-flight queue since it is no longer useful, replacing it with optional changeset.
* engine: Coalesce pending writes into a single changesetTomasz Miąsko2018-11-161-0/+83
| | | | | | | | | | Instead of queuing changes and sending them to a writer one by one, coalesce them into a single changeset. Coalescing changes requires a little bit more work on the client side, see implementation of `dconf_changeset_change`, but it has chance to substantially reduce the total amount of work necessary and avoid costly disk writes.
* tests: Port log message handling in tests to use structured loggingPhilip Withnall2018-08-161-21/+14
| | | | | | | Otherwise the tests fail now that we’re compiling with G_LOG_USE_STRUCTURED. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* tests: Fix a deprecation warning about source definitionsPhilip Withnall2018-08-101-1/+1
| | | | | | | /usr/include/features.h:183:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" Signed-off-by: Philip Withnall <withnall@endlessm.com>
* client: replace _read_default() with _read_full()Allison Ryan Lortie2015-12-161-3/+3
| | | | | | | | | This API has never appeared in a released version of dconf (even unstable). Replace it with a more generally-useful form. Update the test cases, dconf commandline tool and vapi accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=759128
* DConfClient: add read_default() APIAllison Ryan Lortie2015-11-301-0/+3
| | | | | | | | Add an API to read the default value of a key. Add a testcase. https://bugzilla.gnome.org/show_bug.cgi?id=758860
* Remove calls to g_type_init()Ryan Lortie2012-11-191-3/+0
| | | | Since we now have a hard dependency on the newer GLib anyway.
* tests/: improve DBus mock interfaceRyan Lortie2012-07-161-4/+4
| | | | | Put the queue of the outstanding async calls in the header and add an interface for defining handlers for sync calls.
* massive Makefile reorganisationRyan Lortie2012-07-081-2/+2
| | | | | | | | | | Clean up the Makefiles and make them as similar as possible. Move CFLAGS to a common point of definition and stop using -I so much. Replace the 'dbus stub' with libdconf-mock.a in tests/. Fill in some stubs for future mock code for shm and gvdb (just to get things compiling for now).
* tests/: add a testcase for DConfClientRyan Lortie2012-07-061-0/+179