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

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

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 years 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
« no previous file with comments | « components/domain_reliability/service.h ('k') | components/domain_reliability/uploader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "components/domain_reliability/config.h" 11 #include "components/domain_reliability/config.h"
12 #include "components/domain_reliability/scheduler.h" 12 #include "components/domain_reliability/scheduler.h"
13 #include "components/domain_reliability/uploader.h" 13 #include "components/domain_reliability/uploader.h"
14 #include "components/domain_reliability/util.h" 14 #include "components/domain_reliability/util.h"
15 #include "net/base/host_port_pair.h" 15 #include "net/base/host_port_pair.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace net {
19 class URLRequestStatus;
20 } // namespace net
21
22 namespace domain_reliability { 18 namespace domain_reliability {
23 19
24 // A simple test callback that remembers whether it's been called. 20 // A simple test callback that remembers whether it's been called.
25 class TestCallback { 21 class TestCallback {
26 public: 22 public:
27 TestCallback(); 23 TestCallback();
28 ~TestCallback(); 24 ~TestCallback();
29 25
30 // Returns a callback that can be called only once. 26 // Returns a callback that can be called only once.
31 const base::Closure& callback() const { return callback_; } 27 const base::Closure& callback() const { return callback_; }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 }; 120 };
125 121
126 std::unique_ptr<DomainReliabilityConfig> MakeTestConfig(); 122 std::unique_ptr<DomainReliabilityConfig> MakeTestConfig();
127 std::unique_ptr<DomainReliabilityConfig> MakeTestConfigWithOrigin( 123 std::unique_ptr<DomainReliabilityConfig> MakeTestConfigWithOrigin(
128 const GURL& origin); 124 const GURL& origin);
129 DomainReliabilityScheduler::Params MakeTestSchedulerParams(); 125 DomainReliabilityScheduler::Params MakeTestSchedulerParams();
130 126
131 } // namespace domain_reliability 127 } // namespace domain_reliability
132 128
133 #endif // COMPONENTS_DOMAIN_RELIABILITY_TEST_UTIL_H_ 129 #endif // COMPONENTS_DOMAIN_RELIABILITY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « components/domain_reliability/service.h ('k') | components/domain_reliability/uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698