[tracker/wip/carlosg/compiler-warnings: 9/10] functional-tests: Add GLib.Error on D-Bus methods
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/compiler-warnings: 9/10] functional-tests: Add GLib.Error on D-Bus methods
- Date: Fri, 12 Oct 2018 10:21:49 +0000 (UTC)
commit c6c01d113416649032b409639ba45f2fc3e68a0a
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Oct 1 01:29:54 2018 +0200
functional-tests: Add GLib.Error on D-Bus methods
Modern vala recommends this.
tests/functional-tests/ipc/test-busy-handling.vala | 6 +++---
tests/functional-tests/ipc/test-class-signal-performance-batch.vala | 4 ++--
tests/functional-tests/ipc/test-class-signal-performance.vala | 2 +-
tests/functional-tests/ipc/test-class-signal.vala | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/tests/functional-tests/ipc/test-busy-handling.vala
b/tests/functional-tests/ipc/test-busy-handling.vala
index 42297e10b..27ecdfa15 100644
--- a/tests/functional-tests/ipc/test-busy-handling.vala
+++ b/tests/functional-tests/ipc/test-busy-handling.vala
@@ -29,14 +29,14 @@
[DBus (name = "org.freedesktop.Tracker1.Resources")]
private interface Resources : DBusProxy {
[DBus (name = "SparqlQuery", timeout = 99999999999)]
- public abstract async string[,] sparql_query (string query) throws DBusError;
+ public abstract async string[,] sparql_query (string query) throws GLib.Error, DBusError;
}
[DBus (name = "org.freedesktop.Tracker1.Status")]
private interface Status: DBusProxy {
public signal void progress (string status, double progress);
- public abstract double get_progress () throws DBusError;
- public abstract string get_status () throws DBusError;
+ public abstract double get_progress () throws GLib.Error, DBusError;
+ public abstract string get_status () throws GLib.Error, DBusError;
}
public class TestApp {
diff --git a/tests/functional-tests/ipc/test-class-signal-performance-batch.vala
b/tests/functional-tests/ipc/test-class-signal-performance-batch.vala
index 7c8d9b65c..c3185e2a5 100644
--- a/tests/functional-tests/ipc/test-class-signal-performance-batch.vala
+++ b/tests/functional-tests/ipc/test-class-signal-performance-batch.vala
@@ -35,9 +35,9 @@ private interface Resources : DBusProxy {
[DBus (name = "GraphUpdated")]
public signal void graph_updated (string class_name, Event[] deletes, Event[] inserts);
[DBus (name = "BatchSparqlUpdate")]
- public abstract async void batch_sparql_update_async (string query) throws Sparql.Error, DBusError;
+ public abstract async void batch_sparql_update_async (string query) throws GLib.Error, Sparql.Error,
DBusError;
[DBus (name = "SparqlUpdate")]
- public abstract async void sparql_update_async (string query) throws Sparql.Error, DBusError;
+ public abstract async void sparql_update_async (string query) throws GLib.Error, Sparql.Error,
DBusError;
}
public class TestApp {
diff --git a/tests/functional-tests/ipc/test-class-signal-performance.vala
b/tests/functional-tests/ipc/test-class-signal-performance.vala
index 26c25abf2..e97671c95 100644
--- a/tests/functional-tests/ipc/test-class-signal-performance.vala
+++ b/tests/functional-tests/ipc/test-class-signal-performance.vala
@@ -57,7 +57,7 @@ private interface Resources : DBusProxy {
public signal void graph_updated (string class_name, Event[] deletes, Event[] inserts);
[DBus (name = "SparqlUpdate")]
- public abstract async void sparql_update_async (string query) throws Sparql.Error, DBusError;
+ public abstract async void sparql_update_async (string query) throws GLib.Error, Sparql.Error,
DBusError;
}
[DBus (name = "org.freedesktop.Tracker1.Resources.Class")]
diff --git a/tests/functional-tests/ipc/test-class-signal.vala
b/tests/functional-tests/ipc/test-class-signal.vala
index 0cc61af0b..0b0f8bb1b 100644
--- a/tests/functional-tests/ipc/test-class-signal.vala
+++ b/tests/functional-tests/ipc/test-class-signal.vala
@@ -37,7 +37,7 @@ private interface Resources : DBusProxy {
public signal void graph_updated (string class_name, Event[] deletes, Event[] inserts);
[DBus (name = "SparqlUpdate")]
- public abstract async void sparql_update_async (string query) throws Sparql.Error, DBusError;
+ public abstract async void sparql_update_async (string query) throws GLib.Error, Sparql.Error,
DBusError;
}
public class TestApp {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]