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

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm

Issue 2403853002: cocoa browser: remove remaining non-MD code (Closed)
Patch Set: git cl format Created 4 years, 2 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/profiles/avatar_button_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm b/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
index 74cd092525ac5e891d5efa74f953104059a9468a..19ab0a4ba0a696cf3b19b721a9ec016411e8461a 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm
@@ -108,15 +108,8 @@ void TearDown() override {
EXPECT_NSEQ(@"Person 1", [button() title]);
// If the button has an authentication error, it should display an error
- // icon. If in the MD, the icon size should be 16.
- int errorWidth =
- ui::MaterialDesignController::IsModeMaterial()
- ? 16
- : ui::ResourceBundle::GetSharedInstance()
- .GetNativeImageNamed(IDR_ICON_PROFILES_AVATAR_BUTTON_ERROR)
- .Width();
-
- EXPECT_EQ(errorWidth, [button() image].size.width);
+ // icon.
+ EXPECT_EQ(16, [button() image].size.width);
}
TEST_F(AvatarButtonControllerTest, DoubleOpen) {

Powered by Google App Engine
This is Rietveld 408576698