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

Unified Diff: ui/gfx/font_unittest.cc

Issue 2302313002: Configure font font names in GFX unittests (Closed)
Patch Set: Use Heiti SC font, namespace, comment, hex escapes Created 4 years, 3 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
Index: ui/gfx/font_unittest.cc
diff --git a/ui/gfx/font_unittest.cc b/ui/gfx/font_unittest.cc
index a5ac50888fb9e3f92f172671f602ac4bca297dc7..e123d96794ea7021bf27332d8dca9d15dc436969 100644
--- a/ui/gfx/font_unittest.cc
+++ b/ui/gfx/font_unittest.cc
@@ -10,6 +10,7 @@
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/gfx/font_names_testing.h"
#if defined(OS_WIN)
#include "ui/gfx/platform_font_win.h"
@@ -145,11 +146,14 @@ TEST_F(FontTest, MAYBE_GetActualFontNameForTesting) {
<< "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::ToLowerASCII(symbol.GetActualFontNameForTesting()))
+ Font symbol(kSymbolFontName, 16);
+ EXPECT_EQ(base::ToLowerASCII(kSymbolFontName),
+ 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"
+ << "Your test environment seems to be missing the " << kSymbolFontName
+ << " font, which is "
+ << "needed for unittests. Check if " << kSymbolFontName
+ << " font is installed.\n"
<< "********";
const char* const invalid_font_name = "no_such_font_name";

Powered by Google App Engine
This is Rietveld 408576698