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

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

Issue 2542093002: [Password Generation] Fixes sending votes about the usage of the password generation popup (Closed)
Patch Set: Fix for the failed Mac test Created 4 years 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 a2b661fccf00fe08a0cbf477ee09d58d3b777ae9..16b4c3b4ff07a1180936d84a9c817edd45766c2e 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model_unittest.cc
@@ -258,6 +258,7 @@ TEST_F(ManagePasswordsBubbleModelTest, CloseWithoutInteraction) {
stats.dismissal_count++;
stats.update_time = now;
EXPECT_CALL(*GetStore(), AddSiteStatsImpl(stats));
+ EXPECT_CALL(*controller(), OnNoInteraction());
EXPECT_CALL(*controller(), SavePassword()).Times(0);
EXPECT_CALL(*controller(), NeverSavePassword()).Times(0);
DestroyModelExpectReason(
@@ -332,6 +333,7 @@ TEST_F(ManagePasswordsBubbleModelTest, ShowSmartLockWarmWelcome) {
EXPECT_TRUE(model()->ShouldShowGoogleSmartLockWelcome());
EXPECT_CALL(*GetStore(), AddSiteStatsImpl(_));
+ EXPECT_CALL(*controller(), OnNoInteraction());
DestroyModel();
PretendPasswordWaiting();
@@ -352,6 +354,7 @@ TEST_F(ManagePasswordsBubbleModelTest, OmitSmartLockWarmWelcome) {
EXPECT_FALSE(model()->ShouldShowGoogleSmartLockWelcome());
EXPECT_CALL(*GetStore(), AddSiteStatsImpl(_));
+ EXPECT_CALL(*controller(), OnNoInteraction());
DestroyModel();
PretendPasswordWaiting();

Powered by Google App Engine
This is Rietveld 408576698