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 #include <gmock/gmock.h>
11 
12 #include <qofquery.h>
13 
14 #include <Query.h>
15 
55 {
56 public:
57  QofFakeQuery(QofIdTypeConst obj_type);
58  ~QofFakeQuery();
59 
60  MOCK_METHOD1(set_book, void(QofBook*));
61  MOCK_METHOD5(add_date_match_tt, void(gboolean, time64, gboolean, time64, QofQueryOp));
62  MOCK_METHOD2(add_single_account_match, void(Account*, QofQueryOp));
63  MOCK_METHOD0(run, std::vector<void*>());
64 
65  QofIdTypeConst m_obj_type;
66 };
67 
68 #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:54
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
Definition: gnc-date.h:87