#include "gpu/command_buffer/client/client_discardable_manager.h"
#include "gpu/command_buffer/client/client_discardable_texture_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
namespace {
class FakeCommandBuffer : public CommandBuffer { … };
void UnlockClientHandleForTesting(
const ClientDiscardableHandle& client_handle) { … }
bool DeleteClientHandleForTesting(
const ClientDiscardableHandle& client_handle) { … }
void UnlockAndDeleteClientHandleForTesting(
const ClientDiscardableHandle& client_handle) { … }
}
TEST(ClientDiscardableManagerTest, BasicUsage) { … }
TEST(ClientDiscardableManagerTest, Reuse) { … }
TEST(ClientDiscardableManagerTest, MultipleAllocations) { … }
TEST(ClientDiscardableManagerTest, FreeDeleted) { … }
TEST(ClientDiscardableTextureManagerTest, BasicUsage) { … }
}