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

Unified Diff: chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa_unittest.mm

Issue 342833002: [Password Generation] Update Aura UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Coments Created 6 years, 5 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/autofill/password_generation_popup_view_cocoa_unittest.mm
diff --git a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa_unittest.mm b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa_unittest.mm
index 922a21da889ab6cb59801b45cd22954bdc8790e4..73ebbfe3bd25419731f350548318eb793fa2072c 100644
--- a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa_unittest.mm
+++ b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa_unittest.mm
@@ -23,26 +23,11 @@ class MockPasswordGenerationPopupController
public:
MockPasswordGenerationPopupController()
: help_text_(base::ASCIIToUTF16("Help me if you can I'm feeling dooown")),
- font_list_("Lucida Grande, 12px"),
popup_bounds_(gfx::Rect(0, 0, 200, 100)) {}
virtual void OnSavedPasswordsLinkClicked() OVERRIDE {}
- virtual const gfx::FontList& font_list() const OVERRIDE {
- return font_list_;
- }
-
- virtual const gfx::Rect& password_bounds() const OVERRIDE {
- return password_bounds_;
- }
-
- virtual const gfx::Rect& divider_bounds() const OVERRIDE {
- return divider_bounds_;
- }
-
- virtual const gfx::Rect& help_bounds() const OVERRIDE {
- return help_bounds_;
- }
+ virtual int GetMinimumWidth() OVERRIDE { return 200; }
virtual bool display_password() const OVERRIDE { return true; }
@@ -71,12 +56,8 @@ class MockPasswordGenerationPopupController
private:
base::string16 help_text_;
- const gfx::FontList font_list_;
gfx::Range link_range_;
- gfx::Rect password_bounds_;
- gfx::Rect divider_bounds_;
- gfx::Rect help_bounds_;
const gfx::Rect popup_bounds_;
DISALLOW_COPY_AND_ASSIGN(MockPasswordGenerationPopupController);

Powered by Google App Engine
This is Rietveld 408576698