Minor fix for MockObject
This commit is contained in:
parent
bb1fe538fd
commit
b80f6b0db4
1 changed files with 3 additions and 3 deletions
|
|
@ -165,11 +165,11 @@ public interface MockObject {
|
|||
return return_object;
|
||||
}
|
||||
|
||||
protected R object_or_throw_call<R>(string name, Object[] args, Error default_error)
|
||||
throws Error {
|
||||
protected R object_or_throw_call<R>(string name, Object[] args, GLib.Error default_error)
|
||||
throws GLib.Error {
|
||||
ExpectedCall? expected = call_made(name, args);
|
||||
|
||||
if (expected.return_object != null) {
|
||||
if (expected.return_object == null) {
|
||||
throw default_error;
|
||||
}
|
||||
return expected.return_object;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue