summaryrefslogtreecommitdiffstats
path: root/extensions/browser/quota_service_unittest.cc
diff options
context:
space:
mode:
authormostynb <mostynb@opera.com>2014-10-03 09:32:19 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-03 16:32:37 +0000
commit0eac4e1becc07e32503722d9ffd421cf8c8688e3 (patch)
treeb8777ad781ca887318c7760bb7380fd662497558 /extensions/browser/quota_service_unittest.cc
parentc0fd0633fb72a4e71acaf09f47202c8b8225a015 (diff)
downloadchromium_src-0eac4e1becc07e32503722d9ffd421cf8c8688e3.zip
chromium_src-0eac4e1becc07e32503722d9ffd421cf8c8688e3.tar.gz
chromium_src-0eac4e1becc07e32503722d9ffd421cf8c8688e3.tar.bz2
replace OVERRIDE and FINAL with override and final in extensions/
BUG=417463 Review URL: https://codereview.chromium.org/622343002 Cr-Commit-Position: refs/heads/master@{#298042}
Diffstat (limited to 'extensions/browser/quota_service_unittest.cc')
-rw-r--r--extensions/browser/quota_service_unittest.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/extensions/browser/quota_service_unittest.cc b/extensions/browser/quota_service_unittest.cc
index 8a684c7..df61c28 100644
--- a/extensions/browser/quota_service_unittest.cc
+++ b/extensions/browser/quota_service_unittest.cc
@@ -37,7 +37,7 @@ class Mapper : public QuotaLimitHeuristic::BucketMapper {
Mapper() {}
virtual ~Mapper() { STLDeleteValues(&buckets_); }
virtual void GetBucketsForArgs(const base::ListValue* args,
- BucketList* buckets) OVERRIDE {
+ BucketList* buckets) override {
for (size_t i = 0; i < args->GetSize(); i++) {
int id;
ASSERT_TRUE(args->GetInteger(i, &id));
@@ -56,19 +56,19 @@ class Mapper : public QuotaLimitHeuristic::BucketMapper {
class MockMapper : public QuotaLimitHeuristic::BucketMapper {
public:
virtual void GetBucketsForArgs(const base::ListValue* args,
- BucketList* buckets) OVERRIDE {}
+ BucketList* buckets) override {}
};
class MockFunction : public ExtensionFunction {
public:
explicit MockFunction(const std::string& name) { set_name(name); }
- virtual void SetArgs(const base::ListValue* args) OVERRIDE {}
- virtual std::string GetError() const OVERRIDE { return std::string(); }
- virtual void SetError(const std::string& error) OVERRIDE {}
- virtual void Destruct() const OVERRIDE { delete this; }
- virtual ResponseAction Run() OVERRIDE { return RespondLater(); }
- virtual void SendResponse(bool) OVERRIDE {}
+ virtual void SetArgs(const base::ListValue* args) override {}
+ virtual std::string GetError() const override { return std::string(); }
+ virtual void SetError(const std::string& error) override {}
+ virtual void Destruct() const override { delete this; }
+ virtual ResponseAction Run() override { return RespondLater(); }
+ virtual void SendResponse(bool) override {}
protected:
virtual ~MockFunction() {}
@@ -79,7 +79,7 @@ class TimedLimitMockFunction : public MockFunction {
explicit TimedLimitMockFunction(const std::string& name)
: MockFunction(name) {}
virtual void GetQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) const
- OVERRIDE {
+ override {
heuristics->push_back(
new TimedLimit(k2PerMinute, new Mapper(), kGenericName));
}
@@ -93,7 +93,7 @@ class ChainedLimitsMockFunction : public MockFunction {
explicit ChainedLimitsMockFunction(const std::string& name)
: MockFunction(name) {}
virtual void GetQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) const
- OVERRIDE {
+ override {
// No more than 2 per minute sustained over 5 minutes.
heuristics->push_back(new SustainedLimit(
TimeDelta::FromMinutes(5), k2PerMinute, new Mapper(), kGenericName));
@@ -110,7 +110,7 @@ class FrozenMockFunction : public MockFunction {
public:
explicit FrozenMockFunction(const std::string& name) : MockFunction(name) {}
virtual void GetQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) const
- OVERRIDE {
+ override {
heuristics->push_back(
new TimedLimit(kFrozenConfig, new Mapper(), kGenericName));
}