chromium/third_party/blink/renderer/platform/graphics/offscreen_canvas_placeholder_test.cc

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

#include "third_party/blink/renderer/platform/graphics/offscreen_canvas_placeholder.h"

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/renderer/platform/graphics/canvas_resource_dispatcher.h"
#include "third_party/blink/renderer/platform/graphics/canvas_resource_provider.h"
#include "third_party/blink/renderer/platform/graphics/test/test_webgraphics_shared_image_interface_provider.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"

_;
Mock;
Test;

namespace blink {

namespace {
constexpr uint32_t kClientId =;
constexpr uint32_t kSinkId =;

constexpr size_t kWidth =;
constexpr size_t kHeight =;

class MockCanvasResourceDispatcher : public CanvasResourceDispatcher {};

unsigned GenPlaceholderId() {}

}  // unnamed namespace

class OffscreenCanvasPlaceholderTest : public Test {};

void OffscreenCanvasPlaceholderTest::SetUp() {}

void OffscreenCanvasPlaceholderTest::TearDown() {}

void OffscreenCanvasPlaceholderTest::DrawSomething() {}

CanvasResource* OffscreenCanvasPlaceholderTest::DispatchOneFrame() {}

namespace {

TEST_F(OffscreenCanvasPlaceholderTest, OldFrameSentBack) {}

TEST_F(OffscreenCanvasPlaceholderTest, OldFrameNotReclaimedUntilUnref) {}

}  // namespace

}  // namespace blink