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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell_unittest.mm

Issue 1821823004: [Mac][Material Design] Update Omnibox dropdown on Mac to MD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 4 years, 8 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/omnibox/omnibox_popup_cell_unittest.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell_unittest.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell_unittest.mm
index 7b28327501c3bcf9760989d84d37d3b906700528..3ac8194717a83baa86f1eb69df3b2b6efd8cf620 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell_unittest.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell_unittest.mm
@@ -46,7 +46,8 @@ TEST_F(OmniboxPopupCellTest, Image) {
initWithMatch:match
contentsOffset:0
image:[NSImage imageNamed:NSImageNameInfo]
- answerImage:nil]);
+ answerImage:nil
+ forDarkTheme:NO]);
[cell_ setObjectValue:cellData_];
[control_ display];
}
@@ -58,7 +59,8 @@ TEST_F(OmniboxPopupCellTest, Title) {
cellData_.reset([[OmniboxPopupCellData alloc] initWithMatch:match
contentsOffset:0
image:nil
- answerImage:nil]);
+ answerImage:nil
+ forDarkTheme:NO]);
[cell_ setObjectValue:cellData_];
[control_ display];
}
@@ -84,7 +86,8 @@ TEST_F(OmniboxPopupCellTest, AnswerStyle) {
cellData_.reset([[OmniboxPopupCellData alloc] initWithMatch:match
contentsOffset:0
image:nil
- answerImage:nil]);
+ answerImage:nil
+ forDarkTheme:NO]);
EXPECT_NSEQ([[cellData_ description] string], finalString);
size_t length = [[[cellData_ description] string] length];
const NSRange checkValues[] = {{0, 2}, {2, 2}, {4, 4}};
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698