summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/matchertests.cpp
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2014-09-11 15:31:21 -0400
committerHari Khalsa <hkhalsa@10gen.com>2014-09-11 16:21:29 -0400
commit1a90996313ec83f0913bf2aef322193b0884f499 (patch)
tree8c93a84b2a7c3fbbedadd7e34c8c9ffd07b9eea7 /src/mongo/dbtests/matchertests.cpp
parentb6e5d1e2af49ebb2edfb6522ba744d344b73c4f6 (diff)
downloadmongo-1a90996313ec83f0913bf2aef322193b0884f499.tar.gz
SERVER-14668 split dbdirectclient out of instance.cpp
Diffstat (limited to 'src/mongo/dbtests/matchertests.cpp')
-rw-r--r--src/mongo/dbtests/matchertests.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/mongo/dbtests/matchertests.cpp b/src/mongo/dbtests/matchertests.cpp
index efe21b9cb88..e4e1bc91316 100644
--- a/src/mongo/dbtests/matchertests.cpp
+++ b/src/mongo/dbtests/matchertests.cpp
@@ -29,8 +29,6 @@
* then also delete it in the license file.
*/
-#include "mongo/pch.h"
-
#include "mongo/db/json.h"
#include "mongo/db/matcher/matcher.h"
#include "mongo/db/operation_context_impl.h"
@@ -41,19 +39,9 @@ namespace MatcherTests {
class CollectionBase {
public:
- CollectionBase() : _ns( "unittests.matchertests" ) {
-
- }
-
- virtual ~CollectionBase() {
- OperationContextImpl txn;
- DBDirectClient client(&txn);
-
- client.dropCollection(_ns);
- }
+ CollectionBase() { }
- protected:
- const char * const _ns;
+ virtual ~CollectionBase() { }
};
template <typename M>