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

Side by Side Diff: net/base/mock_file_stream.cc

Issue 9349005: net: Rename FileStream::Open/Close with OpenSync/CloseSync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/mock_file_stream.h ('k') | net/base/upload_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/mock_file_stream.h" 5 #include "net/base/mock_file_stream.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 namespace testing { 9 namespace testing {
10 10
11 int MockFileStream::Open(const FilePath& path, int open_flags) { 11 int MockFileStream::OpenSync(const FilePath& path, int open_flags) {
12 path_ = path; 12 path_ = path;
13 return ReturnError(FileStream::Open(path, open_flags)); 13 return ReturnError(FileStream::OpenSync(path, open_flags));
14 } 14 }
15 15
16 int64 MockFileStream::Seek(Whence whence, int64 offset) { 16 int64 MockFileStream::Seek(Whence whence, int64 offset) {
17 return ReturnError64(FileStream::Seek(whence, offset)); 17 return ReturnError64(FileStream::Seek(whence, offset));
18 } 18 }
19 19
20 int64 MockFileStream::Available() { 20 int64 MockFileStream::Available() {
21 return ReturnError64(FileStream::Available()); 21 return ReturnError64(FileStream::Available());
22 } 22 }
23 23
(...skipping 17 matching lines...) Expand all
41 return ReturnError64(FileStream::Truncate(bytes)); 41 return ReturnError64(FileStream::Truncate(bytes));
42 } 42 }
43 43
44 int MockFileStream::Flush() { 44 int MockFileStream::Flush() {
45 return ReturnError(FileStream::Flush()); 45 return ReturnError(FileStream::Flush());
46 } 46 }
47 47
48 } // namespace testing 48 } // namespace testing
49 49
50 } // namespace net 50 } // namespace net
OLDNEW
« no previous file with comments | « net/base/mock_file_stream.h ('k') | net/base/upload_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698