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

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

Issue 1445383003: Introduce PasswordsModelDelegate as an abstraction between ManagePasswordsBubbleModel and ManagePas… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Mac Created 5 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/passwords/account_chooser_view_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm b/chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm
index 2cc4dbaa97ee9aa5a54ce6dc35750086b0f1e985..1702b19372a453ce62ad71962cf0f09453d970d8 100644
--- a/chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/passwords/account_chooser_view_controller_unittest.mm
@@ -156,14 +156,10 @@ TEST_F(ManagePasswordsBubbleAccountChooserViewControllerTest,
federated_forms.Pass(),
GURL("http://example.com"),
base::Callback<void(const password_manager::CredentialInfo&)>()));
- EXPECT_EQ(password_manager::ui::CREDENTIAL_REQUEST_STATE,
vabr (Chromium) 2015/11/18 08:59:45 Why is it OK to remove these checks?
vasilii 2015/11/18 12:27:45 Because it tests the mock UI controller. This clas
vabr (Chromium) 2015/11/18 12:36:40 Acknowledged.
- ui_controller()->state());
[controller().credentialsView
selectRowIndexes:[NSIndexSet indexSetWithIndex:1]
byExtendingSelection:NO];
EXPECT_TRUE(delegate().dismissed);
- EXPECT_EQ(password_manager::ui::CREDENTIAL_REQUEST_STATE,
- ui_controller()->state());
EXPECT_TRUE(ui_controller()->choose_credential());
EXPECT_EQ(base::ASCIIToUTF16("taco"),
ui_controller()->chosen_credential().username_value);

Powered by Google App Engine
This is Rietveld 408576698