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

Unified Diff: content/browser/appcache/appcache_service_unittest.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/browser/appcache/appcache_service_impl.cc ('k') | content/browser/appcache/appcache_storage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_service_unittest.cc
diff --git a/content/browser/appcache/appcache_service_unittest.cc b/content/browser/appcache/appcache_service_unittest.cc
index 62e6a4dbe0b216f93d48f7f94e592788fd841a6e..79febf7675ae465389e6b6551de3e5f70b7dd260 100644
--- a/content/browser/appcache/appcache_service_unittest.cc
+++ b/content/browser/appcache/appcache_service_unittest.cc
@@ -2,11 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include <string>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/location.h"
+#include "base/macros.h"
#include "base/pickle.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
@@ -22,11 +25,11 @@
namespace content {
namespace {
-const int64 kMockGroupId = 1;
-const int64 kMockCacheId = 1;
-const int64 kMockResponseId = 1;
-const int64 kMissingCacheId = 5;
-const int64 kMissingResponseId = 5;
+const int64_t kMockGroupId = 1;
+const int64_t kMockCacheId = 1;
+const int64_t kMockResponseId = 1;
+const int64_t kMissingCacheId = 5;
+const int64_t kMissingResponseId = 5;
const char kMockHeaders[] =
"HTTP/1.0 200 OK\0Content-Length: 5\0\0";
const char kMockBody[] = "Hello";
@@ -34,13 +37,16 @@ const int kMockBodySize = 5;
class MockResponseReader : public AppCacheResponseReader {
public:
- MockResponseReader(int64 response_id,
- net::HttpResponseInfo* info, int info_size,
- const char* data, int data_size)
+ MockResponseReader(int64_t response_id,
+ net::HttpResponseInfo* info,
+ int info_size,
+ const char* data,
+ int data_size)
: AppCacheResponseReader(response_id, 0, NULL),
- info_(info), info_size_(info_size),
- data_(data), data_size_(data_size) {
- }
+ info_(info),
+ info_size_(info_size),
+ data_(data),
+ data_size_(data_size) {}
void ReadInfo(HttpResponseInfoIOBuffer* info_buf,
const net::CompletionCallback& callback) override {
info_buffer_ = info_buf;
« no previous file with comments | « content/browser/appcache/appcache_service_impl.cc ('k') | content/browser/appcache/appcache_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698