chromium/ui/gfx/image/mojom/image_traits_unittest.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// A test ImageSkiaSource that creates an ImageSkiaRep for any scale.
class TestImageSkiaSource : public ImageSkiaSource {};

// A helper to construct a skia.mojom.BitmapN32 without using StructTraits
// to bypass checks on the sending/serialization side.
mojo::StructPtr<mojom::ImageSkiaRep> ConstructImageSkiaRep(
    const SkBitmap& bitmap,
    float scale) {}

}  // namespace

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) {}

}  // namespace gfx