chromium/cc/resources/resource_pool_unittest.cc

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cc/resources/resource_pool.h"

#include <stddef.h>

#include <limits>
#include <vector>

#include "base/memory/raw_ptr.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_mock_time_task_runner.h"
#include "base/time/time.h"
#include "components/viz/client/client_resource_provider.h"
#include "components/viz/common/resources/resource_sizes.h"
#include "components/viz/common/resources/returned_resource.h"
#include "components/viz/common/resources/shared_image_format_utils.h"
#include "components/viz/test/test_context_provider.h"
#include "components/viz/test/test_context_support.h"
#include "components/viz/test/test_shared_bitmap_manager.h"
#include "gpu/command_buffer/client/client_shared_image.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace cc {

class ResourcePoolTest : public testing::Test {};

TEST_F(ResourcePoolTest, AcquireRelease) {}

TEST_F(ResourcePoolTest, EventuallyEvictAndFlush) {}

TEST_F(ResourcePoolTest, FlushEvenIfMoreUnusedToEvict) {}

TEST_F(ResourcePoolTest, AccountingSingleResource) {}

TEST_F(ResourcePoolTest, SimpleResourceReuse) {}

TEST_F(ResourcePoolTest, LostResource) {}

TEST_F(ResourcePoolTest, BusyResourcesNotFreed) {}

TEST_F(ResourcePoolTest, UnusedResourcesEventuallyFreed) {}

TEST_F(ResourcePoolTest, UpdateContentId) {}

TEST_F(ResourcePoolTest, UpdateContentIdAndInvalidatedRect) {}

TEST_F(ResourcePoolTest, LargeInvalidatedRect) {}

TEST_F(ResourcePoolTest, ReuseResource) {}

TEST_F(ResourcePoolTest, PurgedMemory) {}

TEST_F(ResourcePoolTest, InvalidateResources) {}

TEST_F(ResourcePoolTest, ExactRequestsRespected) {}

TEST_F(ResourcePoolTest, MetadataSentToDisplayCompositor) {}

TEST_F(ResourcePoolTest, InvalidResource) {}

}  // namespace cc