| commit | 578db64c9d65eea122a16a623ffbf5f3f0186ccd | [log] [tgz] |
|---|---|---|
| author | Jesse McKenna <jessemckenna@google.com> | Fri Oct 17 21:06:20 2025 |
| committer | Crashpad LUCI CQ <crashpad-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 17 21:16:55 2025 |
| tree | b5f623e4f608adfb088b892013fe7fdd86543537 | |
| parent | b9d38f35eb99685dfd2c5156a5f629a486568f64 [diff] |
rate-limit: create ShouldRateLimit() and tests This change moves the rate-limiting logic from ShouldRateLimitUpload() into a separate helper function with its own tests. The logic itself is unchanged. This is a precursor to changes that will experimentally change the rate limit. The new tests will help ensure that future changes don't unexpectedly break existing logic that should be kept (e.g., the CrashSkippedReason, which is emitted to a histogram). Bug: 42310127 Change-Id: I68268ee6ea76aa31961f3791c595503a204ec5b4 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/7038272 Commit-Queue: Jesse McKenna <jessemckenna@google.com> Reviewed-by: Mark Mentovai <mark@chromium.org>
Crashpad is a crash-reporting system.
Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.