[folks] eds test: support setting email addresses in test backend



commit 8feed754cad27ad751fc1c6e569ec7de697443bc
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Sun Dec 30 12:17:21 2012 -0800

    eds test: support setting email addresses in test backend

 tests/lib/eds/backend.vala |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/tests/lib/eds/backend.vala b/tests/lib/eds/backend.vala
index c72b417..202c7dc 100644
--- a/tests/lib/eds/backend.vala
+++ b/tests/lib/eds/backend.vala
@@ -272,6 +272,16 @@ public class EdsTest.Backend
                       e.message);
                 }
             }
+          else if (k == "email_addresses")
+            {
+              var v = c.get (k).get_string ();
+              var addresses = v.split (",");
+
+              foreach (var addr in addresses)
+                {
+                  contact.set (E.Contact.field_id ("email"), addr);
+                }
+            }
           else if (k == "im_addresses")
             {
               var v = c.get (k).get_string ();



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