diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-17 17:24:00 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-17 17:24:00 +0000 |
commit | 41d3846d2f324a140e5e841bad5f53e156b40d15 (patch) | |
tree | 00ba2ed55c8c9e5a01e98fec82673a64b34cfd33 /chrome | |
parent | d18be496b6e7160ef944c88f765ba977eb12ca03 (diff) | |
download | chromium_src-41d3846d2f324a140e5e841bad5f53e156b40d15.zip chromium_src-41d3846d2f324a140e5e841bad5f53e156b40d15.tar.gz chromium_src-41d3846d2f324a140e5e841bad5f53e156b40d15.tar.bz2 |
This CL will introduce a new way to do exponential back-off on failure within
Chromium. It is a network level implementation and should constitute a good
enough bottleneck to manage every outgoing http request.
Committing for malavv@google.com.
Original review: http://codereview.chromium.org/2487001/show
BUG=none
TEST=unit tests
Review URL: http://codereview.chromium.org/3005049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/net/url_fetcher_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/net/url_fetcher_unittest.cc b/chrome/common/net/url_fetcher_unittest.cc index eba4983..ed7eb81 100644 --- a/chrome/common/net/url_fetcher_unittest.cc +++ b/chrome/common/net/url_fetcher_unittest.cc @@ -312,7 +312,9 @@ void URLFetcherProtectTest::OnURLFetchComplete(const URLFetcher* source, // Now running ServerUnavailable test. // It takes more than 1 second to finish all 11 requests. EXPECT_TRUE(Time::Now() - start_time_ >= one_second); - EXPECT_TRUE(status.is_success()); + // We used to check this, but it gets confused because of the other + // implementation of request throttling (which we will be removing). + //EXPECT_EQ(status.os_error(), net::ERR_TEMPORARILY_THROTTLED_BY_DDOS); EXPECT_FALSE(data.empty()); delete fetcher_; io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); |