#include "components/reporting/resources/resource_manager.h"
#include <cstdint>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/reporting/util/test_support_callbacks.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
Eq;
namespace reporting {
namespace {
class ResourceInterfaceTest : public ::testing::TestWithParam<uint64_t> { … };
TEST_P(ResourceInterfaceTest, NestedReservationTest) { … }
TEST_P(ResourceInterfaceTest, SimultaneousReservationTest) { … }
TEST_P(ResourceInterfaceTest, SimultaneousScopedReservationTest) { … }
TEST_P(ResourceInterfaceTest, MoveScopedReservationTest) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationBasicReduction) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationReductionWithLargerNewSize) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationReductionWithNegativeNewSize) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationRepeatingReductions) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationBasicHandOver) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationRepeatingHandOvers) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationRepeatingCopyHandOvers) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationFailureToCopyFromEmpty) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationRepeatingHandOversToEmpty) { … }
TEST_P(ResourceInterfaceTest, ScopedReservationEmptyHandOver) { … }
TEST_P(ResourceInterfaceTest, ReservationOverMaxTest) { … }
class Actor { … };
TEST_P(ResourceInterfaceTest, ReservationWithWaits) { … }
TEST_P(ResourceInterfaceTest, ReservationWithWaitsOnEmptyReservation) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}