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

Unified Diff: chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc

Issue 2727063006: Settings reset prompt: add startup logic (Closed)
Patch Set: Nits Created 3 years, 10 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
« no previous file with comments | « chrome/browser/ui/views/settings_reset_prompt_dialog.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc
diff --git a/chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc b/chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc
index ffee55c02eca622c8c62fc44c161f5ee82ab53b0..efa57bd4beaff4035a0b0710be27c9da4a531d92 100644
--- a/chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc
+++ b/chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc
@@ -90,9 +90,9 @@ class MockSettingsResetPromptModel
id, "Extension " + base::IntToString(i))));
}
- ON_CALL(*this, PerformReset(_)).WillByDefault(Return());
-
ON_CALL(*this, ShouldPromptForReset()).WillByDefault(Return(true));
+ ON_CALL(*this, PerformReset(_)).WillByDefault(Return());
+ ON_CALL(*this, DialogShown()).WillByDefault(Return());
ON_CALL(*this, homepage()).WillByDefault(Return(GURL(kHomepageUrl)));
ON_CALL(*this, homepage_reset_state())
@@ -124,6 +124,7 @@ class MockSettingsResetPromptModel
MOCK_METHOD1(PerformReset, void(const base::Closure&));
MOCK_CONST_METHOD0(ShouldPromptForReset, bool());
+ MOCK_METHOD0(DialogShown, void());
MOCK_CONST_METHOD0(homepage, GURL());
MOCK_CONST_METHOD0(homepage_reset_state, ResetState());
MOCK_CONST_METHOD0(default_search, GURL());
« no previous file with comments | « chrome/browser/ui/views/settings_reset_prompt_dialog.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698