[folks] tests: Add a synchronous commit helper method to the EDS test utilities



commit 2244e263e394a66db97df383eb67697a126dee38
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Jun 17 17:17:45 2015 +0100

    tests: Add a synchronous commit helper method to the EDS test utilities

 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 675fa5c..2d4fae0 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)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]