| Index: chrome/browser/extensions/extensions_quota_service_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extensions_quota_service_unittest.cc (revision 181040)
|
| +++ chrome/browser/extensions/extensions_quota_service_unittest.cc (working copy)
|
| @@ -34,7 +34,8 @@
|
| public:
|
| Mapper() {}
|
| virtual ~Mapper() { STLDeleteValues(&buckets_); }
|
| - virtual void GetBucketsForArgs(const ListValue* args, BucketList* buckets) {
|
| + virtual void GetBucketsForArgs(const ListValue* args,
|
| + BucketList* buckets) OVERRIDE {
|
| for (size_t i = 0; i < args->GetSize(); i++) {
|
| int id;
|
| ASSERT_TRUE(args->GetInteger(i, &id));
|
| @@ -51,7 +52,9 @@
|
|
|
| class MockMapper : public QuotaLimitHeuristic::BucketMapper {
|
| public:
|
| - virtual void GetBucketsForArgs(const ListValue* args, BucketList* buckets) {}
|
| + virtual void GetBucketsForArgs(const ListValue* args,
|
| + BucketList* buckets) OVERRIDE {
|
| + }
|
| };
|
|
|
| class MockFunction : public ExtensionFunction {
|
| @@ -75,7 +78,7 @@
|
| explicit TimedLimitMockFunction(const std::string& name)
|
| : MockFunction(name) {}
|
| virtual void GetQuotaLimitHeuristics(
|
| - QuotaLimitHeuristics* heuristics) const {
|
| + QuotaLimitHeuristics* heuristics) const OVERRIDE {
|
| heuristics->push_back(
|
| new TimedLimit(k2PerMinute, new Mapper(), kGenericName));
|
| }
|
| @@ -89,7 +92,7 @@
|
| explicit ChainedLimitsMockFunction(const std::string& name)
|
| : MockFunction(name) {}
|
| virtual void GetQuotaLimitHeuristics(
|
| - QuotaLimitHeuristics* heuristics) const {
|
| + QuotaLimitHeuristics* heuristics) const OVERRIDE {
|
| // No more than 2 per minute sustained over 5 minutes.
|
| heuristics->push_back(new SustainedLimit(
|
| TimeDelta::FromMinutes(5), k2PerMinute, new Mapper(), kGenericName));
|
| @@ -106,7 +109,7 @@
|
| public:
|
| explicit FrozenMockFunction(const std::string& name) : MockFunction(name) {}
|
| virtual void GetQuotaLimitHeuristics(
|
| - QuotaLimitHeuristics* heuristics) const {
|
| + QuotaLimitHeuristics* heuristics) const OVERRIDE {
|
| heuristics->push_back(
|
| new TimedLimit(kFrozenConfig, new Mapper(), kGenericName));
|
| }
|
|
|