chromium/pdf/paint_manager_unittest.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 "pdf/paint_manager.h"

#include <string_view>
#include <utility>

#include "base/files/file_path.h"
#include "base/run_loop.h"
#include "cc/test/pixel_comparator.h"
#include "cc/test/pixel_test_utils.h"
#include "pdf/paint_ready_rect.h"
#include "pdf/test/test_helpers.h"
#include "testing/gmock/include/gmock/gmock.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/SkImage.h"
#include "third_party/skia/include/core/SkRect.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/geometry/skia_conversions.h"

namespace chrome_pdf {

namespace {

_;
NiceMock;

base::FilePath GetTestDataFilePath(std::string_view filename) {}

class FakeClient : public PaintManager::Client {};

class PaintManagerTest : public testing::Test {};

TEST_F(PaintManagerTest, GetNewContextSizeWhenGrowingBelowMaximum) {}

TEST_F(PaintManagerTest, GetNewContextSizeWhenGrowingAboveMaximum) {}

TEST_F(PaintManagerTest, GetNewContextSizeWhenShrinkingAboveMinimum) {}

TEST_F(PaintManagerTest, GetNewContextSizeWhenShrinkingBelowMinimum) {}

TEST_F(PaintManagerTest, Create) {}

TEST_F(PaintManagerTest, SetSizeWithoutPaint) {}

TEST_F(PaintManagerTest, SetSizeWithPaint) {}

TEST_F(PaintManagerTest, SetTransformWithoutSurface) {}

TEST_F(PaintManagerTest, SetTransformWithSurface) {}

TEST_F(PaintManagerTest, ClearTransform) {}

TEST_F(PaintManagerTest, DoPaintFirst) {}

TEST_F(PaintManagerTest, PaintImage) {}

TEST_F(PaintManagerTest, Scroll) {}

TEST_F(PaintManagerTest, ScrollIgnored) {}

}  // namespace

}  // namespace chrome_pdf