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

Unified Diff: net/url_request/url_request_file_job_unittest.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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/url_request/url_request_file_job.cc ('k') | net/url_request/url_request_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_file_job_unittest.cc
diff --git a/net/url_request/url_request_file_job_unittest.cc b/net/url_request/url_request_file_job_unittest.cc
index 17af363f92b32db359249fedf907c250d6cacd05..d8e0691d548effdbd8321b1d837fe099cbfa7ea2 100644
--- a/net/url_request/url_request_file_job_unittest.cc
+++ b/net/url_request/url_request_file_job_unittest.cc
@@ -33,7 +33,7 @@ class TestURLRequestFileJob : public URLRequestFileJob {
NetworkDelegate* network_delegate,
const base::FilePath& file_path,
const scoped_refptr<base::TaskRunner>& file_task_runner,
- int64* seek_position,
+ int64_t* seek_position,
std::string* observed_content)
: URLRequestFileJob(request,
network_delegate,
@@ -48,7 +48,7 @@ class TestURLRequestFileJob : public URLRequestFileJob {
~TestURLRequestFileJob() override {}
protected:
- void OnSeekComplete(int64 result) override {
+ void OnSeekComplete(int64_t result) override {
ASSERT_EQ(*seek_position_, 0);
*seek_position_ = result;
}
@@ -57,7 +57,7 @@ class TestURLRequestFileJob : public URLRequestFileJob {
observed_content_->append(std::string(buf->data(), result));
}
- int64* const seek_position_;
+ int64_t* const seek_position_;
std::string* const observed_content_;
};
@@ -66,7 +66,7 @@ class TestURLRequestFileJob : public URLRequestFileJob {
class TestJobFactory : public URLRequestJobFactory {
public:
TestJobFactory(const base::FilePath& path,
- int64* seek_position,
+ int64_t* seek_position,
std::string* observed_content)
: path_(path),
seek_position_(seek_position),
@@ -119,7 +119,7 @@ class TestJobFactory : public URLRequestJobFactory {
const base::FilePath path_;
// These are mutable because MaybeCreateJobWithProtocolHandler is const.
- mutable int64* seek_position_;
+ mutable int64_t* seek_position_;
mutable std::string* observed_content_;
};
@@ -183,7 +183,7 @@ void URLRequestFileJobEventsTest::RunRequest(const std::string& content,
ASSERT_TRUE(CreateTempFileWithContent(content, directory, &path));
{
- int64 seek_position;
+ int64_t seek_position;
std::string observed_content;
TestJobFactory factory(path, &seek_position, &observed_content);
context_.set_job_factory(&factory);
« no previous file with comments | « net/url_request/url_request_file_job.cc ('k') | net/url_request/url_request_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698