diff options
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_popup_view_mac_unittest.mm')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_popup_view_mac_unittest.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_mac_unittest.mm b/chrome/browser/autocomplete/autocomplete_popup_view_mac_unittest.mm index a715248..b6be8dc 100644 --- a/chrome/browser/autocomplete/autocomplete_popup_view_mac_unittest.mm +++ b/chrome/browser/autocomplete/autocomplete_popup_view_mac_unittest.mm @@ -24,7 +24,7 @@ class AutocompletePopupViewMacTest : public PlatformTest { // These are here because there is no autorelease pool for the // constructor. color_ = [NSColor blackColor]; - font_ = gfx::Font::CreateFont( + font_ = gfx::Font( base::SysNSStringToWide([[NSFont userFontOfSize:12] fontName]), 12); } @@ -427,7 +427,7 @@ TEST_F(AutocompletePopupViewMacTest, ElideString) { const float kNarrow = 20.0; NSDictionary* attributes = - [NSDictionary dictionaryWithObject:font_.nativeFont() + [NSDictionary dictionaryWithObject:font_.GetNativeFont() forKey:NSFontAttributeName]; scoped_nsobject<NSMutableAttributedString> as( [[NSMutableAttributedString alloc] initWithString:contents @@ -476,7 +476,7 @@ TEST_F(AutocompletePopupViewMacTest, MatchTextElide) { // Figure out the width of the contents. NSDictionary* attributes = - [NSDictionary dictionaryWithObject:font_.nativeFont() + [NSDictionary dictionaryWithObject:font_.GetNativeFont() forKey:NSFontAttributeName]; const float contentsWidth = [contents sizeWithAttributes:attributes].width; |