Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: ui/gfx/font_unittest.cc

Issue 1282363003: Convert remaining StringToLowerASCII to ToLowerASCII (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/font_list_unittest.cc ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_unittest.cc
diff --git a/ui/gfx/font_unittest.cc b/ui/gfx/font_unittest.cc
index 4b81c8129c104448c6d728bcafe00171c85ebb84..102c7c8cd7e7d85acd8650d8c978192a9ad14cf0 100644
--- a/ui/gfx/font_unittest.cc
+++ b/ui/gfx/font_unittest.cc
@@ -58,8 +58,7 @@ TEST_F(FontTest, MAYBE_LoadArial) {
EXPECT_EQ(cf.GetStyle(), Font::NORMAL);
EXPECT_EQ(cf.GetFontSize(), 16);
EXPECT_EQ(cf.GetFontName(), "Arial");
- EXPECT_EQ("arial",
- base::StringToLowerASCII(cf.GetActualFontNameForTesting()));
+ EXPECT_EQ("arial", base::ToLowerASCII(cf.GetActualFontNameForTesting()));
}
#if defined(OS_ANDROID)
@@ -74,8 +73,7 @@ TEST_F(FontTest, MAYBE_LoadArialBold) {
EXPECT_TRUE(bold.GetNativeFont());
#endif
EXPECT_EQ(bold.GetStyle(), Font::BOLD);
- EXPECT_EQ("arial",
- base::StringToLowerASCII(cf.GetActualFontNameForTesting()));
+ EXPECT_EQ("arial", base::ToLowerASCII(cf.GetActualFontNameForTesting()));
}
#if defined(OS_ANDROID)
@@ -139,15 +137,13 @@ TEST_F(FontTest, MAYBE_AvgWidths) {
// http://crbug.com/347429
TEST_F(FontTest, MAYBE_GetActualFontNameForTesting) {
Font arial("Arial", 16);
- EXPECT_EQ("arial",
- base::StringToLowerASCII(arial.GetActualFontNameForTesting()))
+ EXPECT_EQ("arial", base::ToLowerASCII(arial.GetActualFontNameForTesting()))
<< "********\n"
<< "Your test environment seems to be missing Arial font, which is "
<< "needed for unittests. Check if Arial font is installed.\n"
<< "********";
Font symbol("Symbol", 16);
- EXPECT_EQ("symbol",
- base::StringToLowerASCII(symbol.GetActualFontNameForTesting()))
+ EXPECT_EQ("symbol", base::ToLowerASCII(symbol.GetActualFontNameForTesting()))
<< "********\n"
<< "Your test environment seems to be missing Symbol font, which is "
<< "needed for unittests. Check if Symbol font is installed.\n"
@@ -156,8 +152,7 @@ TEST_F(FontTest, MAYBE_GetActualFontNameForTesting) {
const char* const invalid_font_name = "no_such_font_name";
Font fallback_font(invalid_font_name, 16);
EXPECT_NE(invalid_font_name,
- base::StringToLowerASCII(
- fallback_font.GetActualFontNameForTesting()));
+ base::ToLowerASCII(fallback_font.GetActualFontNameForTesting()));
}
#if defined(OS_WIN)
« no previous file with comments | « ui/gfx/font_list_unittest.cc ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698