GnuCash  4.14+
fake-qofquery.h
Go to the documentation of this file.
1 
7 #ifndef FAKE_QOFQUERY_H
8 #define FAKE_QOFQUERY_H
9 
10 #include <gmock/gmock.h>
11 
12 #include <qofquery.h>
13 
14 extern "C"
15 {
16 #include <Query.h>
17 }
18 
58 {
59 public:
60  QofFakeQuery(QofIdTypeConst obj_type);
61  ~QofFakeQuery();
62 
63  MOCK_METHOD1(set_book, void(QofBook*));
64  MOCK_METHOD5(add_date_match_tt, void(gboolean, time64, gboolean, time64, QofQueryOp));
65  MOCK_METHOD2(add_single_account_match, void(Account*, QofQueryOp));
66  MOCK_METHOD0(run, std::vector<void*>());
67 
68  QofIdTypeConst m_obj_type;
69 };
70 
71 #endif
const gchar * QofIdTypeConst
QofIdTypeConst declaration.
Definition: qofid.h:87
find objects that match a certain expression.
QofQueryOp
Query Term Operators, for combining Query Terms.
Definition: qofquery.h:93
Fake object providing functionality similar to QofQuery.
Definition: fake-qofquery.h:57
gint64 time64
Many systems, including Microsoft Windows and BSD-derived Unixes like Darwin, are retaining the int-3...
Definition: gnc-date.h:93