summaryrefslogtreecommitdiff
path: root/chromium/components/services/storage/indexed_db/scopes/leveldb_scopes_test_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/services/storage/indexed_db/scopes/leveldb_scopes_test_utils.cc')
-rw-r--r--chromium/components/services/storage/indexed_db/scopes/leveldb_scopes_test_utils.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/chromium/components/services/storage/indexed_db/scopes/leveldb_scopes_test_utils.cc b/chromium/components/services/storage/indexed_db/scopes/leveldb_scopes_test_utils.cc
index 9486bf3a1b0..cf380e68105 100644
--- a/chromium/components/services/storage/indexed_db/scopes/leveldb_scopes_test_utils.cc
+++ b/chromium/components/services/storage/indexed_db/scopes/leveldb_scopes_test_utils.cc
@@ -101,9 +101,7 @@ void LevelDBScopesTestBase::SetUpBreakableDB(
TearDown();
ASSERT_TRUE(temp_directory_.CreateUniqueTempDir());
- leveldb::Status status;
- std::unique_ptr<leveldb::DB> temp_real_db;
- std::tie(temp_real_db, status) =
+ auto [temp_real_db, status] =
leveldb_factory_->OpenDB(temp_directory_.GetPath().AsUTF8Unsafe(),
/*create_if_missing=*/true, kWriteBufferSize);
ASSERT_TRUE(status.ok());
@@ -124,10 +122,8 @@ void LevelDBScopesTestBase::SetUpFlakyDB(
if (leveldb_)
TearDown();
ASSERT_TRUE(temp_directory_.CreateUniqueTempDir());
- leveldb::Status status;
- std::unique_ptr<leveldb::DB> temp_db;
- std::tie(temp_db, status) =
+ auto [temp_db, status] =
leveldb_factory_->OpenDB(temp_directory_.GetPath().AsUTF8Unsafe(),
/*create_if_missing=*/true, kWriteBufferSize);
ASSERT_TRUE(status.ok());