summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_time_validator_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/logical_time_validator_test.cpp')
-rw-r--r--src/mongo/db/logical_time_validator_test.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/logical_time_validator_test.cpp b/src/mongo/db/logical_time_validator_test.cpp
index 3022295b4c3..ce8fea3393e 100644
--- a/src/mongo/db/logical_time_validator_test.cpp
+++ b/src/mongo/db/logical_time_validator_test.cpp
@@ -29,6 +29,8 @@
#include "mongo/platform/basic.h"
+#include <memory>
+
#include "mongo/bson/timestamp.h"
#include "mongo/db/keys_collection_client_sharded.h"
#include "mongo/db/keys_collection_manager.h"
@@ -40,7 +42,6 @@
#include "mongo/db/time_proof_service.h"
#include "mongo/s/catalog/dist_lock_manager_mock.h"
#include "mongo/s/config_server_test_fixture.h"
-#include "mongo/stdx/memory.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/clock_source_mock.h"
@@ -57,9 +58,9 @@ protected:
void setUp() override {
ConfigServerTestFixture::setUp();
- auto clockSource = stdx::make_unique<ClockSourceMock>();
+ auto clockSource = std::make_unique<ClockSourceMock>();
operationContext()->getServiceContext()->setFastClockSource(std::move(clockSource));
- auto catalogClient = stdx::make_unique<KeysCollectionClientSharded>(
+ auto catalogClient = std::make_unique<KeysCollectionClientSharded>(
Grid::get(operationContext())->catalogClient());
const LogicalTime currentTime(LogicalTime(Timestamp(1, 0)));
@@ -67,7 +68,7 @@ protected:
_keyManager = std::make_shared<KeysCollectionManager>(
"dummy", std::move(catalogClient), Seconds(1000));
- _validator = stdx::make_unique<LogicalTimeValidator>(_keyManager);
+ _validator = std::make_unique<LogicalTimeValidator>(_keyManager);
_validator->init(operationContext()->getServiceContext());
}
@@ -82,7 +83,7 @@ protected:
*/
std::unique_ptr<DistLockManager> makeDistLockManager(
std::unique_ptr<DistLockCatalog> distLockCatalog) override {
- return stdx::make_unique<DistLockManagerMock>(std::move(distLockCatalog));
+ return std::make_unique<DistLockManagerMock>(std::move(distLockCatalog));
}
/**