| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef BASE_TIMER_MOCK_TIMER_H_ |
| #define BASE_TIMER_MOCK_TIMER_H_ |
| #include "base/timer/timer.h" |
| class BASE_EXPORT MockTimer : public Timer { |
| MockTimer(bool retain_user_task, bool is_repeating); |
| MockTimer(const Location& posted_from, |
| const base::Closure& user_task, |
| // base::Timer implementation. |
| bool IsRunning() const override; |
| base::TimeDelta GetCurrentDelay() const override; |
| void Start(const Location& posted_from, |
| const base::Closure& user_task) override; |
| base::Closure user_task_; |
| #endif // BASE_TIMER_MOCK_TIMER_H_ |