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_TEST_UTIL_H_ | 5 #ifndef COMPONENTS_DOMAIN_RELIABILITY_TEST_UTIL_H_ |
6 #define COMPONENTS_DOMAIN_RELIABILITY_TEST_UTIL_H_ | 6 #define COMPONENTS_DOMAIN_RELIABILITY_TEST_UTIL_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "components/domain_reliability/config.h" | 10 #include "components/domain_reliability/config.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 int elapsed_sec() { return (now_ticks_ - epoch_ticks_).InSeconds(); } | 108 int elapsed_sec() { return (now_ticks_ - epoch_ticks_).InSeconds(); } |
109 | 109 |
110 base::Time now_; | 110 base::Time now_; |
111 base::TimeTicks now_ticks_; | 111 base::TimeTicks now_ticks_; |
112 base::TimeTicks epoch_ticks_; | 112 base::TimeTicks epoch_ticks_; |
113 int task_sequence_number_; | 113 int task_sequence_number_; |
114 TaskMap tasks_; | 114 TaskMap tasks_; |
115 }; | 115 }; |
116 | 116 |
117 scoped_ptr<const DomainReliabilityConfig> MakeTestConfig(); | 117 scoped_ptr<const DomainReliabilityConfig> MakeTestConfig(); |
| 118 scoped_ptr<const DomainReliabilityConfig> MakeTestConfigWithDomain( |
| 119 const std::string& domain); |
118 DomainReliabilityScheduler::Params MakeTestSchedulerParams(); | 120 DomainReliabilityScheduler::Params MakeTestSchedulerParams(); |
119 | 121 |
120 } // namespace domain_reliability | 122 } // namespace domain_reliability |
121 | 123 |
122 #endif // COMPONENTS_DOMAIN_RELIABILITY_TEST_UTIL_H_ | 124 #endif // COMPONENTS_DOMAIN_RELIABILITY_TEST_UTIL_H_ |
OLD | NEW |