backoff_policy_.num_errors_to_ignore = 0;
}
- virtual const BackoffEntry* GetBackoffEntry() const OVERRIDE {
+ const BackoffEntry* GetBackoffEntry() const override {
return &mock_backoff_entry_;
}
- virtual BackoffEntry* GetBackoffEntry() OVERRIDE {
- return &mock_backoff_entry_;
- }
+ BackoffEntry* GetBackoffEntry() override { return &mock_backoff_entry_; }
static bool ExplicitUserRequest(int load_flags) {
return URLRequestThrottlerEntry::ExplicitUserRequest(load_flags);
}
// Overridden for tests.
- virtual TimeTicks ImplGetTimeNow() const OVERRIDE { return fake_time_now_; }
+ TimeTicks ImplGetTimeNow() const override { return fake_time_now_; }
void set_exponential_backoff_release_time(
const base::TimeTicks& release_time) {
MockBackoffEntry mock_backoff_entry_;
protected:
- virtual ~MockURLRequestThrottlerEntry() {}
+ ~MockURLRequestThrottlerEntry() override {}
};
class MockURLRequestThrottlerManager : public URLRequestThrottlerManager {
: request_(context_.CreateRequest(GURL(), DEFAULT_PRIORITY, NULL, NULL)) {
}
- virtual void SetUp();
+ void SetUp() override;
TimeTicks now_;
MockURLRequestThrottlerManager manager_; // Dummy object, not used.
: request_(context_.CreateRequest(GURL(), DEFAULT_PRIORITY, NULL, NULL)) {
}
- virtual void SetUp() {
- request_->SetLoadFlags(0);
- }
+ void SetUp() override { request_->SetLoadFlags(0); }
void ExpectEntryAllowsAllOnErrorIfOptedOut(
URLRequestThrottlerEntryInterface* entry,