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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 7 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_throttler_unittest.cc ('k') | net/url_request/view_cache_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 4ad170af99d59c6299c68b8fb1c5215004f0dee1..4b2ef4a2eb1e2f0cd5308faa379226cb588f4261 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -1759,7 +1759,7 @@ TEST_F(URLRequestTest, SetJobPriorityBeforeJobStart) {
scoped_refptr<URLRequestTestJob> job =
new URLRequestTestJob(&req, &default_network_delegate_);
- AddTestInterceptor()->set_main_intercept_job(job);
+ AddTestInterceptor()->set_main_intercept_job(job.get());
EXPECT_EQ(DEFAULT_PRIORITY, job->priority());
req.SetPriority(LOW);
@@ -1776,7 +1776,7 @@ TEST_F(URLRequestTest, SetJobPriority) {
scoped_refptr<URLRequestTestJob> job =
new URLRequestTestJob(&req, &default_network_delegate_);
- AddTestInterceptor()->set_main_intercept_job(job);
+ AddTestInterceptor()->set_main_intercept_job(job.get());
req.SetPriority(LOW);
req.Start();
@@ -1812,7 +1812,7 @@ TEST_F(URLRequestTest, DelayedCookieCallback) {
scoped_refptr<DelayedCookieMonster> delayed_cm =
new DelayedCookieMonster();
scoped_refptr<CookieStore> cookie_store = delayed_cm;
- context.set_cookie_store(delayed_cm);
+ context.set_cookie_store(delayed_cm.get());
// Set up a cookie.
{
@@ -4575,7 +4575,7 @@ TEST_F(URLRequestTestHTTP, SetSubsequentJobPriority) {
new URLRequestRedirectJob(
&req, &default_network_delegate_, test_server_.GetURL("echo"),
URLRequestRedirectJob::REDIRECT_302_FOUND);
- AddTestInterceptor()->set_main_intercept_job(redirect_job);
+ AddTestInterceptor()->set_main_intercept_job(redirect_job.get());
req.SetPriority(LOW);
req.Start();
@@ -4583,7 +4583,7 @@ TEST_F(URLRequestTestHTTP, SetSubsequentJobPriority) {
scoped_refptr<URLRequestTestJob> job =
new URLRequestTestJob(&req, &default_network_delegate_);
- AddTestInterceptor()->set_main_intercept_job(job);
+ AddTestInterceptor()->set_main_intercept_job(job.get());
// Should trigger |job| to be started.
base::MessageLoop::current()->Run();
@@ -5182,7 +5182,7 @@ class HTTPSOCSPTest : public HTTPSRequestTest {
scoped_refptr<net::X509Certificate> root_cert =
ImportCertFromFile(GetTestCertsDirectory(), "ocsp-test-root.pem");
CHECK_NE(static_cast<X509Certificate*>(NULL), root_cert);
- test_root_.reset(new ScopedTestRoot(root_cert));
+ test_root_.reset(new ScopedTestRoot(root_cert.get()));
#if defined(USE_NSS) || defined(OS_IOS)
SetURLRequestContextForNSSHttpIO(&context_);
« no previous file with comments | « net/url_request/url_request_throttler_unittest.cc ('k') | net/url_request/view_cache_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698