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

Unified Diff: chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 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/browsing_data/browsing_data_quota_helper_unittest.cc
diff --git a/chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc b/chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc
index 32585dcc3c0f5167e8b28d8f1390097f1307f2c3..ac0156f9d33e6a90c2aea887e1294cf961818324 100644
--- a/chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc
+++ b/chrome/browser/browsing_data/browsing_data_quota_helper_unittest.cc
@@ -4,8 +4,12 @@
#include "testing/gtest/include/gtest/gtest.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
#include "chrome/browser/browsing_data/browsing_data_quota_helper_impl.h"
@@ -71,7 +75,7 @@ class BrowsingDataQuotaHelperTest : public testing::Test {
client->TouchAllOriginsAndNotify();
}
- void SetPersistentHostQuota(const std::string& host, int64 quota) {
+ void SetPersistentHostQuota(const std::string& host, int64_t quota) {
quota_ = -1;
quota_manager_->SetPersistentHostQuota(
host, quota,
@@ -87,7 +91,7 @@ class BrowsingDataQuotaHelperTest : public testing::Test {
weak_factory_.GetWeakPtr()));
}
- void GotPersistentHostQuota(storage::QuotaStatusCode status, int64 quota) {
+ void GotPersistentHostQuota(storage::QuotaStatusCode status, int64_t quota) {
EXPECT_EQ(storage::kQuotaStatusOk, status);
quota_ = quota;
}
@@ -96,9 +100,7 @@ class BrowsingDataQuotaHelperTest : public testing::Test {
helper_->RevokeHostQuota(host);
}
- int64 quota() {
- return quota_;
- }
+ int64_t quota() { return quota_; }
private:
void FetchCompleted(const QuotaInfoArray& quota_info) {
@@ -114,7 +116,7 @@ class BrowsingDataQuotaHelperTest : public testing::Test {
bool fetching_completed_ = true;
QuotaInfoArray quota_info_;
- int64 quota_ = -1;
+ int64_t quota_ = -1;
base::WeakPtrFactory<BrowsingDataQuotaHelperTest> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperTest);
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_quota_helper_impl.cc ('k') | chrome/browser/browsing_data/browsing_data_remover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698