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

Unified Diff: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm

Issue 446073002: Add ManagePasswordsBubbleBlacklistViewController and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: finalize Created 6 years, 4 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/passwords/manage_passwords_bubble_cocoa_unittest.mm
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
index 6dc0672f095d480832e2408ae381ad3b008996a1..cb35ecab9d67b144875b262c9ca47ea86ee804a4 100644
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
+++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa_unittest.mm
@@ -37,7 +37,10 @@ class ManagePasswordsBubbleCocoaTest : public CocoaProfileTest {
// Create the test UIController here so that it's bound to
// |test_web_contents_| and therefore accessible to the model.
- new ManagePasswordsUIControllerMock(webContents_);
+ ManagePasswordsUIControllerMock* ui_controller =
+ new ManagePasswordsUIControllerMock(webContents_);
+ // Set the initial state.
+ ui_controller->SetState(password_manager::ui::PENDING_PASSWORD_STATE);
}
content::WebContents* webContents() { return webContents_; }

Powered by Google App Engine
This is Rietveld 408576698