From 81a22175abbf24f09181da0dfe1ef99a0312604a Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Fri, 10 Apr 2020 14:40:11 +1000 Subject: [PATCH] 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 3786dcc3..e3b01804 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?>( + throws GLib.Error { + return yield object_call_async?>( "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?>( + throws GLib.Error { + return yield object_call_async?>( "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"); }