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

Unified Diff: ui/gfx/platform_font_mac.mm

Issue 79263004: Enables font-related unittests again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Mike's comments. Created 7 years 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/platform_font_mac.mm
diff --git a/ui/gfx/platform_font_mac.mm b/ui/gfx/platform_font_mac.mm
index fa9d589aff29070bc5ddc56d0777bb36ce7d778d..5b1cf9b0b04b9291b7ed3bb91a35980480adb421 100644
--- a/ui/gfx/platform_font_mac.mm
+++ b/ui/gfx/platform_font_mac.mm
@@ -126,6 +126,10 @@ std::string PlatformFontMac::GetFontName() const {
return font_name_;
}
+std::string PlatformFontMac::GetActualFontNameForTest() const {
+ return base::SysNSStringToUTF8([native_font_ familyName]);
+}
+
int PlatformFontMac::GetFontSize() const {
return font_size_;
}

Powered by Google App Engine
This is Rietveld 408576698