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

Unified Diff: net/url_request/url_request_http_job_unittest.cc

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge Created 4 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 | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job_unittest.cc
diff --git a/net/url_request/url_request_http_job_unittest.cc b/net/url_request/url_request_http_job_unittest.cc
index a6fc7eb720532d16b7336e0ee43b5b5561143935..accf94c09026c0768c374f2c2158f3af384e1980 100644
--- a/net/url_request/url_request_http_job_unittest.cc
+++ b/net/url_request/url_request_http_job_unittest.cc
@@ -544,10 +544,13 @@ TEST_F(URLRequestHttpJobWithMockSocketsTest, BackoffHeaderCachedResponse) {
}
TEST_F(URLRequestHttpJobTest, TestCancelWhileReadingCookies) {
- context_.set_cookie_store(new DelayedCookieMonster());
+ DelayedCookieMonster cookie_monster;
+ TestURLRequestContext context(true);
+ context.set_cookie_store(&cookie_monster);
+ context.Init();
TestDelegate delegate;
- scoped_ptr<URLRequest> request = context_.CreateRequest(
+ scoped_ptr<URLRequest> request = context.CreateRequest(
GURL("http://www.example.com"), DEFAULT_PRIORITY, &delegate);
request->Start();
« no previous file with comments | « net/url_request/url_request_context_storage.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698