Chromium Code Reviews| Index: ui/gfx/render_text_unittest.cc |
| =================================================================== |
| --- ui/gfx/render_text_unittest.cc (revision 201137) |
| +++ ui/gfx/render_text_unittest.cc (working copy) |
| @@ -285,9 +285,7 @@ |
| } |
| // GetGlyphBounds() should yield the entire string bounds for text index 0. |
| - int height = 0; |
| - ui::Range bounds; |
| - render_text->GetGlyphBounds(0U, &bounds, &height); |
| + ui::Range bounds(render_text->GetGlyphBounds(0U)); |
|
msw
2013/05/23 21:07:27
nit: you can inline this call below and eliminate
Peter Kasting
2013/05/23 21:09:11
Good point.
|
| EXPECT_EQ(render_text->GetStringSize().width(), |
| static_cast<int>(bounds.length())); |