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

Unified Diff: content/browser/quota/quota_backend_impl_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_backend_impl_unittest.cc
diff --git a/content/browser/quota/quota_backend_impl_unittest.cc b/content/browser/quota/quota_backend_impl_unittest.cc
index 8a13ed66ace46bfb5edff83b141f35a2adb8cfe1..4ea1ae7e10c11b6623f89eb3a9581889014f7d7b 100644
--- a/content/browser/quota/quota_backend_impl_unittest.cc
+++ b/content/browser/quota/quota_backend_impl_unittest.cc
@@ -46,27 +46,26 @@ class MockQuotaManagerProxy : public storage::QuotaManagerProxy {
usage_(0), quota_(0) {}
// We don't mock them.
- virtual void NotifyOriginInUse(const GURL& origin) override {}
- virtual void NotifyOriginNoLongerInUse(const GURL& origin) override {}
- virtual void SetUsageCacheEnabled(storage::QuotaClient::ID client_id,
- const GURL& origin,
- storage::StorageType type,
- bool enabled) override {}
-
- virtual void NotifyStorageModified(storage::QuotaClient::ID client_id,
- const GURL& origin,
- storage::StorageType type,
- int64 delta) override {
+ void NotifyOriginInUse(const GURL& origin) override {}
+ void NotifyOriginNoLongerInUse(const GURL& origin) override {}
+ void SetUsageCacheEnabled(storage::QuotaClient::ID client_id,
+ const GURL& origin,
+ storage::StorageType type,
+ bool enabled) override {}
+
+ void NotifyStorageModified(storage::QuotaClient::ID client_id,
+ const GURL& origin,
+ storage::StorageType type,
+ int64 delta) override {
++storage_modified_count_;
usage_ += delta;
ASSERT_LE(usage_, quota_);
}
- virtual void GetUsageAndQuota(
- base::SequencedTaskRunner* original_task_runner,
- const GURL& origin,
- storage::StorageType type,
- const GetUsageAndQuotaCallback& callback) override {
+ void GetUsageAndQuota(base::SequencedTaskRunner* original_task_runner,
+ const GURL& origin,
+ storage::StorageType type,
+ const GetUsageAndQuotaCallback& callback) override {
callback.Run(storage::kQuotaStatusOk, usage_, quota_);
}
@@ -76,7 +75,7 @@ class MockQuotaManagerProxy : public storage::QuotaManagerProxy {
void set_quota(int64 quota) { quota_ = quota; }
protected:
- virtual ~MockQuotaManagerProxy() {}
+ ~MockQuotaManagerProxy() override {}
private:
int storage_modified_count_;
« no previous file with comments | « content/browser/quota/mock_quota_manager_proxy.h ('k') | content/browser/quota/quota_reservation_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698