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

Unified Diff: net/http/http_cache_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/http/http_cache_transaction.cc ('k') | net/http/http_chunked_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_unittest.cc
diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc
index 76deac3fde70b51e8461e53a670950eba573e362..4d0b81d318fcd30d74c0ef2219892de7f69f15a8 100644
--- a/net/http/http_cache_unittest.cc
+++ b/net/http/http_cache_unittest.cc
@@ -11,6 +11,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
@@ -491,10 +492,10 @@ void Verify206Response(const std::string& response, int start, int end) {
ASSERT_EQ(206, headers->response_code());
- int64 range_start, range_end, object_size;
+ int64_t range_start, range_end, object_size;
ASSERT_TRUE(
headers->GetContentRange(&range_start, &range_end, &object_size));
- int64 content_length = headers->GetContentLength();
+ int64_t content_length = headers->GetContentLength();
int length = end - start + 1;
ASSERT_EQ(length, content_length);
@@ -2924,7 +2925,7 @@ TEST(HttpCache, SimplePOST_LoadOnlyFromCache_Hit) {
MockTransaction transaction(kSimplePOST_Transaction);
- const int64 kUploadId = 1; // Just a dummy value.
+ const int64_t kUploadId = 1; // Just a dummy value.
std::vector<scoped_ptr<UploadElementReader>> element_readers;
element_readers.push_back(
@@ -2957,7 +2958,7 @@ TEST(HttpCache, SimplePOST_WithRanges) {
MockTransaction transaction(kSimplePOST_Transaction);
transaction.request_headers = "Range: bytes = 0-4\r\n";
- const int64 kUploadId = 1; // Just a dummy value.
+ const int64_t kUploadId = 1; // Just a dummy value.
std::vector<scoped_ptr<UploadElementReader>> element_readers;
element_readers.push_back(
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | net/http/http_chunked_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698