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

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

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

#include "base/functional/callback_helpers.h"
#include "base/test/null_task_runner.h"
#include "base/test/task_environment.h"
#include "components/viz/common/resources/release_callback.h"
#include "components/viz/test/test_gles2_interface.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/graphics/canvas_resource_provider.h"
#include "third_party/blink/renderer/platform/graphics/gpu/shared_gpu_context.h"
#include "third_party/blink/renderer/platform/graphics/test/fake_gles2_interface.h"
#include "third_party/blink/renderer/platform/graphics/test/fake_web_graphics_context_3d_provider.h"
#include "third_party/blink/renderer/platform/graphics/test/gpu_test_utils.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "third_party/skia/include/core/SkSurface.h"

namespace blink {
namespace {

_;
ElementsAreArray;
InSequence;
MatcherCast;
Pointee;
SetArgPointee;
SetArrayArgument;
Test;

class MockGLES2InterfaceWithSyncTokenSupport : public viz::TestGLES2Interface {};

GLbyte SyncTokenMatcher(const gpu::SyncToken& token) {}

gpu::SyncToken GenTestSyncToken(GLbyte id) {}

scoped_refptr<StaticBitmapImage> CreateBitmap() {}

class AcceleratedStaticBitmapImageTest : public Test {};

TEST_F(AcceleratedStaticBitmapImageTest, SkImageCached) {}

TEST_F(AcceleratedStaticBitmapImageTest, CopyToTextureSynchronization) {}

}  // namespace
}  // namespace blink