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

Unified Diff: content/browser/quota/usage_tracker_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
« no previous file with comments | « content/browser/quota/storage_monitor_unittest.cc ('k') | content/browser/quota_dispatcher_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/quota/usage_tracker_unittest.cc
diff --git a/content/browser/quota/usage_tracker_unittest.cc b/content/browser/quota/usage_tracker_unittest.cc
index feb7a308134564f1b4c5e361b37e428b6d0c8c8e..1e9a545b451a08492c035106a3bdf62e2589540d 100644
--- a/content/browser/quota/usage_tracker_unittest.cc
+++ b/content/browser/quota/usage_tracker_unittest.cc
@@ -45,25 +45,23 @@ void DidGetUsage(bool* done,
class MockQuotaClient : public QuotaClient {
public:
MockQuotaClient() {}
- virtual ~MockQuotaClient() {}
+ ~MockQuotaClient() override {}
- virtual ID id() const override {
- return kFileSystem;
- }
+ ID id() const override { return kFileSystem; }
- virtual void OnQuotaManagerDestroyed() override {}
+ void OnQuotaManagerDestroyed() override {}
- virtual void GetOriginUsage(const GURL& origin,
- StorageType type,
- const GetUsageCallback& callback) override {
+ void GetOriginUsage(const GURL& origin,
+ StorageType type,
+ const GetUsageCallback& callback) override {
EXPECT_EQ(kStorageTypeTemporary, type);
int64 usage = GetUsage(origin);
base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(callback, usage));
}
- virtual void GetOriginsForType(StorageType type,
- const GetOriginsCallback& callback) override {
+ void GetOriginsForType(StorageType type,
+ const GetOriginsCallback& callback) override {
EXPECT_EQ(kStorageTypeTemporary, type);
std::set<GURL> origins;
for (UsageMap::const_iterator itr = usage_map_.begin();
@@ -74,9 +72,9 @@ class MockQuotaClient : public QuotaClient {
base::Bind(callback, origins));
}
- virtual void GetOriginsForHost(StorageType type,
- const std::string& host,
- const GetOriginsCallback& callback) override {
+ void GetOriginsForHost(StorageType type,
+ const std::string& host,
+ const GetOriginsCallback& callback) override {
EXPECT_EQ(kStorageTypeTemporary, type);
std::set<GURL> origins;
for (UsageMap::const_iterator itr = usage_map_.begin();
@@ -88,16 +86,16 @@ class MockQuotaClient : public QuotaClient {
base::Bind(callback, origins));
}
- virtual void DeleteOriginData(const GURL& origin,
- StorageType type,
- const DeletionCallback& callback) override {
+ void DeleteOriginData(const GURL& origin,
+ StorageType type,
+ const DeletionCallback& callback) override {
EXPECT_EQ(kStorageTypeTemporary, type);
usage_map_.erase(origin);
base::MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(callback, kQuotaStatusOk));
}
- virtual bool DoesSupport(storage::StorageType type) const override {
+ bool DoesSupport(storage::StorageType type) const override {
return type == storage::kStorageTypeTemporary;
}
« no previous file with comments | « content/browser/quota/storage_monitor_unittest.cc ('k') | content/browser/quota_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698