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

Unified Diff: net/base/mock_file_stream.cc

Issue 9949011: Make FileStream::Seek async and add FileStream::SeekSync for sync operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 8 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/base/test_completion_callback.h » ('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 419f65fcca2b37b41892030509f1d2657b50f5ab..42c23cbe6b85e23aab965e3289723766d4fffc41 100644
--- a/net/base/mock_file_stream.cc
+++ b/net/base/mock_file_stream.cc
@@ -13,8 +13,13 @@ int MockFileStream::OpenSync(const FilePath& path, int open_flags) {
return ReturnError(FileStream::OpenSync(path, open_flags));
}
-int64 MockFileStream::Seek(Whence whence, int64 offset) {
- return ReturnError64(FileStream::Seek(whence, offset));
+int MockFileStream::Seek(Whence whence, int64 offset,
+ const Int64CompletionCallback& callback) {
+ return ReturnError(FileStream::Seek(whence, offset, callback));
+}
+
+int64 MockFileStream::SeekSync(Whence whence, int64 offset) {
+ return ReturnError64(FileStream::SeekSync(whence, offset));
}
int64 MockFileStream::Available() {
« no previous file with comments | « net/base/mock_file_stream.h ('k') | net/base/test_completion_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698