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

Unified Diff: net/base/mock_file_stream.cc

Issue 1148383003: Only support seeking file streams from the beginning of the file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: net/base/mock_file_stream.cc
diff --git a/net/base/mock_file_stream.cc b/net/base/mock_file_stream.cc
index 792b23b0344888ebb64c4dac10470c93bf7ebe05..014cace41c0e914325920ece1d897157221fe95b 100644
--- a/net/base/mock_file_stream.cc
+++ b/net/base/mock_file_stream.cc
@@ -33,13 +33,13 @@ MockFileStream::MockFileStream(
MockFileStream::~MockFileStream() {
}
-int MockFileStream::Seek(base::File::Whence whence, int64 offset,
+int MockFileStream::Seek(int64 offset,
const Int64CompletionCallback& callback) {
Int64CompletionCallback wrapped_callback =
base::Bind(&MockFileStream::DoCallback64,
weak_factory_.GetWeakPtr(), callback);
if (forced_error_ == OK)
- return FileStream::Seek(whence, offset, wrapped_callback);
+ return FileStream::Seek(offset, wrapped_callback);
return ErrorCallback64(wrapped_callback);
}

Powered by Google App Engine
This is Rietveld 408576698