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

Unified Diff: net/url_request/url_request_http_job_unittest.cc

Issue 16226028: Fix even more remaining uses of WeakPtr<T>'s operator T* conversion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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_ftp_job_unittest.cc ('k') | sync/internal_api/public/util/weak_handle.h » ('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 9469a67df2551741068a8cf1ba9de04d1b2a810c..1eba53e682c51d3b7f2b3f9daa36a8ff33311f8f 100644
--- a/net/url_request/url_request_http_job_unittest.cc
+++ b/net/url_request/url_request_http_job_unittest.cc
@@ -75,11 +75,11 @@ TEST_F(URLRequestHttpJobTest, SetTransactionPriorityOnStart) {
scoped_refptr<TestURLRequestHttpJob> job(new TestURLRequestHttpJob(&req_));
job->SetPriority(LOW);
- EXPECT_FALSE(network_layer_.last_transaction());
+ EXPECT_FALSE(network_layer_.last_transaction().get());
job->Start();
- ASSERT_TRUE(network_layer_.last_transaction());
+ ASSERT_TRUE(network_layer_.last_transaction().get());
EXPECT_EQ(LOW, network_layer_.last_transaction()->priority());
}
@@ -89,7 +89,7 @@ TEST_F(URLRequestHttpJobTest, SetTransactionPriority) {
scoped_refptr<TestURLRequestHttpJob> job(new TestURLRequestHttpJob(&req_));
job->SetPriority(LOW);
job->Start();
- ASSERT_TRUE(network_layer_.last_transaction());
+ ASSERT_TRUE(network_layer_.last_transaction().get());
EXPECT_EQ(LOW, network_layer_.last_transaction()->priority());
job->SetPriority(HIGHEST);
@@ -103,7 +103,7 @@ TEST_F(URLRequestHttpJobTest, SetSubsequentTransactionPriority) {
job->Start();
job->SetPriority(LOW);
- ASSERT_TRUE(network_layer_.last_transaction());
+ ASSERT_TRUE(network_layer_.last_transaction().get());
EXPECT_EQ(LOW, network_layer_.last_transaction()->priority());
job->Kill();
@@ -111,7 +111,7 @@ TEST_F(URLRequestHttpJobTest, SetSubsequentTransactionPriority) {
// Creates a second transaction.
job->Start();
- ASSERT_TRUE(network_layer_.last_transaction());
+ ASSERT_TRUE(network_layer_.last_transaction().get());
EXPECT_EQ(LOW, network_layer_.last_transaction()->priority());
}
« no previous file with comments | « net/url_request/url_request_ftp_job_unittest.cc ('k') | sync/internal_api/public/util/weak_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698