chromium/cc/raster/raster_source_unittest.cc

// Copyright 2013 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 "cc/raster/raster_source.h"

#include <stddef.h>

#include <memory>

#include "base/memory/scoped_refptr.h"
#include "base/strings/stringprintf.h"
#include "cc/raster/playback_image_provider.h"
#include "cc/test/fake_recording_source.h"
#include "cc/test/skia_common.h"
#include "cc/test/test_paint_worklet_input.h"
#include "cc/test/test_skcanvas.h"
#include "cc/tiles/software_image_decode_cache.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkPixelRef.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/core/SkScalar.h"
#include "third_party/skia/include/core/SkShader.h"
#include "third_party/skia/include/core/SkSurfaceProps.h"
#include "ui/gfx/geometry/axis_transform2d.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size_conversions.h"

_;
StrictMock;
Sequence;

namespace cc {
namespace {

struct Color {};
std::ostream& operator<<(std::ostream& os, const Color& color) {}
#define EXPECT_COLOR_EQ(a, b)

TEST(RasterSourceTest, AnalyzeIsSolidUnscaled) {}

TEST(RasterSourceTest, AnalyzeIsSolidScaled) {}

TEST(RasterSourceTest, PixelRefIteratorDiscardableRefsOneTile) {}

TEST(RasterSourceTest, RasterFullContents) {}

TEST(RasterSourceTest, RasterFullContentsWithRasterTranslation) {}

TEST(RasterSourceTest, RasterPartialContents) {}

TEST(RasterSourceTest, RasterPartialContentsWithRasterTranslation) {}

TEST(RasterSourceTest, RasterPartialClear) {}

TEST(RasterSourceTest, RasterContentsTransparent) {}

TEST(RasterSourceTest, RasterTransformWithoutRecordingScale) {}

}  // namespace
}  // namespace cc