#include "ui/gfx/nine_image_painter.h"
#include "base/base64.h"
#include "base/strings/strcat.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/geometry/vector2d_conversions.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/image/image_skia_rep.h"
#include "ui/gfx/image/image_unittest_util.h"
namespace gfx {
static std::string GetPNGDataUrl(const SkBitmap& bitmap) { … }
void ExpectRedWithGreenRect(const SkBitmap& bitmap,
const Rect& outer_rect,
const Rect& green_rect) { … }
TEST(NineImagePainterTest, GetSubsetRegions) { … }
TEST(NineImagePainterTest, PaintHighDPI) { … }
TEST(NineImagePainterTest, PaintStaysInBounds) { … }
TEST(NineImagePainterTest, PaintWithBoundOffset) { … }
TEST(NineImagePainterTest, PaintWithScale) { … }
TEST(NineImagePainterTest, PaintWithNegativeScale) { … }
}