#include <stdlib.h>
#include "skia/ext/platform_canvas.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColorPriv.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/geometry/rect.h"
namespace color_utils {
TEST(ColorUtils, SkColorToHSLRed) { … }
TEST(ColorUtils, SkColorToHSLGrey) { … }
TEST(ColorUtils, HSLToSkColorWithAlpha) { … }
TEST(ColorUtils, RGBtoHSLRoundTrip) { … }
TEST(ColorUtils, IsWithinHSLRange) { … }
TEST(ColorUtils, IsWithinHSLRangeHueWrapAround) { … }
TEST(ColorUtils, IsHSLShiftMeaningful) { … }
TEST(ColorUtils, ColorToHSLRegisterSpill) { … }
TEST(ColorUtils, AlphaBlend) { … }
TEST(ColorUtils, SkColorToRgbaString) { … }
TEST(ColorUtils, SkColorToRgbString) { … }
TEST(ColorUtils, IsDarkDarkestColorChange) { … }
TEST(ColorUtils, MidpointLuminanceMatches) { … }
TEST(ColorUtils, GetColorWithMaxContrast) { … }
TEST(ColorUtils, GetEndpointColorWithMinContrast) { … }
TEST(ColorUtils, BlendForMinContrast_ForegroundAlreadyMeetsMinimum) { … }
TEST(ColorUtils, BlendForMinContrast_BlendDarker) { … }
TEST(ColorUtils, BlendForMinContrast_BlendLighter) { … }
TEST(ColorUtils, BlendForMinContrast_StopsAtDarkestColor) { … }
TEST(ColorUtils, BlendForMinContrast_ComputesExpectedOpacities) { … }
TEST(ColorUtils, BlendTowardMaxContrast_PreservesAlpha) { … }
TEST(ColorUtils, BlendForMinContrast_MatchesNaiveImplementation) { … }
TEST(ColorUtils, PickGoogleColor) { … }
TEST(ColorUtils, PickGoogleColorTwoBackgrounds) { … }
}