diff options
author | xunjieli <xunjieli@chromium.org> | 2015-06-19 07:31:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-19 14:31:50 +0000 |
commit | e484e2d6ef69920249c610af605b9935d0f179aa (patch) | |
tree | 315de9c1be09ab85b2f009ce09ae648855cab778 /extensions/browser/extension_throttle_entry.h | |
parent | f5a2156812c318825b6438258d9f882fc63ecd16 (diff) | |
download | chromium_src-e484e2d6ef69920249c610af605b9935d0f179aa.zip chromium_src-e484e2d6ef69920249c610af605b9935d0f179aa.tar.gz chromium_src-e484e2d6ef69920249c610af605b9935d0f179aa.tar.bz2 |
Use a custom BackoffEntry::Policy for extension_request_limiting_throttle_browsertest
ExtensionRequestLimitingThrottleBrowserTest takes long to complete on slow bots.
This CL sets a custom backoff policy for these tests, so that the tests are not
too dependent on the timing.
BUG=501362
Review URL: https://codereview.chromium.org/1193543003
Cr-Commit-Position: refs/heads/master@{#335255}
Diffstat (limited to 'extensions/browser/extension_throttle_entry.h')
-rw-r--r-- | extensions/browser/extension_throttle_entry.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/extensions/browser/extension_throttle_entry.h b/extensions/browser/extension_throttle_entry.h index d0f25cb..61a70b2 100644 --- a/extensions/browser/extension_throttle_entry.h +++ b/extensions/browser/extension_throttle_entry.h @@ -71,12 +71,8 @@ class ExtensionThrottleEntry : public ExtensionThrottleEntryInterface { // It is only used by unit tests. ExtensionThrottleEntry(ExtensionThrottleManager* manager, const std::string& url_id, - int sliding_window_period_ms, - int max_send_threshold, - int initial_backoff_ms, - double multiply_factor, - double jitter_factor, - int maximum_backoff_ms); + const net::BackoffEntry::Policy* backoff_policy, + bool ignore_user_gesture_load_flag_for_tests); // Used by the manager, returns true if the entry needs to be garbage // collected. |