#include "content/public/common/color_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
namespace content {
void RunPassCssTest(const std::string& css_string, SkColor expected_result) { … }
void RunFailCssTest(const std::string& css_string) { … }
void RunPassHexTest(const std::string& css_string, SkColor expected_result) { … }
void RunFailHexTest(const std::string& css_string) { … }
void RunPassRgbTest(const std::string& rgb_string, SkColor expected) { … }
void RunFailRgbTest(const std::string& rgb_string) { … }
TEST(ColorParser, HexNormalCSS) { … }
TEST(ColorParser, HexShorCSS) { … }
TEST(ColorParser, HexWithAlphaCSS) { … }
TEST(ColorParser, HexWithAlphaShortCSS) { … }
TEST(ColorParser, FailCSSNoHash) { … }
TEST(ColorParser, FailCSSTooShort) { … }
TEST(ColorParser, FailCSSTooLong) { … }
TEST(ColorParser, FailCSSInvalid) { … }
TEST(ColorParser, FailHexWithPlus) { … }
TEST(ColorParser, AcceptHsl) { … }
TEST(ColorParser, InvalidHsl) { … }
TEST(ColorParser, AcceptHsla) { … }
TEST(ColorParser, AcceptRgb) { … }
TEST(ColorParser, InvalidRgb) { … }
TEST(ColorParser, AcceptRgba) { … }
TEST(ColorParser, CssBasicKeyword) { … }
}