[gnome-software] snap: Fix self tests



commit 9ce08dee887a1c45d253a66b777f9e035b7ae104
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Mar 2 14:35:44 2018 +1300

    snap: Fix self tests

 plugins/snap/gs-self-test.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/plugins/snap/gs-self-test.c b/plugins/snap/gs-self-test.c
index ce07c5b5..809448bf 100644
--- a/plugins/snap/gs-self-test.c
+++ b/plugins/snap/gs-self-test.c
@@ -43,6 +43,11 @@ snapd_client_new (void)
        return g_object_new (G_TYPE_OBJECT, NULL);
 }
 
+void
+snapd_client_set_allow_interaction (SnapdClient *client, gboolean allow_interaction)
+{
+}
+
 void
 snapd_client_set_auth_data (SnapdClient *client, SnapdAuthData *auth_data)
 {
@@ -69,7 +74,10 @@ snapd_client_set_user_agent (SnapdClient *client, const gchar *user_agent)
 SnapdSystemInformation *
 snapd_client_get_system_information_sync (SnapdClient *client, GCancellable *cancellable, GError **error)
 {
-       return g_object_new (SNAPD_TYPE_SYSTEM_INFORMATION, NULL);
+       return g_object_new (SNAPD_TYPE_SYSTEM_INFORMATION,
+                            "version", "2.31",
+                            "confinement", SNAPD_SYSTEM_CONFINEMENT_STRICT,
+                            NULL);
 }
 
 static SnapdSnap *


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