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

Unified Diff: net/base/mock_file_stream.cc

Issue 9402014: net: FileStream::Read/Write() to take IOBuffer* instead of char* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix redirect_to_file_resource_handler.cc Created 8 years, 10 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/base/mock_file_stream.h ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mock_file_stream.cc
diff --git a/net/base/mock_file_stream.cc b/net/base/mock_file_stream.cc
index e87491f656362303e1da9909c3f347143bc56266..419f65fcca2b37b41892030509f1d2657b50f5ab 100644
--- a/net/base/mock_file_stream.cc
+++ b/net/base/mock_file_stream.cc
@@ -21,7 +21,7 @@ int64 MockFileStream::Available() {
return ReturnError64(FileStream::Available());
}
-int MockFileStream::Read(char* buf,
+int MockFileStream::Read(IOBuffer* buf,
int buf_len,
const CompletionCallback& callback) {
return ReturnError(FileStream::Read(buf, buf_len, callback));
@@ -35,7 +35,7 @@ int MockFileStream::ReadUntilComplete(char *buf, int buf_len) {
return ReturnError(FileStream::ReadUntilComplete(buf, buf_len));
}
-int MockFileStream::Write(const char* buf,
+int MockFileStream::Write(IOBuffer* buf,
int buf_len,
const CompletionCallback& callback) {
return ReturnError(FileStream::Write(buf, buf_len, callback));
« no previous file with comments | « net/base/mock_file_stream.h ('k') | net/url_request/url_request_file_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698