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

Unified Diff: chrome/browser/engagement/site_engagement_eviction_policy_unittest.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (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
Index: chrome/browser/engagement/site_engagement_eviction_policy_unittest.cc
diff --git a/chrome/browser/engagement/site_engagement_eviction_policy_unittest.cc b/chrome/browser/engagement/site_engagement_eviction_policy_unittest.cc
index abef52d2889d1320c9c34232d5b2dcc824be2e21..e621cae3a36aca5eebff41edb0385a4e95d4f73c 100644
--- a/chrome/browser/engagement/site_engagement_eviction_policy_unittest.cc
+++ b/chrome/browser/engagement/site_engagement_eviction_policy_unittest.cc
@@ -2,7 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include "base/files/scoped_temp_dir.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.h"
@@ -18,7 +21,7 @@
namespace {
-const int64 kGlobalQuota = 25 * 1024;
+const int64_t kGlobalQuota = 25 * 1024;
} // namespace
@@ -57,14 +60,15 @@ class SiteEngagementEvictionPolicyTest : public testing::Test {
~SiteEngagementEvictionPolicyTest() override {}
- GURL CalculateEvictionOriginWithExceptions(const std::map<GURL, int64>& usage,
- const std::set<GURL>& exceptions) {
+ GURL CalculateEvictionOriginWithExceptions(
+ const std::map<GURL, int64_t>& usage,
+ const std::set<GURL>& exceptions) {
return SiteEngagementEvictionPolicy::CalculateEvictionOriginForTests(
storage_policy_, score_provider_.get(), exceptions, usage,
kGlobalQuota);
}
- GURL CalculateEvictionOrigin(const std::map<GURL, int64>& usage) {
+ GURL CalculateEvictionOrigin(const std::map<GURL, int64_t>& usage) {
return CalculateEvictionOriginWithExceptions(usage, std::set<GURL>());
}
@@ -88,7 +92,7 @@ TEST_F(SiteEngagementEvictionPolicyTest, GetEvictionOrigin) {
GURL url2("http://www.example.com");
GURL url3("http://www.spam.me");
- std::map<GURL, int64> usage;
+ std::map<GURL, int64_t> usage;
usage[url1] = 10 * 1024;
usage[url2] = 10 * 1024;
usage[url3] = 10 * 1024;
@@ -126,7 +130,7 @@ TEST_F(SiteEngagementEvictionPolicyTest, SpecialStoragePolicy) {
GURL url1("http://www.google.com");
GURL url2("http://www.example.com");
- std::map<GURL, int64> usage;
+ std::map<GURL, int64_t> usage;
usage[url1] = 10 * 1024;
usage[url2] = 10 * 1024;
@@ -148,7 +152,7 @@ TEST_F(SiteEngagementEvictionPolicyTest, Exceptions) {
GURL url1("http://www.google.com");
GURL url2("http://www.example.com");
- std::map<GURL, int64> usage;
+ std::map<GURL, int64_t> usage;
usage[url1] = 10 * 1024;
usage[url2] = 10 * 1024;
« no previous file with comments | « chrome/browser/engagement/site_engagement_eviction_policy.cc ('k') | chrome/browser/engagement/site_engagement_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698