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

Side by Side Diff: net/spdy/spdy_test_util_common.h

Issue 1061853002: Emit session-level WINDOW_UPDATEs less frequently. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: comments in #5. Created 5 years, 8 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
« no previous file with comments | « net/spdy/spdy_stream.cc ('k') | net/spdy/spdy_test_util_common.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_SPDY_SPDY_TEST_UTIL_COMMON_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 scoped_refptr<SSLConfigService> ssl_config_service; 208 scoped_refptr<SSLConfigService> ssl_config_service;
209 scoped_ptr<MockClientSocketFactory> socket_factory; 209 scoped_ptr<MockClientSocketFactory> socket_factory;
210 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory; 210 scoped_ptr<DeterministicMockClientSocketFactory> deterministic_socket_factory;
211 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory; 211 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory;
212 HttpServerPropertiesImpl http_server_properties; 212 HttpServerPropertiesImpl http_server_properties;
213 bool enable_ip_pooling; 213 bool enable_ip_pooling;
214 bool enable_compression; 214 bool enable_compression;
215 bool enable_ping; 215 bool enable_ping;
216 bool enable_user_alternate_protocol_ports; 216 bool enable_user_alternate_protocol_ports;
217 NextProto protocol; 217 NextProto protocol;
218 size_t stream_initial_recv_window_size; 218 size_t session_max_recv_window_size;
219 size_t stream_max_recv_window_size;
219 SpdySession::TimeFunc time_func; 220 SpdySession::TimeFunc time_func;
220 NextProtoVector next_protos; 221 NextProtoVector next_protos;
221 std::string trusted_spdy_proxy; 222 std::string trusted_spdy_proxy;
222 bool force_spdy_over_ssl; 223 bool force_spdy_over_ssl;
223 bool force_spdy_always; 224 bool force_spdy_always;
224 bool use_alternate_protocols; 225 bool use_alternate_protocols;
225 NetLog* net_log; 226 NetLog* net_log;
226 }; 227 };
227 228
228 class SpdyURLRequestContext : public URLRequestContext { 229 class SpdyURLRequestContext : public URLRequestContext {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 const SpdySessionKey& key, 283 const SpdySessionKey& key,
283 Error expected_error); 284 Error expected_error);
284 285
285 class SpdySessionPoolPeer { 286 class SpdySessionPoolPeer {
286 public: 287 public:
287 explicit SpdySessionPoolPeer(SpdySessionPool* pool); 288 explicit SpdySessionPoolPeer(SpdySessionPool* pool);
288 289
289 void RemoveAliases(const SpdySessionKey& key); 290 void RemoveAliases(const SpdySessionKey& key);
290 void DisableDomainAuthenticationVerification(); 291 void DisableDomainAuthenticationVerification();
291 void SetEnableSendingInitialData(bool enabled); 292 void SetEnableSendingInitialData(bool enabled);
293 void SetSessionMaxRecvWindowSize(size_t window);
294 void SetStreamInitialRecvWindowSize(size_t window);
292 295
293 private: 296 private:
294 SpdySessionPool* const pool_; 297 SpdySessionPool* const pool_;
295 298
296 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); 299 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer);
297 }; 300 };
298 301
299 class SpdyTestUtil { 302 class SpdyTestUtil {
300 public: 303 public:
301 explicit SpdyTestUtil(NextProto protocol); 304 explicit SpdyTestUtil(NextProto protocol);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 base::StringPiece url, 582 base::StringPiece url,
580 int64* content_length) const; 583 int64* content_length) const;
581 584
582 const NextProto protocol_; 585 const NextProto protocol_;
583 const SpdyMajorVersion spdy_version_; 586 const SpdyMajorVersion spdy_version_;
584 }; 587 };
585 588
586 } // namespace net 589 } // namespace net
587 590
588 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 591 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698