summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_interface_mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog_interface_mock.h')
-rw-r--r--src/mongo/db/repl/oplog_interface_mock.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/mongo/db/repl/oplog_interface_mock.h b/src/mongo/db/repl/oplog_interface_mock.h
index 4c2049a5688..524ab3c8d2f 100644
--- a/src/mongo/db/repl/oplog_interface_mock.h
+++ b/src/mongo/db/repl/oplog_interface_mock.h
@@ -34,21 +34,23 @@
namespace mongo {
namespace repl {
- /**
- * Simulates oplog for testing rollback functionality.
- */
- class OplogInterfaceMock : public OplogInterface {
- MONGO_DISALLOW_COPYING(OplogInterfaceMock);
- public:
- using Operation = std::pair<BSONObj,RecordId>;
- using Operations = std::list<Operation>;
- explicit OplogInterfaceMock(std::initializer_list<Operation> operations);
- explicit OplogInterfaceMock(const Operations& operations);
- std::string toString() const override;
- std::unique_ptr<OplogInterface::Iterator> makeIterator() const override;
- private:
- Operations _operations;
- };
+/**
+ * Simulates oplog for testing rollback functionality.
+ */
+class OplogInterfaceMock : public OplogInterface {
+ MONGO_DISALLOW_COPYING(OplogInterfaceMock);
+
+public:
+ using Operation = std::pair<BSONObj, RecordId>;
+ using Operations = std::list<Operation>;
+ explicit OplogInterfaceMock(std::initializer_list<Operation> operations);
+ explicit OplogInterfaceMock(const Operations& operations);
+ std::string toString() const override;
+ std::unique_ptr<OplogInterface::Iterator> makeIterator() const override;
+
+private:
+ Operations _operations;
+};
-} // namespace repl
-} // namespace mongo
+} // namespace repl
+} // namespace mongo