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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc

Issue 952023002: Credential Manager API: pop up the new "Manage accounts" bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix the test Created 5 years, 9 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/passwords/manage_passwords_bubble_model_unittest.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc b/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc
index 45b3f69fabf3b5af5d6b5e58a0c9fc673a2e9734..4b57e04ffe5da6c874bfa417cfd0471d13b6ca86 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc
@@ -292,3 +292,20 @@ TEST_F(ManagePasswordsBubbleModelTest, PopupAutoSigninToast) {
password_manager::metrics_util::AUTO_SIGNIN_TOAST_TIMEOUT,
1);
}
+
+TEST_F(ManagePasswordsBubbleModelTest, PopupAutoSigninAndManagedBubble) {
+ base::HistogramTester histogram_tester;
+ PretendAutoSigningIn();
+ model_->OnAutoSignInToastTimeout();
+ model_->OnAutoSignInClicked();
+ EXPECT_EQ(model_->dismissal_reason(),
+ password_manager::metrics_util::AUTO_SIGNIN_TOAST_CLICKED);
+ model_->OnBubbleHidden();
+
+ EXPECT_TRUE(controller()->manage_accounts());
+
+ histogram_tester.ExpectUniqueSample(
+ kUIDismissalReasonMetric,
+ password_manager::metrics_util::AUTO_SIGNIN_TOAST_CLICKED,
+ 1);
+}
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_bubble_model.cc ('k') | chrome/browser/ui/passwords/manage_passwords_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698