diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-06-17 17:17:45 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-06-17 17:19:25 +0100 |
commit | 2244e263e394a66db97df383eb67697a126dee38 (patch) | |
tree | 02b82dfd8bce2e446f5aad0d52c03e5680a834a3 | |
parent | ae8b9e9eae3e1fa998eabdf380c0e26061725689 (diff) | |
download | folks-2244e263e394a66db97df383eb67697a126dee38.tar.gz |
tests: Add a synchronous commit helper method to the EDS test utilities
-rw-r--r-- | tests/lib/eds/backend.vala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lib/eds/backend.vala b/tests/lib/eds/backend.vala index 675fa5c0..2d4fae0a 100644 --- a/tests/lib/eds/backend.vala +++ b/tests/lib/eds/backend.vala @@ -223,6 +223,17 @@ public class EdsTest.Backend } } + public void commit_contacts_to_addressbook_sync () + { + var main_loop = new MainLoop (); + this.commit_contacts_to_addressbook.begin ((s, r) => + { + this.commit_contacts_to_addressbook.end (r); + main_loop.quit (); + }); + TestUtils.loop_run_with_timeout (main_loop); + } + private void _set_contact_fields (E.Contact contact, Gee.HashMap<string, Value?> c) { |