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

Unified Diff: ui/base/cocoa/menu_controller_unittest.mm

Issue 1689623004: Start removing enum ui::ResourceBundle::FontStyle, fix MacViews font sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix transcription error Created 4 years, 10 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/base/cocoa/controls/blue_label_button.mm ('k') | ui/base/default_style.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cocoa/menu_controller_unittest.mm
diff --git a/ui/base/cocoa/menu_controller_unittest.mm b/ui/base/cocoa/menu_controller_unittest.mm
index 5bda6b6c096e3e320b73e2faed6e15298ccccfa9..57a32bed3fbf52ce4c652e4c3fe93debeccb4af2 100644
--- a/ui/base/cocoa/menu_controller_unittest.mm
+++ b/ui/base/cocoa/menu_controller_unittest.mm
@@ -271,8 +271,9 @@ TEST_F(MenuControllerTest, Validate) {
// Tests that items which have a font set actually use that font.
TEST_F(MenuControllerTest, LabelFontList) {
Delegate delegate;
- const gfx::FontList& bold = ResourceBundle::GetSharedInstance().GetFontList(
- ResourceBundle::BoldFont);
+ const gfx::FontList& bold =
+ ResourceBundle::GetSharedInstance().GetFontListWithDelta(0,
+ gfx::Font::BOLD);
FontListMenuModel model(&delegate, &bold, 0);
model.AddItem(1, ASCIIToUTF16("one"));
model.AddItem(2, ASCIIToUTF16("two"));
« no previous file with comments | « ui/base/cocoa/controls/blue_label_button.mm ('k') | ui/base/default_style.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698