[geary/mjog/741-inbox-getting-closed: 1/3] Geary.FolderMock: Convert to use new async mock calls.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/741-inbox-getting-closed: 1/3] Geary.FolderMock: Convert to use new async mock calls.
- Date: Fri, 10 Apr 2020 05:08:11 +0000 (UTC)
commit 3380aa80d0e307fe211e334d5a676d2f6a39030f
Author: Michael Gratton <mike vee net>
Date: Fri Apr 10 14:40:11 2020 +1000
Geary.FolderMock: Convert to use new async mock calls.
test/engine/api/geary-folder-mock.vala | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/test/engine/api/geary-folder-mock.vala b/test/engine/api/geary-folder-mock.vala
index 283a2079..c6865f65 100644
--- a/test/engine/api/geary-folder-mock.vala
+++ b/test/engine/api/geary-folder-mock.vala
@@ -58,8 +58,8 @@ public class Geary.MockFolder : Folder, MockObject {
public override async bool open_async(Folder.OpenFlags open_flags,
Cancellable? cancellable = null)
- throws Error {
- return boolean_call(
+ throws GLib.Error {
+ return yield boolean_call_async(
"open_async",
{ int_arg(open_flags), cancellable },
false
@@ -67,14 +67,14 @@ public class Geary.MockFolder : Folder, MockObject {
}
public override async bool close_async(Cancellable? cancellable = null)
- throws Error {
- return boolean_call(
+ throws GLib.Error {
+ return yield boolean_call_async(
"close_async", { cancellable }, false
);
}
public override async void wait_for_close_async(Cancellable? cancellable = null)
- throws Error {
+ throws GLib.Error {
throw new EngineError.UNSUPPORTED("Mock method");
}
@@ -89,8 +89,8 @@ public class Geary.MockFolder : Folder, MockObject {
Geary.Email.Field required_fields,
Folder.ListFlags flags,
Cancellable? cancellable = null)
- throws Error {
- return object_call<Gee.List<Email>?>(
+ throws GLib.Error {
+ return yield object_call_async<Gee.List<Email>?>(
"list_email_by_id_async",
{initial_id, int_arg(count), box_arg(required_fields), box_arg(flags), cancellable},
null
@@ -102,8 +102,8 @@ public class Geary.MockFolder : Folder, MockObject {
Geary.Email.Field required_fields,
Folder.ListFlags flags,
Cancellable? cancellable = null)
- throws Error {
- return object_call<Gee.List<Email>?>(
+ throws GLib.Error {
+ return yield object_call_async<Gee.List<Email>?>(
"list_email_by_sparse_id_async",
{ids, box_arg(required_fields), box_arg(flags), cancellable},
null
@@ -115,7 +115,7 @@ public class Geary.MockFolder : Folder, MockObject {
Geary.Email.Field required_fields,
Folder.ListFlags flags,
Cancellable? cancellable = null)
- throws Error {
+ throws GLib.Error {
throw new EngineError.UNSUPPORTED("Mock method");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]