File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
database/src/desktop/core Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,16 @@ namespace firebase {
30
30
namespace database {
31
31
namespace internal {
32
32
33
+ bool operator ==(const TrackedQuery& lhs, const TrackedQuery& rhs) {
34
+ return lhs.query_id == rhs.query_id && lhs.query_spec == rhs.query_spec &&
35
+ lhs.last_use == rhs.last_use && lhs.complete == rhs.complete &&
36
+ lhs.active == rhs.active ;
37
+ }
38
+
39
+ bool operator !=(const TrackedQuery& lhs, const TrackedQuery& rhs) {
40
+ return !(lhs == rhs);
41
+ }
42
+
33
43
TrackedQueryManagerInterface::~TrackedQueryManagerInterface () {}
34
44
35
45
// Returns true if the given TrackedQueryMap has a complete default query.
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ struct TrackedQuery {
68
68
bool active;
69
69
};
70
70
71
+ bool operator ==(const TrackedQuery& lhs, const TrackedQuery& rhs);
72
+ bool operator !=(const TrackedQuery& lhs, const TrackedQuery& rhs);
73
+
71
74
typedef std::map<QueryParams, TrackedQuery> TrackedQueryMap;
72
75
73
76
class TrackedQueryManagerInterface {
You can’t perform that action at this time.
0 commit comments