[folks/648811-dummy-backend-rebase1: 39/48] dummy: Add backing store methods for defaultness and trust levels
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks/648811-dummy-backend-rebase1: 39/48] dummy: Add backing store methods for defaultness and trust levels
- Date: Thu, 7 Nov 2013 10:25:54 +0000 (UTC)
commit 3c891eef673fbaf82b627710581c694975748678
Author: Philip Withnall <philip withnall collabora co uk>
Date: Thu Nov 7 08:41:33 2013 +0000
dummy: Add backing store methods for defaultness and trust levels
backends/dummy/lib/dummy-persona-store.vala | 37 ++++++++++++++++++++++++--
1 files changed, 34 insertions(+), 3 deletions(-)
---
diff --git a/backends/dummy/lib/dummy-persona-store.vala b/backends/dummy/lib/dummy-persona-store.vala
index eca0420..5f63b37 100644
--- a/backends/dummy/lib/dummy-persona-store.vala
+++ b/backends/dummy/lib/dummy-persona-store.vala
@@ -54,9 +54,6 @@ using GLib;
* The API in { link FolksDummy} is unstable and may change wildly. It is
* designed mostly for use by libfolks unit tests.
*
- *
- * TODO: trust_level and is_user_set_default can be set as normal properties
- *
* @since UNRELEASED
*/
public class FolksDummy.PersonaStore : Folks.PersonaStore
@@ -1086,4 +1083,38 @@ public class FolksDummy.PersonaStore : Folks.PersonaStore
this.notify_property ("is-quiescent");
}
}
+
+ /**
+ * Update the { link PersonaStore.is_user_set_default} property.
+ *
+ * Backend method for use by test code to simulate a backing-store-driven
+ * change in the { link PersonaStore.is_user_set_default} property.
+ *
+ * @param is_user_set_default new value for the property
+ *
+ * @since UNRELEASED
+ */
+ public void update_is_user_set_default (bool is_user_set_default)
+ {
+ /* Implemented as an ‘update_*()’ method to make it more explicit that
+ * this is for test driver use only. */
+ this.is_user_set_default = is_user_set_default;
+ }
+
+ /**
+ * Update the { link PersonaStore.trust_level} property.
+ *
+ * Backend method for use by test code to simulate a backing-store-driven
+ * change in the { link PersonaStore.trust_level} property.
+ *
+ * @param trust_level new value for the property
+ *
+ * @since UNRELEASED
+ */
+ public void update_trust_level (PersonaStoreTrust trust_level)
+ {
+ /* Implemented as an ‘update_*()’ method to make it more explicit that
+ * this is for test driver use only. */
+ this.trust_level = trust_level;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]