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

Side by Side Diff: net/http/http_stream_factory_test_util.h

Issue 2332193003: JobController3: Move MarkAlternativeServiceBroken to job controller (Closed)
Patch Set: rebase Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "net/http/http_stream.h" 9 #include "net/http/http_stream.h"
10 #include "net/http/http_stream_factory.h" 10 #include "net/http/http_stream_factory.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 HostPortPair destination, 113 HostPortPair destination,
114 GURL origin_url, 114 GURL origin_url,
115 AlternativeService alternative_service, 115 AlternativeService alternative_service,
116 const ProxyServer& alternative_proxy_server, 116 const ProxyServer& alternative_proxy_server,
117 NetLog* net_log); 117 NetLog* net_log);
118 118
119 ~MockHttpStreamFactoryImplJob() override; 119 ~MockHttpStreamFactoryImplJob() override;
120 120
121 MOCK_METHOD0(Resume, void()); 121 MOCK_METHOD0(Resume, void());
122 122
123 MOCK_METHOD1(MarkOtherJobComplete, void(const Job& job));
124
125 MOCK_METHOD0(Orphan, void()); 123 MOCK_METHOD0(Orphan, void());
126 }; 124 };
127 125
128 // JobFactory for creating MockHttpStreamFactoryImplJobs. 126 // JobFactory for creating MockHttpStreamFactoryImplJobs.
129 class TestJobFactory : public HttpStreamFactoryImpl::JobFactory { 127 class TestJobFactory : public HttpStreamFactoryImpl::JobFactory {
130 public: 128 public:
131 TestJobFactory(); 129 TestJobFactory();
132 ~TestJobFactory() override; 130 ~TestJobFactory() override;
133 131
134 HttpStreamFactoryImpl::Job* CreateJob( 132 HttpStreamFactoryImpl::Job* CreateJob(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 private: 180 private:
183 MockHttpStreamFactoryImplJob* main_job_; 181 MockHttpStreamFactoryImplJob* main_job_;
184 MockHttpStreamFactoryImplJob* alternative_job_; 182 MockHttpStreamFactoryImplJob* alternative_job_;
185 bool override_main_job_url_; 183 bool override_main_job_url_;
186 GURL main_job_alternative_url_; 184 GURL main_job_alternative_url_;
187 }; 185 };
188 186
189 } // namespace net 187 } // namespace net
190 188
191 #endif // NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_ 189 #endif // NET_HTTP_HTTP_STREAM_FACTORY_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698