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

Unified Diff: content/browser/appcache/appcache_quota_client_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
Index: content/browser/appcache/appcache_quota_client_unittest.cc
diff --git a/content/browser/appcache/appcache_quota_client_unittest.cc b/content/browser/appcache/appcache_quota_client_unittest.cc
index de17324034f62c7644742abb01c9fd8388eec46a..a9e1be03ef1bb079fbae3fd4bf6aab1956f9a25a 100644
--- a/content/browser/appcache/appcache_quota_client_unittest.cc
+++ b/content/browser/appcache/appcache_quota_client_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include <map>
#include <set>
@@ -36,9 +38,9 @@ class AppCacheQuotaClientTest : public testing::Test {
num_delete_origins_completions_(0),
weak_factory_(this) {}
- int64 GetOriginUsage(storage::QuotaClient* client,
- const GURL& origin,
- storage::StorageType type) {
+ int64_t GetOriginUsage(storage::QuotaClient* client,
+ const GURL& origin,
+ storage::StorageType type) {
usage_ = -1;
AsyncGetOriginUsage(client, origin, type);
base::RunLoop().RunUntilIdle();
@@ -106,7 +108,7 @@ class AppCacheQuotaClientTest : public testing::Test {
weak_factory_.GetWeakPtr()));
}
- void SetUsageMapEntry(const GURL& origin, int64 usage) {
+ void SetUsageMapEntry(const GURL& origin, int64_t usage) {
mock_service_.storage()->usage_map_[origin] = usage;
}
@@ -127,7 +129,7 @@ class AppCacheQuotaClientTest : public testing::Test {
}
protected:
- void OnGetOriginUsageComplete(int64 usage) {
+ void OnGetOriginUsageComplete(int64_t usage) {
++num_get_origin_usage_completions_;
usage_ = usage;
}
@@ -143,7 +145,7 @@ class AppCacheQuotaClientTest : public testing::Test {
}
base::MessageLoop message_loop_;
- int64 usage_;
+ int64_t usage_;
std::set<GURL> origins_;
storage::QuotaStatusCode delete_status_;
int num_get_origin_usage_completions_;
« no previous file with comments | « content/browser/appcache/appcache_quota_client.h ('k') | content/browser/appcache/appcache_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698