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

Unified Diff: content/child/resource_dispatcher_unittest.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/child/resource_dispatcher.cc ('k') | content/child/resource_scheduling_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher_unittest.cc
diff --git a/content/child/resource_dispatcher_unittest.cc b/content/child/resource_dispatcher_unittest.cc
index c9f4d3042fcf66b781543299577628d00a87a838..005be33a4d498199100cf5e169ec7f7fd3de181f 100644
--- a/content/child/resource_dispatcher_unittest.cc
+++ b/content/child/resource_dispatcher_unittest.cc
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <vector>
@@ -55,7 +58,7 @@ class TestRequestPeer : public RequestPeer {
void set_request_id(int request_id) { request_id_ = request_id; }
- void OnUploadProgress(uint64 position, uint64 size) override {}
+ void OnUploadProgress(uint64_t position, uint64_t size) override {}
bool OnReceivedRedirect(const net::RedirectInfo& redirect_info,
const ResourceResponseInfo& info) override {
@@ -89,7 +92,7 @@ class TestRequestPeer : public RequestPeer {
bool stale_copy_in_cache,
const std::string& security_info,
const base::TimeTicks& completion_time,
- int64 total_transfer_size) override {
+ int64_t total_transfer_size) override {
EXPECT_TRUE(received_response_);
EXPECT_FALSE(complete_);
complete_ = true;
@@ -102,7 +105,7 @@ class TestRequestPeer : public RequestPeer {
bool stale_copy_in_cache,
const std::string& security_info,
const base::TimeTicks& completion_time,
- int64 total_transfer_size) override {
+ int64_t total_transfer_size) override {
bool cancel_on_receive_response = cancel_on_receive_response_;
OnReceivedResponse(info);
if (cancel_on_receive_response)
@@ -739,7 +742,7 @@ class TimeConversionTest : public ResourceDispatcherTest,
}
// RequestPeer methods.
- void OnUploadProgress(uint64 position, uint64 size) override {}
+ void OnUploadProgress(uint64_t position, uint64_t size) override {}
bool OnReceivedRedirect(const net::RedirectInfo& redirect_info,
const ResourceResponseInfo& info) override {
@@ -759,7 +762,7 @@ class TimeConversionTest : public ResourceDispatcherTest,
bool stale_copy_in_cache,
const std::string& security_info,
const base::TimeTicks& completion_time,
- int64 total_transfer_size) override {}
+ int64_t total_transfer_size) override {}
void OnReceivedCompletedResponse(const ResourceResponseInfo& info,
scoped_ptr<ReceivedData> data,
@@ -768,7 +771,7 @@ class TimeConversionTest : public ResourceDispatcherTest,
bool stale_copy_in_cache,
const std::string& security_info,
const base::TimeTicks& completion_time,
- int64 total_transfer_size) override {}
+ int64_t total_transfer_size) override {}
const ResourceResponseInfo& response_info() const { return response_info_; }
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/resource_scheduling_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698