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

Unified Diff: chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.h

Issue 2966453002: Chrome Cleaner UI: Add logs upload permission checkbox to the dialog (Closed)
Patch Set: More comments Created 3 years, 6 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/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.h
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.h b/chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.h
index 7c06170228aa7e3bea583703a7cc7b8946e35e57..f2d6cb64331c3261924292890230a84c93ee3a6b 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.h
+++ b/chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.h
@@ -43,8 +43,8 @@ class MockChromeCleanerProcess {
kNumCrashPoints,
};
- static constexpr int kInternalTestFailureExitCode = -1;
- static constexpr int kDeliberateCrashExitCode = -2;
+ static constexpr int kInternalTestFailureExitCode = 100001;
+ static constexpr int kDeliberateCrashExitCode = 100002;
static constexpr int kNothingFoundExitCode = 2;
static constexpr int kDeclinedExitCode = 44;
static constexpr int kRebootRequiredExitCode = 15;
@@ -75,6 +75,15 @@ class MockChromeCleanerProcess {
void set_crash_point(CrashPoint crash_point) { crash_point_ = crash_point; }
CrashPoint crash_point() const { return crash_point_; }
+ void set_expected_user_response(
+ chrome_cleaner::mojom::PromptAcceptance expected_user_response) {
+ expected_user_response_ = expected_user_response;
+ }
+
+ chrome_cleaner::mojom::PromptAcceptance expected_user_response() const {
+ return expected_user_response_;
+ }
+
int ExpectedExitCode(chrome_cleaner::mojom::PromptAcceptance
received_prompt_acceptance) const;
@@ -82,6 +91,8 @@ class MockChromeCleanerProcess {
std::set<base::FilePath> files_to_delete_;
bool reboot_required_ = false;
CrashPoint crash_point_ = CrashPoint::kNone;
+ chrome_cleaner::mojom::PromptAcceptance expected_user_response_ =
+ chrome_cleaner::mojom::PromptAcceptance::UNSPECIFIED;
};
MockChromeCleanerProcess(const Options& options,

Powered by Google App Engine
This is Rietveld 408576698