Add missing _get_type() functions of all mocked GObject classes

If a GObject is replaced by a mock up, its _get_type() function has to
be replaced as well. The replaced _get_type() functions have to return
the type of the mock up now.
This commit is contained in:
Christian Gruber 2020-09-22 22:07:21 +02:00
parent 833edd0b29
commit 99256c385b
4 changed files with 22 additions and 0 deletions

View File

@ -23,6 +23,12 @@ gnc_mockaccount_class_init(MockAccountClass *klass)
// function is unused, class functions are defined in C++ code
}
GType gnc_account_get_type(void)
{
return gnc_mockaccount_get_type();
}
void
xaccAccountBeginEdit (Account *account)
{

View File

@ -27,6 +27,11 @@ gnc_mocksplit_class_init (MockSplitClass *klass)
}
GType gnc_split_get_type(void)
{
return gnc_mocksplit_get_type();
}
Split *
xaccMallocSplit (QofBook *book)
{

View File

@ -25,6 +25,11 @@ gnc_mocktransaction_class_init(MockTransactionClass *klass)
}
GType gnc_transaction_get_type(void)
{
return gnc_mocktransaction_get_type();
}
void
xaccTransBeginEdit (Transaction *trans)
{

View File

@ -20,6 +20,12 @@ qof_mockbook_class_init(QofMockBookClass *klass)
// function is unused, class functions are defined in C++ code
}
GType qof_book_get_type(void)
{
return qof_mockbook_get_type();
}
gboolean
qof_book_use_split_action_for_num_field (const QofBook *book)
{