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

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

Issue 2119033002: [Material][Mac] Implement Omnibox Verbose State Chips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 4 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/autocomplete_text_field_cell_unittest.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
index 7ca8b4a73d6e79d8515872562efc44cf6515928a..b06c853003ae4e7b9ecf2c93374520c859e3bd3d 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
@@ -9,7 +9,7 @@
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
#import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h"
#import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h"
-#import "chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h"
+#import "chrome/browser/ui/cocoa/location_bar/verbose_state_bubble_decoration.h"
#import "chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.h"
#import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h"
#import "chrome/browser/ui/cocoa/location_bar/location_icon_decoration.h"
@@ -115,12 +115,13 @@ TEST_F(AutocompleteTextFieldCellTest, DISABLED_FocusedDisplay) {
EXPECT_NE(location_icon_decoration.GetWidthForSpace(kVeryWide),
LocationBarDecoration::kOmittedWidth);
- EVBubbleDecoration ev_bubble_decoration(&location_icon_decoration);
- ev_bubble_decoration.SetVisible(true);
- ev_bubble_decoration.SetImage([NSImage imageNamed:@"NSApplicationIcon"]);
- ev_bubble_decoration.SetLabel(@"Application");
- [cell addLeftDecoration:&ev_bubble_decoration];
- EXPECT_NE(ev_bubble_decoration.GetWidthForSpace(kVeryWide),
+ VerboseStateBubbleDecoration verbose_bubble_decoration(
+ &location_icon_decoration, NULL);
Robert Sesek 2016/08/16 22:25:32 nullptr
spqchan 2016/08/17 00:41:18 Done.
+ verbose_bubble_decoration.SetVisible(true);
+ verbose_bubble_decoration.SetImage([NSImage imageNamed:@"NSApplicationIcon"]);
+ verbose_bubble_decoration.SetLabel(@"Application");
+ [cell addLeftDecoration:&verbose_bubble_decoration];
+ EXPECT_NE(verbose_bubble_decoration.GetWidthForSpace(kVeryWide),
LocationBarDecoration::kOmittedWidth);
StarDecoration star_decoration(NULL);

Powered by Google App Engine
This is Rietveld 408576698