summaryrefslogtreecommitdiff
path: root/src/mongo/util/tick_source_mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/tick_source_mock.h')
-rw-r--r--src/mongo/util/tick_source_mock.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/mongo/util/tick_source_mock.h b/src/mongo/util/tick_source_mock.h
index 0ee743f7b3f..9600d8ce7c7 100644
--- a/src/mongo/util/tick_source_mock.h
+++ b/src/mongo/util/tick_source_mock.h
@@ -33,27 +33,27 @@
namespace mongo {
+/**
+ * Mock tick source with millisecond resolution that doesn't gives a fixed tick count
+ * until the advance method is called.
+ */
+class TickSourceMock final : public TickSource {
+public:
+ TickSource::Tick getTicks() override;
+
+ TickSource::Tick getTicksPerSecond() override;
+
/**
- * Mock tick source with millisecond resolution that doesn't gives a fixed tick count
- * until the advance method is called.
+ * Advance the ticks by the given amount of milliseconds.
*/
- class TickSourceMock final : public TickSource {
- public:
- TickSource::Tick getTicks() override;
-
- TickSource::Tick getTicksPerSecond() override;
-
- /**
- * Advance the ticks by the given amount of milliseconds.
- */
- void advance(const stdx::chrono::milliseconds& ms);
-
- /**
- * Resets the tick count to the give value.
- */
- void reset(TickSource::Tick tick);
-
- private:
- TickSource::Tick _currentTicks = 0;
- };
-} // namespace mongo
+ void advance(const stdx::chrono::milliseconds& ms);
+
+ /**
+ * Resets the tick count to the give value.
+ */
+ void reset(TickSource::Tick tick);
+
+private:
+ TickSource::Tick _currentTicks = 0;
+};
+} // namespace mongo