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

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, 3 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 | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/location_bar/bubble_decoration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2edcbcec7d174c9e373284af7a0c6e2fa058cfac 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,10 +9,10 @@
#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/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"
+#import "chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.h"
#import "chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.h"
#import "chrome/browser/ui/cocoa/location_bar/star_decoration.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -115,12 +115,14 @@ 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),
+ SecurityStateBubbleDecoration security_state_bubble_decoration(
+ &location_icon_decoration, nullptr);
+ security_state_bubble_decoration.SetVisible(true);
+ security_state_bubble_decoration.SetImage(
+ [NSImage imageNamed:@"NSApplicationIcon"]);
+ security_state_bubble_decoration.SetLabel(@"Application");
+ [cell addLeftDecoration:&security_state_bubble_decoration];
+ EXPECT_NE(security_state_bubble_decoration.GetWidthForSpace(kVeryWide),
LocationBarDecoration::kOmittedWidth);
StarDecoration star_decoration(NULL);
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/location_bar/bubble_decoration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698