diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-07-12 14:35:12 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-07-12 14:35:12 -0400 |
commit | 0725a5fd7cd8a8a3af00b7edbbe8de4216e3f578 (patch) | |
tree | 5d291b7f82102dae6fbd90af09b4eece372b6a59 /tests/dconf-mock.h | |
parent | dd608d06c0868b3dc82105e4b7826ead74510d01 (diff) | |
download | dconf-0725a5fd7cd8a8a3af00b7edbbe8de4216e3f578.tar.gz |
tests/: add more testing code for engine
Add an initial implementation of the gvdb mocking support and improve
the existing shm mock by adding logging.
Use these new features to test the 'user' DConfEngineSource.
Diffstat (limited to 'tests/dconf-mock.h')
-rw-r--r-- | tests/dconf-mock.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/dconf-mock.h b/tests/dconf-mock.h index 8ce7f1f..81c41c4 100644 --- a/tests/dconf-mock.h +++ b/tests/dconf-mock.h @@ -2,5 +2,17 @@ #define __dconf_mock_h__ void dconf_mock_shm_reset (void); +gint dconf_mock_shm_flag (const gchar *name); +void dconf_mock_shm_assert_log (const gchar *expected_log); + +typedef struct _DConfMockGvdbTable DConfMockGvdbTable; + +DConfMockGvdbTable * dconf_mock_gvdb_table_new (void); +void dconf_mock_gvdb_table_insert (DConfMockGvdbTable *table, + const gchar *name, + GVariant *value, + DConfMockGvdbTable *subtable); +void dconf_mock_gvdb_install (const gchar *filename, + DConfMockGvdbTable *table); #endif |