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

Unified Diff: net/base/mock_file_stream.cc

Issue 10986045: Flush at the end of local file writing in FileWriter API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up. Created 8 years, 3 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') | webkit/chromeos/fileapi/remote_file_stream_writer.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 42c23cbe6b85e23aab965e3289723766d4fffc41..fccb7a0f079cb7137ed9c98e7aaa0bb8174e5878 100644
--- a/net/base/mock_file_stream.cc
+++ b/net/base/mock_file_stream.cc
@@ -54,8 +54,12 @@ int64 MockFileStream::Truncate(int64 bytes) {
return ReturnError64(FileStream::Truncate(bytes));
}
-int MockFileStream::Flush() {
- return ReturnError(FileStream::Flush());
+int MockFileStream::Flush(const CompletionCallback& callback) {
+ return ReturnError(FileStream::Flush(callback));
+}
+
+int MockFileStream::FlushSync() {
+ return ReturnError(FileStream::FlushSync());
}
} // namespace testing
« no previous file with comments | « net/base/mock_file_stream.h ('k') | webkit/chromeos/fileapi/remote_file_stream_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698