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

Unified Diff: net/base/mock_file_stream.cc

Issue 212603021: Remove PlatformFile from resource_loader_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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') | no next file » | 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 3f05ab46c2d15cfa41fbc4ef72d70d3c081d1634..33d3c11235cb8e6271307d71566cc3aaa4c5b1f5 100644
--- a/net/base/mock_file_stream.cc
+++ b/net/base/mock_file_stream.cc
@@ -19,10 +19,8 @@ MockFileStream::MockFileStream(net::NetLog* net_log)
weak_factory_(this) {
}
-MockFileStream::MockFileStream(base::PlatformFile file,
- int flags,
- net::NetLog* net_log)
- : net::FileStream(file, flags, net_log),
+MockFileStream::MockFileStream(base::File file, net::NetLog* net_log)
+ : net::FileStream(file.Pass(), net_log),
forced_error_(net::OK),
async_error_(false),
throttled_(false),
@@ -30,11 +28,10 @@ MockFileStream::MockFileStream(base::PlatformFile file,
}
MockFileStream::MockFileStream(
- base::PlatformFile file,
- int flags,
+ base::File file,
net::NetLog* net_log,
const scoped_refptr<base::TaskRunner>& task_runner)
- : net::FileStream(file, flags, net_log, task_runner),
+ : net::FileStream(file.Pass(), net_log, task_runner),
forced_error_(net::OK),
async_error_(false),
throttled_(false),
« no previous file with comments | « net/base/mock_file_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698