GnuCash  5.6-150-g038405b370+
fake-qofquery.h
Go to the documentation of this file.
1 
7 #ifndef FAKE_QOFQUERY_H
8 #define FAKE_QOFQUERY_H
9 
10 #pragma GCC diagnostic push
11 #pragma GCC diagnostic ignored "-Wcpp"
12 #include <gmock/gmock.h>
13 #pragma GCC diagnostic pop
14 
15 
16 #include <qofquery.h>
17 
18 #include <Query.h>
19 
59 {
60 public:
61  QofFakeQuery(QofIdTypeConst obj_type);
62  ~QofFakeQuery();
63 
64  MOCK_METHOD1(set_book, void(QofBook*));
65  MOCK_METHOD5(add_date_match_tt, void(gboolean, time64, gboolean, time64, QofQueryOp));
66  MOCK_METHOD2(add_single_account_match, void(Account*, QofQueryOp));
67  MOCK_METHOD0(run, std::vector<void*>());
68 
69  QofIdTypeConst m_obj_type;
70 };
71 
72 #endif
const gchar * QofIdTypeConst
QofIdTypeConst declaration.
Definition: qofid.h:82
STRUCTS.
find objects that match a certain expression.
QofQueryOp
Query Term Operators, for combining Query Terms.
Definition: qofquery.h:92
Fake object providing functionality similar to QofQuery.
Definition: fake-qofquery.h:58
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
Definition: gnc-date.h:87