diff options
author | Aaron <aaron@10gen.com> | 2009-01-29 22:51:50 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-01-29 22:51:50 -0500 |
commit | d76e24438a58ffa269c4bd8af0a286119d52fe6e (patch) | |
tree | 73b16e63db8cd0a8639a0a8325af744b8ee0ca41 /dbtests | |
parent | df2b701b0fbcd0f76619776036a525dfb24c954a (diff) | |
download | mongo-d76e24438a58ffa269c4bd8af0a286119d52fe6e.tar.gz |
Fix unit tests after dbclient change
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/mockdbclient.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbtests/mockdbclient.h b/dbtests/mockdbclient.h index 9f44a5f212a..739e7e5d666 100644 --- a/dbtests/mockdbclient.h +++ b/dbtests/mockdbclient.h @@ -25,7 +25,7 @@ class MockDBClientConnection : public DBClientConnection { public: MockDBClientConnection() : connect_() {} virtual - BSONObj findOne(const char *ns, BSONObj query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) { + BSONObj findOne(const char *ns, Query query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) { return one_; } virtual @@ -61,11 +61,11 @@ public: rp_( rp ), cc_( cc ) { } - virtual BSONObj findOne(const char *ns, BSONObj query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) { + virtual BSONObj findOne(const char *ns, Query query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) { if ( cc_ ) cc_->beforeCommand(); SetGlobalReplPair s( rp_ ); BSONObjBuilder result; - result.append( "ok", runCommandAgainstRegistered( "admin.$cmd", query, result ) ? 1.0 : 0.0 ); + result.append( "ok", runCommandAgainstRegistered( "admin.$cmd", query.obj, result ) ? 1.0 : 0.0 ); if ( cc_ ) cc_->afterCommand(); return result.doneAndDecouple(); } |