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

Unified Diff: chrome/common/net/url_fetcher_unittest.cc

Issue 6696023: Remove minidump analysis aides from URLRequestThrottlerManager. New (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | « no previous file | chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/url_fetcher_unittest.cc
diff --git a/chrome/common/net/url_fetcher_unittest.cc b/chrome/common/net/url_fetcher_unittest.cc
index 5a3adbbe786e4bd94549c0b18872159440ace7e6..c3e24a31c1bbdf04afe87323aa6a230dc5763434 100644
--- a/chrome/common/net/url_fetcher_unittest.cc
+++ b/chrome/common/net/url_fetcher_unittest.cc
@@ -580,7 +580,7 @@ TEST_F(URLFetcherProtectTest, Overload) {
// Registers an entry for test url. It only allows 3 requests to be sent
// in 200 milliseconds.
scoped_refptr<net::URLRequestThrottlerEntry> entry(
- new net::URLRequestThrottlerEntry(200, 3, 1, 0, 2.0, 0.0, 256));
+ new net::URLRequestThrottlerEntry(200, 3, 1, 2.0, 0.0, 256));
net::URLRequestThrottlerManager::GetInstance()->OverrideEntryForTests(
url, entry);
@@ -602,7 +602,7 @@ TEST_F(URLFetcherProtectTest, ServerUnavailable) {
// and maximum backoff time is 256 milliseconds.
// Maximum retries allowed is set to 11.
scoped_refptr<net::URLRequestThrottlerEntry> entry(
- new net::URLRequestThrottlerEntry(200, 3, 1, 0, 2.0, 0.0, 256));
+ new net::URLRequestThrottlerEntry(200, 3, 1, 2.0, 0.0, 256));
net::URLRequestThrottlerManager::GetInstance()->OverrideEntryForTests(
url, entry);
@@ -624,7 +624,7 @@ TEST_F(URLFetcherProtectTestPassedThrough, ServerUnavailablePropagateResponse) {
// and maximum backoff time is 150000 milliseconds.
// Maximum retries allowed is set to 11.
scoped_refptr<net::URLRequestThrottlerEntry> entry(
- new net::URLRequestThrottlerEntry(200, 3, 100, 0, 2.0, 0.0, 150000));
+ new net::URLRequestThrottlerEntry(200, 3, 100, 2.0, 0.0, 150000));
// Total time if *not* for not doing automatic backoff would be 150s.
// In reality it should be "as soon as server responds".
net::URLRequestThrottlerManager::GetInstance()->OverrideEntryForTests(
@@ -668,7 +668,7 @@ TEST_F(URLFetcherCancelTest, ReleasesContext) {
// The initial backoff is 2 seconds and maximum backoff is 4 seconds.
// Maximum retries allowed is set to 2.
scoped_refptr<net::URLRequestThrottlerEntry> entry(
- new net::URLRequestThrottlerEntry(200, 3, 2000, 0, 2.0, 0.0, 4000));
+ new net::URLRequestThrottlerEntry(200, 3, 2000, 2.0, 0.0, 4000));
net::URLRequestThrottlerManager::GetInstance()->OverrideEntryForTests(
url, entry);
@@ -696,7 +696,7 @@ TEST_F(URLFetcherCancelTest, CancelWhileDelayedStartTaskPending) {
// Using a sliding window of 4 seconds, and max of 1 request, under a fast
// run we expect to have a 4 second delay when posting the Start task.
scoped_refptr<net::URLRequestThrottlerEntry> entry(
- new net::URLRequestThrottlerEntry(4000, 1, 2000, 0, 2.0, 0.0, 4000));
+ new net::URLRequestThrottlerEntry(4000, 1, 2000, 2.0, 0.0, 4000));
net::URLRequestThrottlerManager::GetInstance()->OverrideEntryForTests(
url, entry);
// Fake that a request has just started.
« no previous file with comments | « no previous file | chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698