Add missing generic arguments in engine tests to fix valac criticals
See https://gitlab.gnome.org/GNOME/vala/issues/835
This commit is contained in:
parent
9365e8ee46
commit
5c909334b7
2 changed files with 4 additions and 4 deletions
|
|
@ -109,7 +109,7 @@ public class Geary.MockAccount : Account, MockObject {
|
|||
public override EmailIdentifier to_email_identifier(GLib.Variant serialised)
|
||||
throws EngineError.BAD_PARAMETERS {
|
||||
try {
|
||||
return object_or_throw_call(
|
||||
return object_or_throw_call<EmailIdentifier>(
|
||||
"to_email_identifier",
|
||||
{ box_arg(serialised) },
|
||||
new EngineError.BAD_PARAMETERS("Mock error")
|
||||
|
|
@ -124,7 +124,7 @@ public class Geary.MockAccount : Account, MockObject {
|
|||
public override FolderPath to_folder_path(GLib.Variant serialised)
|
||||
throws EngineError.BAD_PARAMETERS {
|
||||
try {
|
||||
return object_or_throw_call(
|
||||
return object_or_throw_call<FolderPath>(
|
||||
"to_folder_path",
|
||||
{ box_arg(serialised) },
|
||||
new EngineError.BAD_PARAMETERS("Mock error")
|
||||
|
|
@ -139,7 +139,7 @@ public class Geary.MockAccount : Account, MockObject {
|
|||
public override Folder get_folder(FolderPath path)
|
||||
throws EngineError.NOT_FOUND {
|
||||
try {
|
||||
return object_or_throw_call(
|
||||
return object_or_throw_call<Folder>(
|
||||
"get_folder",
|
||||
{ path },
|
||||
new EngineError.NOT_FOUND("Mock error")
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class Geary.ImapDB.FolderTest : TestCase {
|
|||
null,
|
||||
(obj, ret) => { async_complete(ret); }
|
||||
);
|
||||
this.folder = traverse(
|
||||
this.folder = traverse<Folder>(
|
||||
this.account.list_folders_async.end(async_result())
|
||||
).first();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue