diff options
author | Benety Goh <benety@mongodb.com> | 2015-09-04 18:18:14 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2015-09-08 16:23:50 -0400 |
commit | 1925a134af14aec6b8a5d61f2f1c5d122c703aa6 (patch) | |
tree | a3601fc4b22d3e5071ebe78e9813e824a6e2853b /src/mongo/db/repl/replication_coordinator_test_fixture.h | |
parent | 625d077381fb153d2ab90f2624e2a7642e919798 (diff) | |
download | mongo-1925a134af14aec6b8a5d61f2f1c5d122c703aa6.tar.gz |
SERVER-20189 ReplCoordTest now owns the replication executor
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_test_fixture.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_test_fixture.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_test_fixture.h b/src/mongo/db/repl/replication_coordinator_test_fixture.h index 9205b1b0d86..bb57e64eb5c 100644 --- a/src/mongo/db/repl/replication_coordinator_test_fixture.h +++ b/src/mongo/db/repl/replication_coordinator_test_fixture.h @@ -80,6 +80,13 @@ protected: } /** + * Gets the replication executor under test. + */ + ReplicationExecutor* getReplExec() { + return _replExec.get(); + } + + /** * Gets the replication coordinator under test. */ ReplicationCoordinatorImpl* getReplCoord() { @@ -195,10 +202,11 @@ private: std::unique_ptr<ReplicationCoordinatorImpl> _repl; // Owned by ReplicationCoordinatorImpl TopologyCoordinatorImpl* _topo = nullptr; - // Owned by ReplicationCoordinatorImpl + // Owned by ReplicationExecutor executor::NetworkInterfaceMock* _net = nullptr; - // Owned by ReplicationCoordinatorImpl + // Owned by ReplicationExecutor StorageInterfaceMock* _storage = nullptr; + std::unique_ptr<ReplicationExecutor> _replExec; // Owned by ReplicationCoordinatorImpl ReplicationCoordinatorExternalStateMock* _externalState = nullptr; ReplSettings _settings; |