#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/graphics/parkable_image.h"
#include "base/containers/heap_array.h"
#include "base/memory/raw_ptr.h"
#include "base/synchronization/lock.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/platform/disk_data_allocator_test_utils.h"
#include "third_party/blink/renderer/platform/graphics/parkable_image_manager.h"
#include "third_party/blink/renderer/platform/image-decoders/image_decoder_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
ThreadPoolExecutionMode;
namespace blink {
namespace {
class LambdaThreadDelegate : public base::PlatformThread::Delegate { … };
}
class ParkableImageBaseTest : public ::testing::Test { … };
class ParkableImageTest : public ParkableImageBaseTest { … };
class ParkableImageDelayedTest : public ParkableImageBaseTest { … };
class ParkableImageNoParkingTest : public ParkableImageBaseTest { … };
class ParkableImageWithLimitedDiskCapacityTest : public ParkableImageBaseTest { … };
TEST_F(ParkableImageTest, Size) { … }
TEST_F(ParkableImageTest, Frozen) { … }
TEST_F(ParkableImageTest, LockAndUnlock) { … }
TEST_F(ParkableImageTest, Append) { … }
TEST_F(ParkableImageTest, AppendMultiple) { … }
TEST_F(ParkableImageTest, ParkAndUnpark) { … }
TEST_F(ParkableImageTest, ParkTwiceAndUnpark) { … }
TEST_F(ParkableImageTest, ParkAndUnparkSync) { … }
TEST_F(ParkableImageTest, ParkAndUnparkAborted) { … }
TEST_F(ParkableImageTest, ManagerSimple) { … }
TEST_F(ParkableImageTest, ManagerSmall) { … }
TEST_F(ParkableImageTest, ManagerTwo) { … }
TEST_F(ParkableImageTest, ManagerNonFrozen) { … }
TEST_F(ParkableImageNoParkingTest, Unpark) { … }
TEST_F(ParkableImageTest, ManagerStatistics5min) { … }
TEST_F(ParkableImageNoParkingTest, ManagerStatistics5min) { … }
TEST_F(ParkableImageNoParkingTest, ManagerSimple) { … }
TEST_F(ParkableImageTest, ManagerNotUnlocked) { … }
TEST_F(ParkableImageTest, ManagerRescheduleUnfrozen) { … }
TEST_F(ParkableImageTest, DestroyOnSeparateThread) { … }
TEST_F(ParkableImageTest, FailedWrite) { … }
TEST_F(ParkableImageDelayedTest, Simple) { … }
TEST_F(ParkableImageDelayedTest, Read) { … }
TEST_F(ParkableImageDelayedTest, ParkAndUnpark) { … }
TEST_F(ParkableImageWithLimitedDiskCapacityTest, ParkWithLimitedDiskCapacity) { … }
}