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

Unified Diff: chrome/browser/ui/cocoa/location_bar/image_decoration_unittest.mm

Issue 12042002: Alternate NTP: Add search token to omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 11 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
Index: chrome/browser/ui/cocoa/location_bar/image_decoration_unittest.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/image_decoration_unittest.mm b/chrome/browser/ui/cocoa/location_bar/image_decoration_unittest.mm
index db69b0dc4c8cc780a7adef05eddd5ca838568e91..0e226d283ce2de0a28f068590a7e1f8320e8437c 100644
--- a/chrome/browser/ui/cocoa/location_bar/image_decoration_unittest.mm
+++ b/chrome/browser/ui/cocoa/location_bar/image_decoration_unittest.mm
@@ -34,7 +34,7 @@ TEST_F(ImageDecorationTest, GetWidthForSpace) {
const CGFloat kNarrow = 10.0;
// Decoration with no image is omitted.
- EXPECT_EQ(decoration_.GetWidthForSpace(kWide),
+ EXPECT_EQ(decoration_.GetWidthForSpace(kWide, 0),
LocationBarDecoration::kOmittedWidth);
const NSSize kImageSize = NSMakeSize(20.0, 20.0);
@@ -42,10 +42,10 @@ TEST_F(ImageDecorationTest, GetWidthForSpace) {
// Decoration takes up the space of the image.
decoration_.SetImage(image);
- EXPECT_EQ(decoration_.GetWidthForSpace(kWide), kImageSize.width);
+ EXPECT_EQ(decoration_.GetWidthForSpace(kWide, 0), kImageSize.width);
// If the image doesn't fit, decoration is omitted.
- EXPECT_EQ(decoration_.GetWidthForSpace(kNarrow),
+ EXPECT_EQ(decoration_.GetWidthForSpace(kNarrow, 0),
LocationBarDecoration::kOmittedWidth);
}

Powered by Google App Engine
This is Rietveld 408576698