[gnome-software] snap: Fix self tests with dummy SnapdClient wrapper



commit ec9ec16a130acadf3ed167e204eb2a22690a9b89
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jul 21 11:09:16 2017 +0100

    snap: Fix self tests with dummy SnapdClient wrapper

 plugins/snap/gs-self-test.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snap/gs-self-test.c b/plugins/snap/gs-self-test.c
index e9fd209..ce07c5b 100644
--- a/plugins/snap/gs-self-test.c
+++ b/plugins/snap/gs-self-test.c
@@ -55,6 +55,17 @@ snapd_client_connect_sync (SnapdClient *client, GCancellable *cancellable, GErro
        return TRUE;
 }
 
+const gchar *
+snapd_client_get_user_agent (SnapdClient *client)
+{
+       return "snapd-glib/0.0.1";
+}
+
+void
+snapd_client_set_user_agent (SnapdClient *client, const gchar *user_agent)
+{
+}
+
 SnapdSystemInformation *
 snapd_client_get_system_information_sync (SnapdClient *client, GCancellable *cancellable, GError **error)
 {


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