[folks/648811-dummy-backend-rebase1: 17/48] dummy: Validate the types of personas exposed by the persona store



commit fc44d50cdb92a5f8e9c191b102915aab98ee2ba4
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Wed Nov 6 10:46:18 2013 +0000

    dummy: Validate the types of personas exposed by the persona store

 backends/dummy/lib/dummy-persona-store.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/backends/dummy/lib/dummy-persona-store.vala b/backends/dummy/lib/dummy-persona-store.vala
index 02c956e..903f306 100644
--- a/backends/dummy/lib/dummy-persona-store.vala
+++ b/backends/dummy/lib/dummy-persona-store.vala
@@ -840,6 +840,8 @@ public class Dummyf.PersonaStore : Folks.PersonaStore
 
       foreach (var persona in personas)
         {
+          assert (persona.get_type ().is_a (this._persona_type));
+
           if (!this._personas.has_key (persona.iid))
             {
               this._personas.set (persona.iid, persona);


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