| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_UTIL_H_ | 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_UTIL_H_ |
| 6 #define COMPONENTS_DOMAIN_RELIABILITY_UTIL_H_ | 6 #define COMPONENTS_DOMAIN_RELIABILITY_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Implementation of MockableTime that passes through to | 71 // Implementation of MockableTime that passes through to |
| 72 // base::Time{,Ticks}::Now() and base::Timer. | 72 // base::Time{,Ticks}::Now() and base::Timer. |
| 73 class DOMAIN_RELIABILITY_EXPORT ActualTime : public MockableTime { | 73 class DOMAIN_RELIABILITY_EXPORT ActualTime : public MockableTime { |
| 74 public: | 74 public: |
| 75 ActualTime(); | 75 ActualTime(); |
| 76 | 76 |
| 77 virtual ~ActualTime(); | 77 virtual ~ActualTime(); |
| 78 | 78 |
| 79 // MockableTime implementation: | 79 // MockableTime implementation: |
| 80 virtual base::Time Now() OVERRIDE; | 80 virtual base::Time Now() override; |
| 81 virtual base::TimeTicks NowTicks() OVERRIDE; | 81 virtual base::TimeTicks NowTicks() override; |
| 82 virtual scoped_ptr<MockableTime::Timer> CreateTimer() OVERRIDE; | 82 virtual scoped_ptr<MockableTime::Timer> CreateTimer() override; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace domain_reliability | 85 } // namespace domain_reliability |
| 86 | 86 |
| 87 #endif // COMPONENTS_DOMAIN_RELIABILITY_UTIL_H_ | 87 #endif // COMPONENTS_DOMAIN_RELIABILITY_UTIL_H_ |
| OLD | NEW |