#include "components/services/storage/indexed_db/locks/partitioned_lock_manager.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "base/values.h"
#include "components/services/storage/indexed_db/locks/partitioned_lock.h"
#include "components/services/storage/indexed_db/locks/partitioned_lock_id.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
class BarrierBuilder { … };
template <typename T>
void SetValue(T* out, T value) { … }
std::string IntegerKey(size_t num) { … }
class PartitionedLockManagerTest : public testing::Test { … };
TEST_F(PartitionedLockManagerTest, TestIdPopulation) { … }
TEST_F(PartitionedLockManagerTest, BasicAcquisition) { … }
TEST_F(PartitionedLockManagerTest, Shared) { … }
TEST_F(PartitionedLockManagerTest, SharedAndExclusiveQueuing) { … }
TEST_F(PartitionedLockManagerTest, PartitionsOperateSeparately) { … }
TEST_F(PartitionedLockManagerTest, Prioritize) { … }
TEST_F(PartitionedLockManagerTest, NotReentrant) { … }
TEST_F(PartitionedLockManagerTest, LockReleased) { … }
}
}