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

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

Issue 2478673002: [Mac] Hover/Pressed background for the Omnibox decorations (Closed)
Patch Set: nit Created 4 years, 1 month 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 5d7520ece587858ab437c9b74f6a16cb351c2b0c..9b7d1c1eb7ce0e95a5600992f9a6589cd4694b36 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
@@ -264,7 +264,8 @@ TEST_F(AutocompleteTextFieldCellTest, RightDecorationFrame) {
EXPECT_LT(NSMinX(textFrame), NSMinX(decoration1Rect));
}
-// Verify -[AutocompleteTextFieldCell updateToolTipsInRect:ofView:].
+// Verify -[AutocompleteTextFieldCell
+// updateMouseTrackingAndToolTipsInRect:ofView:].
TEST_F(AutocompleteTextFieldCellTest, UpdateToolTips) {
NSString* tooltip = @"tooltip";
@@ -292,7 +293,7 @@ TEST_F(AutocompleteTextFieldCellTest, UpdateToolTips) {
id controlView = [OCMockObject mockForClass:[AutocompleteTextField class]];
[[controlView expect] addToolTip:tooltip forRect:leftDecorationRect];
- [cell updateToolTipsInRect:bounds ofView:controlView];
+ [cell updateMouseTrackingAndToolTipsInRect:bounds ofView:controlView];
EXPECT_OCMOCK_VERIFY(controlView);
}

Powered by Google App Engine
This is Rietveld 408576698