diff options
author | Allison Ryan Lortie <desrt@desrt.ca> | 2015-11-30 16:39:59 +0000 |
---|---|---|
committer | Allison Ryan Lortie <desrt@desrt.ca> | 2015-11-30 11:48:56 -0500 |
commit | 014d634529f2a88ff638834dbbe827f6bb82aa16 (patch) | |
tree | affdeab2ef209977320e463b97acf512d2f17b42 /tests/client.c | |
parent | c6423fa1cacb9fb3178016e712be9323a743bce4 (diff) | |
download | dconf-014d634529f2a88ff638834dbbe827f6bb82aa16.tar.gz |
DConfClient: add read_default() API
Add an API to read the default value of a key.
Add a testcase.
https://bugzilla.gnome.org/show_bug.cgi?id=758860
Diffstat (limited to 'tests/client.c')
-rw-r--r-- | tests/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/client.c b/tests/client.c index 7d0f95d..4a3505c 100644 --- a/tests/client.c +++ b/tests/client.c @@ -68,6 +68,7 @@ queue_up_100_writes (DConfClient *client) /* We should always see the most recently written value. */ check_and_free (dconf_client_read (client, "/test/value"), g_variant_new_int32 (i)); + check_and_free (dconf_client_read_default (client, "/test/value"), NULL); } g_assert_cmpint (g_queue_get_length (&dconf_mock_dbus_outstanding_call_handles), ==, 2); @@ -140,6 +141,7 @@ test_fast (void) g_assert (changed_was_called); check_and_free (dconf_client_read (client, "/test/value"), g_variant_new_int32 (99)); + check_and_free (dconf_client_read_default (client, "/test/value"), NULL); } /* Because of the pending-merging logic, we should only have had to @@ -154,6 +156,7 @@ test_fast (void) /* Should read back now as NULL */ check_and_free (dconf_client_read (client, "/test/value"), NULL); + check_and_free (dconf_client_read_default (client, "/test/value"), NULL); /* Cleanup */ g_signal_handlers_disconnect_by_func (client, changed, NULL); |