| Index: chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration_unittest.mm b/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration_unittest.mm
|
| index 91122724306c34345c04c6206b2a1c6e2ae07819..0335f58f58d7d3e7884b19e8dbda75c9884b9645 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration_unittest.mm
|
| @@ -40,26 +40,26 @@ TEST_F(SelectedKeywordDecorationTest, UsesPartialKeywordIfNarrow) {
|
| decoration_.SetKeyword(kKeyword, false);
|
|
|
| // Wide width chooses the full string and image.
|
| - const CGFloat all_width = decoration_.GetWidthForSpace(kWidth);
|
| + const CGFloat all_width = decoration_.GetWidthForSpace(kWidth, 0);
|
| EXPECT_TRUE(decoration_.image_);
|
| EXPECT_NSEQ(kFullString, decoration_.label_);
|
|
|
| // If not enough space to include the image, uses exactly the full
|
| // string.
|
| - const CGFloat full_width = decoration_.GetWidthForSpace(all_width - 5.0);
|
| + const CGFloat full_width = decoration_.GetWidthForSpace(all_width - 5.0, 0);
|
| EXPECT_LT(full_width, all_width);
|
| EXPECT_FALSE(decoration_.image_);
|
| EXPECT_NSEQ(kFullString, decoration_.label_);
|
|
|
| // Narrow width chooses the partial string.
|
| - const CGFloat partial_width = decoration_.GetWidthForSpace(kNarrowWidth);
|
| + const CGFloat partial_width = decoration_.GetWidthForSpace(kNarrowWidth, 0);
|
| EXPECT_LT(partial_width, full_width);
|
| EXPECT_FALSE(decoration_.image_);
|
| EXPECT_NSEQ(kPartialString, decoration_.label_);
|
|
|
| // Narrow doesn't choose partial string if there is not one.
|
| decoration_.partial_string_.reset();
|
| - decoration_.GetWidthForSpace(kNarrowWidth);
|
| + decoration_.GetWidthForSpace(kNarrowWidth, 0);
|
| EXPECT_FALSE(decoration_.image_);
|
| EXPECT_NSEQ(kFullString, decoration_.label_);
|
| }
|
|
|