Chromium Code Reviews| Index: chrome/browser/themes/browser_theme_pack_unittest.cc |
| diff --git a/chrome/browser/themes/browser_theme_pack_unittest.cc b/chrome/browser/themes/browser_theme_pack_unittest.cc |
| index f31dc4ee119e5aba8bfaf1ac822e610f583f07ee..a8f6d066cc7fcfe8cfe738a6d6524894a5535689 100644 |
| --- a/chrome/browser/themes/browser_theme_pack_unittest.cc |
| +++ b/chrome/browser/themes/browser_theme_pack_unittest.cc |
| @@ -370,47 +370,6 @@ class BrowserThemePackTest : public ::testing::Test { |
| scoped_refptr<BrowserThemePack> theme_pack_; |
| }; |
| - |
| -TEST_F(BrowserThemePackTest, DeriveUnderlineLinkColor) { |
| - // If we specify a link color, but don't specify the underline color, the |
| - // theme provider should create one. |
| - std::string color_json = "{ \"ntp_link\": [128, 128, 128]," |
| - " \"ntp_section_link\": [128, 128, 128] }"; |
| - LoadColorJSON(color_json); |
| - |
| - std::map<int, SkColor> colors = GetDefaultColorMap(); |
| - SkColor link_color = SkColorSetRGB(128, 128, 128); |
| - colors[ThemeProperties::COLOR_NTP_LINK] = link_color; |
| - colors[ThemeProperties::COLOR_NTP_LINK_UNDERLINE] = |
| - BuildThirdOpacity(link_color); |
| - colors[ThemeProperties::COLOR_NTP_SECTION_LINK] = link_color; |
| - colors[ThemeProperties::COLOR_NTP_SECTION_LINK_UNDERLINE] = |
| - BuildThirdOpacity(link_color); |
| - |
| - VerifyColorMap(colors); |
| -} |
| - |
| -TEST_F(BrowserThemePackTest, ProvideUnderlineLinkColor) { |
| - // If we specify the underline color, it shouldn't try to generate one. |
| - std::string color_json = "{ \"ntp_link\": [128, 128, 128]," |
| - " \"ntp_link_underline\": [255, 255, 255]," |
| - " \"ntp_section_link\": [128, 128, 128]," |
| - " \"ntp_section_link_underline\": [255, 255, 255]" |
| - "}"; |
| - LoadColorJSON(color_json); |
| - |
| - std::map<int, SkColor> colors = GetDefaultColorMap(); |
| - SkColor link_color = SkColorSetRGB(128, 128, 128); |
| - SkColor underline_color = SkColorSetRGB(255, 255, 255); |
| - colors[ThemeProperties::COLOR_NTP_LINK] = link_color; |
| - colors[ThemeProperties::COLOR_NTP_LINK_UNDERLINE] = underline_color; |
| - colors[ThemeProperties::COLOR_NTP_SECTION_LINK] = link_color; |
| - colors[ThemeProperties::COLOR_NTP_SECTION_LINK_UNDERLINE] = |
| - underline_color; |
| - |
| - VerifyColorMap(colors); |
| -} |
| - |
| TEST_F(BrowserThemePackTest, UseSectionColorAsNTPHeader) { |
|
Evan Stade
2017/02/01 21:47:23
nit: since this is sorta more subtle now, add a co
Tom (Use chromium acct)
2017/02/01 23:09:30
Done.
|
| std::string color_json = "{ \"ntp_section\": [190, 190, 190] }"; |
| LoadColorJSON(color_json); |
| @@ -418,7 +377,6 @@ TEST_F(BrowserThemePackTest, UseSectionColorAsNTPHeader) { |
| std::map<int, SkColor> colors = GetDefaultColorMap(); |
| SkColor ntp_color = SkColorSetRGB(190, 190, 190); |
| colors[ThemeProperties::COLOR_NTP_HEADER] = ntp_color; |
| - colors[ThemeProperties::COLOR_NTP_SECTION] = ntp_color; |
| VerifyColorMap(colors); |
| } |
| @@ -429,7 +387,6 @@ TEST_F(BrowserThemePackTest, ProvideNtpHeaderColor) { |
| std::map<int, SkColor> colors = GetDefaultColorMap(); |
| colors[ThemeProperties::COLOR_NTP_HEADER] = SkColorSetRGB(120, 120, 120); |
| - colors[ThemeProperties::COLOR_NTP_SECTION] = SkColorSetRGB(190, 190, 190); |
| VerifyColorMap(colors); |
| } |