#include "components/services/storage/indexed_db/scopes/leveldb_scope.h"
#include <limits>
#include <optional>
#include <utility>
#include "base/containers/flat_set.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/test/bind.h"
#include "components/services/storage/indexed_db/leveldb/fake_leveldb_factory.h"
#include "components/services/storage/indexed_db/locks/partitioned_lock_manager.h"
#include "components/services/storage/indexed_db/scopes/leveldb_scopes.h"
#include "components/services/storage/indexed_db/scopes/leveldb_scopes_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/leveldatabase/src/include/leveldb/slice.h"
namespace content {
namespace {
class LevelDBScopeTest : public LevelDBScopesTestBase { … };
TEST_F(LevelDBScopeTest, BasicUsage) { … }
TEST_F(LevelDBScopeTest, InMemoryAbort) { … }
TEST_F(LevelDBScopeTest, AbortWithRevertTask) { … }
TEST_F(LevelDBScopeTest, ManyScopes) { … }
TEST_F(LevelDBScopeTest, DeleteRangeExclusive) { … }
TEST_F(LevelDBScopeTest, DeleteRangeInclusive) { … }
TEST_F(LevelDBScopeTest, DeleteRangeDeferred) { … }
TEST_F(LevelDBScopeTest, DeleteRangeCompact) { … }
TEST_F(LevelDBScopeTest, RevertWithDeferredDelete) { … }
TEST_F(LevelDBScopeTest, BrokenDBForInitialize) { … }
TEST_F(LevelDBScopeTest, BrokenDBForCommit) { … }
TEST_F(LevelDBScopeTest, BrokenDBForCleanup) { … }
TEST_F(LevelDBScopeTest, BrokenDBForRevert) { … }
TEST_F(LevelDBScopeTest, DeleteNonExistentRangeDoesNotWrite) { … }
}
}