diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-05-19 12:46:52 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-05-19 14:43:05 -0400 |
commit | f2bfd36a6f3eb7e7e2587268be3cc12636703d42 (patch) | |
tree | 6436772fbceb28f07bbfaee528d700159beb0cec /src/mongo/dbtests/mock | |
parent | c10e8282a7af38f8512e911a14889e14df8a2c6a (diff) | |
download | mongo-f2bfd36a6f3eb7e7e2587268be3cc12636703d42.tar.gz |
SERVER-13256: Remove pch - qualify std in headers
Diffstat (limited to 'src/mongo/dbtests/mock')
-rw-r--r-- | src/mongo/dbtests/mock/mock_dbclient_connection.h | 8 | ||||
-rw-r--r-- | src/mongo/dbtests/mock/mock_remote_db_server.h | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/mongo/dbtests/mock/mock_dbclient_connection.h b/src/mongo/dbtests/mock/mock_dbclient_connection.h index a4f902e4e7d..8fa1a890c90 100644 --- a/src/mongo/dbtests/mock/mock_dbclient_connection.h +++ b/src/mongo/dbtests/mock/mock_dbclient_connection.h @@ -78,13 +78,13 @@ namespace mongo { uint64_t getSockCreationMicroSec() const; - virtual void insert(const string& ns, BSONObj obj, int flags = 0); + virtual void insert(const std::string& ns, BSONObj obj, int flags = 0); - virtual void insert(const string& ns, const vector<BSONObj>& objList, int flags = 0); + virtual void insert(const std::string& ns, const std::vector<BSONObj>& objList, int flags = 0); - virtual void remove(const string& ns, Query query, bool justOne = false); + virtual void remove(const std::string& ns, Query query, bool justOne = false); - virtual void remove(const string& ns, Query query, int flags = 0); + virtual void remove(const std::string& ns, Query query, int flags = 0); // // Getters diff --git a/src/mongo/dbtests/mock/mock_remote_db_server.h b/src/mongo/dbtests/mock/mock_remote_db_server.h index 92b6975e68f..61074e4c857 100644 --- a/src/mongo/dbtests/mock/mock_remote_db_server.h +++ b/src/mongo/dbtests/mock/mock_remote_db_server.h @@ -40,7 +40,7 @@ namespace mongo { const std::string IdentityNS("local.me"); - const BSONField<string> HostField("host"); + const BSONField<std::string> HostField("host"); /** * A very simple mock that acts like a database server. Every object keeps track of its own @@ -136,7 +136,7 @@ namespace mongo { * @param obj the document to insert. * @param flags ignored. */ - void insert(const string& ns, BSONObj obj, int flags = 0); + void insert(const std::string& ns, BSONObj obj, int flags = 0); /** * Removes documents from this server. @@ -145,7 +145,7 @@ namespace mongo { * @param query ignored. * @param flags ignored. */ - void remove(const string& ns, Query query, int flags = 0); + void remove(const std::string& ns, Query query, int flags = 0); // // DBClientBase methods @@ -172,7 +172,7 @@ namespace mongo { double getSoTimeout() const; /** - * @return the exact string address passed to hostAndPort parameter of the + * @return the exact std::string address passed to hostAndPort parameter of the * constructor. In other words, doesn't automatically append a * 'default' port if none is specified. */ @@ -212,7 +212,7 @@ namespace mongo { void checkIfUp(InstanceID id) const; typedef unordered_map<std::string, boost::shared_ptr<CircularBSONIterator> > CmdToReplyObj; - typedef unordered_map<std::string, vector<BSONObj> > MockDataMgr; + typedef unordered_map<std::string, std::vector<BSONObj> > MockDataMgr; bool _isRunning; |