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

Unified Diff: content/common/net/url_fetcher_impl_unittest.cc

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TestShellNetworkDelegate Created 8 years, 10 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
Index: content/common/net/url_fetcher_impl_unittest.cc
diff --git a/content/common/net/url_fetcher_impl_unittest.cc b/content/common/net/url_fetcher_impl_unittest.cc
index 909bb6f0247c24a93797f79b0b55c9c8feb1e940..edb2c01a9d5171824dba644627b72f7856c762d3 100644
--- a/content/common/net/url_fetcher_impl_unittest.cc
+++ b/content/common/net/url_fetcher_impl_unittest.cc
@@ -461,8 +461,9 @@ void URLFetcherProtectTest::OnURLFetchComplete(
static int count = 0;
count++;
if (count < 20) {
- fetcher_->StartWithRequestContextGetter(new TestURLRequestContextGetter(
- io_message_loop_proxy()));
+ fetcher_->SetRequestContext(
+ new TestURLRequestContextGetter(io_message_loop_proxy()));
+ fetcher_->Start();
} else {
// We have already sent 20 requests continuously. And we expect that
// it takes more than 1 second due to the overload protection settings.
@@ -572,8 +573,9 @@ void URLFetcherMultipleAttemptTest::OnURLFetchComplete(
EXPECT_FALSE(data.empty());
if (!data.empty() && data_.empty()) {
data_ = data;
- fetcher_->StartWithRequestContextGetter(
willchan no longer on Chromium 2012/03/06 02:59:01 Why did this change? OIC, they're functionally equ
+ fetcher_->SetRequestContext(
new TestURLRequestContextGetter(io_message_loop_proxy()));
+ fetcher_->Start();
} else {
EXPECT_EQ(data, data_);
delete fetcher_; // Have to delete this here and not in the destructor,

Powered by Google App Engine
This is Rietveld 408576698