summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/freshness_checker_test.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2016-04-15 11:45:36 -0400
committerBenety Goh <benety@mongodb.com>2016-04-18 15:46:12 -0400
commit2780aef9a4f76ab54f00bb7000e4ecc0219143ec (patch)
tree4653546be915f6a05f45fd5264e0513420a3db95 /src/mongo/db/repl/freshness_checker_test.cpp
parent6811d7c70d13559c3162e8f4333c3c061e5a5220 (diff)
downloadmongo-2780aef9a4f76ab54f00bb7000e4ecc0219143ec.tar.gz
SERVER-18038 ReplicationExecutor no longer requires StorageInterface to create operation context.
Diffstat (limited to 'src/mongo/db/repl/freshness_checker_test.cpp')
-rw-r--r--src/mongo/db/repl/freshness_checker_test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/repl/freshness_checker_test.cpp b/src/mongo/db/repl/freshness_checker_test.cpp
index 9f20ec0101c..45fde9ef816 100644
--- a/src/mongo/db/repl/freshness_checker_test.cpp
+++ b/src/mongo/db/repl/freshness_checker_test.cpp
@@ -34,10 +34,10 @@
#include "mongo/db/repl/member_heartbeat_data.h"
#include "mongo/db/repl/replica_set_config.h"
#include "mongo/db/repl/replication_executor.h"
-#include "mongo/db/repl/storage_interface_mock.h"
#include "mongo/executor/network_interface_mock.h"
#include "mongo/platform/unordered_set.h"
#include "mongo/stdx/functional.h"
+#include "mongo/stdx/memory.h"
#include "mongo/stdx/thread.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/mongoutils/str.h"
@@ -73,7 +73,6 @@ protected:
}
NetworkInterfaceMock* _net;
- StorageInterfaceMock* _storage;
std::unique_ptr<ReplicationExecutor> _executor;
std::unique_ptr<stdx::thread> _executorThread;
@@ -92,8 +91,7 @@ private:
void FreshnessCheckerTest::setUp() {
_net = new NetworkInterfaceMock;
- _storage = new StorageInterfaceMock;
- _executor.reset(new ReplicationExecutor(_net, _storage, 1 /* prng seed */));
+ _executor = stdx::make_unique<ReplicationExecutor>(_net, 1 /* prng seed */);
_executorThread.reset(new stdx::thread(stdx::bind(&ReplicationExecutor::run, _executor.get())));
_checker.reset(new FreshnessChecker);
}