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

Unified Diff: content/browser/quota/quota_reservation_manager_unittest.cc

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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/quota/quota_reservation_manager_unittest.cc
diff --git a/content/browser/quota/quota_reservation_manager_unittest.cc b/content/browser/quota/quota_reservation_manager_unittest.cc
index eff98b458124b6f8241a417c5586bac72f06277b..66c42df6be4bd8cda9068f7d89fe304b2eab0f60 100644
--- a/content/browser/quota/quota_reservation_manager_unittest.cc
+++ b/content/browser/quota/quota_reservation_manager_unittest.cc
@@ -47,12 +47,12 @@ class FakeBackend : public QuotaReservationManager::QuotaBackend {
FakeBackend()
: on_memory_usage_(kInitialFileSize),
on_disk_usage_(kInitialFileSize) {}
- virtual ~FakeBackend() {}
+ ~FakeBackend() override {}
- virtual void ReserveQuota(const GURL& origin,
- storage::FileSystemType type,
- int64 delta,
- const ReserveQuotaCallback& callback) override {
+ void ReserveQuota(const GURL& origin,
+ storage::FileSystemType type,
+ int64 delta,
+ const ReserveQuotaCallback& callback) override {
EXPECT_EQ(GURL(kOrigin), origin);
EXPECT_EQ(kType, type);
on_memory_usage_ += delta;
@@ -61,28 +61,28 @@ class FakeBackend : public QuotaReservationManager::QuotaBackend {
base::Bind(base::IgnoreResult(callback), base::File::FILE_OK, delta));
}
- virtual void ReleaseReservedQuota(const GURL& origin,
- storage::FileSystemType type,
- int64 size) override {
+ void ReleaseReservedQuota(const GURL& origin,
+ storage::FileSystemType type,
+ int64 size) override {
EXPECT_LE(0, size);
EXPECT_EQ(GURL(kOrigin), origin);
EXPECT_EQ(kType, type);
on_memory_usage_ -= size;
}
- virtual void CommitQuotaUsage(const GURL& origin,
- storage::FileSystemType type,
- int64 delta) override {
+ void CommitQuotaUsage(const GURL& origin,
+ storage::FileSystemType type,
+ int64 delta) override {
EXPECT_EQ(GURL(kOrigin), origin);
EXPECT_EQ(kType, type);
on_disk_usage_ += delta;
on_memory_usage_ += delta;
}
- virtual void IncrementDirtyCount(const GURL& origin,
- storage::FileSystemType type) override {}
- virtual void DecrementDirtyCount(const GURL& origin,
- storage::FileSystemType type) override {}
+ void IncrementDirtyCount(const GURL& origin,
+ storage::FileSystemType type) override {}
+ void DecrementDirtyCount(const GURL& origin,
+ storage::FileSystemType type) override {}
int64 on_memory_usage() { return on_memory_usage_; }
int64 on_disk_usage() { return on_disk_usage_; }

Powered by Google App Engine
This is Rietveld 408576698