summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_test_fixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_test_fixture.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator_test_fixture.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_test_fixture.h b/src/mongo/db/repl/replication_coordinator_test_fixture.h
index 9f1b27aabea..e1aaa9ca6d1 100644
--- a/src/mongo/db/repl/replication_coordinator_test_fixture.h
+++ b/src/mongo/db/repl/replication_coordinator_test_fixture.h
@@ -112,6 +112,13 @@ protected:
}
/**
+ * Gets the storage interface.
+ */
+ StorageInterfaceMock* getStorageInterface() {
+ return _storageInterface;
+ }
+
+ /**
* Gets the topology coordinator used by the replication coordinator under test.
*/
TopologyCoordinatorImpl& getTopoCoord() {
@@ -267,6 +274,8 @@ private:
ReplicationCoordinatorExternalStateMock* _externalState = nullptr;
// Owned by ReplicationCoordinatorImpl
executor::TaskExecutor* _replExec = nullptr;
+ // Owned by the ServiceContext
+ StorageInterfaceMock* _storageInterface = nullptr;
ReplSettings _settings;
bool _callShutdown = false;