#include <utility>
#include <vector>
#include "base/test/task_environment.h"
#include "mojo/public/cpp/bindings/receiver_set.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/image/image_skia_operations.h"
#include "ui/gfx/image/image_skia_source.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/gfx/image/mojom/image.mojom.h"
#include "ui/gfx/image/mojom/image_skia_mojom_traits.h"
namespace gfx {
namespace {
class TestImageSkiaSource : public ImageSkiaSource { … };
mojo::StructPtr<mojom::ImageSkiaRep> ConstructImageSkiaRep(
const SkBitmap& bitmap,
float scale) { … }
}
TEST(ImageTraitsTest, VerifyMojomConstruction) { … }
TEST(ImageTraitsTest, BadColorTypeImageSkiaRep_Deserialize) { … }
TEST(ImageTraitsTest, EmptyImageSkiaRep_Deserialize) { … }
TEST(ImageTraitsTest, ValidImageSkiaRep) { … }
TEST(ImageTraitsTest, UnscaledImageSkiaRep) { … }
TEST(ImageTraitsTest, NullImageSkia) { … }
TEST(ImageTraitsTest, ImageSkiaRepsAreCreatedAsNeeded) { … }
TEST(ImageTraitsTest, ImageSkia) { … }
TEST(ImageTraitsTest, ImageSkiaWithOperations) { … }
}