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

Unified Diff: net/url_request/view_cache_helper_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/view_cache_helper.cc ('k') | net/websockets/websocket_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/view_cache_helper_unittest.cc
diff --git a/net/url_request/view_cache_helper_unittest.cc b/net/url_request/view_cache_helper_unittest.cc
index 754ebe01b320804497ef9e8e1c7cd691c5daf5d8..db26f70ca05ed5c35aa71f1d338e7237ef70424c 100644
--- a/net/url_request/view_cache_helper_unittest.cc
+++ b/net/url_request/view_cache_helper_unittest.cc
@@ -49,7 +49,7 @@ void WriteHeaders(disk_cache::Entry* entry, int flags, const std::string data) {
int len = static_cast<int>(pickle.size());
net::TestCompletionCallback cb;
- int rv = entry->WriteData(0, 0, buf, len, cb.callback(), true);
+ int rv = entry->WriteData(0, 0, buf.get(), len, cb.callback(), true);
ASSERT_EQ(len, cb.GetResult(rv));
}
@@ -62,7 +62,7 @@ void WriteData(disk_cache::Entry* entry, int index, const std::string data) {
memcpy(buf->data(), data.data(), data.length());
net::TestCompletionCallback cb;
- int rv = entry->WriteData(index, 0, buf, len, cb.callback(), true);
+ int rv = entry->WriteData(index, 0, buf.get(), len, cb.callback(), true);
ASSERT_EQ(len, cb.GetResult(rv));
}
« no previous file with comments | « net/url_request/view_cache_helper.cc ('k') | net/websockets/websocket_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698