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

Unified Diff: net/base/mock_file_stream.h

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. 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.h
diff --git a/net/base/mock_file_stream.h b/net/base/mock_file_stream.h
index 39ea1f3eb3dc4e78c6d1b56e05869f4979f5fe5b..cdc9be891269f667470e79a6d0ea0ba582e8029a 100644
--- a/net/base/mock_file_stream.h
+++ b/net/base/mock_file_stream.h
@@ -29,7 +29,7 @@ class MockFileStream : public FileStream {
// FileStream methods.
int Seek(base::File::Whence whence,
- int64 offset,
+ int64_t offset,
const Int64CompletionCallback& callback) override;
int Read(IOBuffer* buf,
int buf_len,
@@ -72,9 +72,9 @@ class MockFileStream : public FileStream {
return function_error;
}
- int64 ReturnError64(int64 function_error) {
+ int64_t ReturnError64(int64_t function_error) {
if (forced_error_ != OK) {
- int64 ret = forced_error_;
+ int64_t ret = forced_error_;
clear_forced_error();
return ret;
}
@@ -85,12 +85,12 @@ class MockFileStream : public FileStream {
// Wrappers for callbacks to make them honor ThrottleCallbacks and
// ReleaseCallbacks.
void DoCallback(const CompletionCallback& callback, int result);
- void DoCallback64(const Int64CompletionCallback& callback, int64 result);
+ void DoCallback64(const Int64CompletionCallback& callback, int64_t result);
// Depending on |async_error_|, either synchronously returns |forced_error_|
// asynchronously calls |callback| with |async_error_|.
int ErrorCallback(const CompletionCallback& callback);
- int64 ErrorCallback64(const Int64CompletionCallback& callback);
+ int64_t ErrorCallback64(const Int64CompletionCallback& callback);
int forced_error_;
bool async_error_;

Powered by Google App Engine
This is Rietveld 408576698