| 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,
|
|
|