// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_TEST_VIEW_SKIA_GOLD_PIXEL_DIFF_H_ #define UI_VIEWS_TEST_VIEW_SKIA_GOLD_PIXEL_DIFF_H_ #include <string> #include <vector> #include "base/memory/raw_ptr.h" #include "ui/base/test/skia_gold_pixel_diff.h" #include "ui/gfx/native_widget_types.h" namespace gfx { class Rect; class Image; } // namespace gfx namespace ui::test { class SkiaGoldMatchingAlgorithm; class SkiaGoldPixelDiff; } // namespace ui::test namespace views { class View; // This is the utility class to protect views with pixeltest based on Skia Gold. // For an example on how to write pixeltests, please refer to the demo. // NOTE: this class has to be initialized before using. A screenshot prefix and // a corpus string are required for initialization. Check // `SkiaGoldPixelDiff::Init()` for more details. class ViewSkiaGoldPixelDiff { … }; } // namespace views #endif // UI_VIEWS_TEST_VIEW_SKIA_GOLD_PIXEL_DIFF_H_