Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: components/domain_reliability/test_util.h

Issue 404363003: Domain Reliability: Add wildcard domain support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests, finally Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/domain_reliability/monitor_unittest.cc ('k') | components/domain_reliability/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698