From d673c32e358c53a49ff8b5ff8d17a661003dc582 Mon Sep 17 00:00:00 2001 From: Christian Gruber Date: Tue, 22 Sep 2020 22:24:57 +0200 Subject: [PATCH] Mock methods should not neccessarily return mock objects --- libgnucash/engine/mocks/gmock-Account.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnucash/engine/mocks/gmock-Account.h b/libgnucash/engine/mocks/gmock-Account.h index 608e11cad8..6b7bbaefa3 100644 --- a/libgnucash/engine/mocks/gmock-Account.h +++ b/libgnucash/engine/mocks/gmock-Account.h @@ -5,8 +5,8 @@ #include #include +#include -#include "gmock-qofbook.h" #include "gmock-gobject.h" @@ -41,7 +41,7 @@ public: MOCK_METHOD0(begin_edit, void()); MOCK_METHOD0(commit_edit, void()); - MOCK_CONST_METHOD0(get_book, QofMockBook*()); + MOCK_CONST_METHOD0(get_book, QofBook*()); MOCK_CONST_METHOD2(for_each_transaction, gint(TransactionCallback, void*)); MOCK_METHOD0(create_imap, GncImportMatchMap*());