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

Unified Diff: net/http/http_network_transaction_spdy2_unittest.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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/disk_cache/stress_cache.cc ('k') | net/http/http_network_transaction_spdy3_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_transaction_spdy2_unittest.cc
diff --git a/net/http/http_network_transaction_spdy2_unittest.cc b/net/http/http_network_transaction_spdy2_unittest.cc
index 6f5c95520abc52c5088433b41061b85d73c47129..d9cbb0ace42797fa18421eed8151673a75f7d089 100644
--- a/net/http/http_network_transaction_spdy2_unittest.cc
+++ b/net/http/http_network_transaction_spdy2_unittest.cc
@@ -7551,8 +7551,11 @@ TEST_F(HttpNetworkTransactionSpdy2Test, UploadFileSmallerThanLength) {
ScopedVector<UploadElementReader> element_readers;
element_readers.push_back(
- new UploadFileElementReader(base::MessageLoopProxy::current(),
- temp_file_path, 0, kuint64max, base::Time()));
+ new UploadFileElementReader(base::MessageLoopProxy::current().get(),
+ temp_file_path,
+ 0,
+ kuint64max,
+ base::Time()));
UploadDataStream upload_data_stream(&element_readers, 0);
HttpRequestInfo request;
@@ -7605,8 +7608,11 @@ TEST_F(HttpNetworkTransactionSpdy2Test, UploadUnreadableFile) {
ScopedVector<UploadElementReader> element_readers;
element_readers.push_back(
- new UploadFileElementReader(base::MessageLoopProxy::current(),
- temp_file, 0, kuint64max, base::Time()));
+ new UploadFileElementReader(base::MessageLoopProxy::current().get(),
+ temp_file,
+ 0,
+ kuint64max,
+ base::Time()));
UploadDataStream upload_data_stream(&element_readers, 0);
HttpRequestInfo request;
@@ -7662,8 +7668,11 @@ TEST_F(HttpNetworkTransactionSpdy2Test, UnreadableUploadFileAfterAuthRestart) {
ScopedVector<UploadElementReader> element_readers;
element_readers.push_back(
- new UploadFileElementReader(base::MessageLoopProxy::current(),
- temp_file, 0, kuint64max, base::Time()));
+ new UploadFileElementReader(base::MessageLoopProxy::current().get(),
+ temp_file,
+ 0,
+ kuint64max,
+ base::Time()));
UploadDataStream upload_data_stream(&element_readers, 0);
HttpRequestInfo request;
« no previous file with comments | « net/disk_cache/stress_cache.cc ('k') | net/http/http_network_transaction_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698