| OLD | NEW |
| 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 #include "net/spdy/spdy_test_util_common.h" | 5 #include "net/spdy/spdy_test_util_common.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <cstddef> | 9 #include <cstddef> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 return CreateFakeSpdySessionHelper(pool, key, expected_error); | 665 return CreateFakeSpdySessionHelper(pool, key, expected_error); |
| 666 } | 666 } |
| 667 | 667 |
| 668 SpdySessionPoolPeer::SpdySessionPoolPeer(SpdySessionPool* pool) : pool_(pool) { | 668 SpdySessionPoolPeer::SpdySessionPoolPeer(SpdySessionPool* pool) : pool_(pool) { |
| 669 } | 669 } |
| 670 | 670 |
| 671 void SpdySessionPoolPeer::RemoveAliases(const SpdySessionKey& key) { | 671 void SpdySessionPoolPeer::RemoveAliases(const SpdySessionKey& key) { |
| 672 pool_->RemoveAliases(key); | 672 pool_->RemoveAliases(key); |
| 673 } | 673 } |
| 674 | 674 |
| 675 void SpdySessionPoolPeer::DisableDomainAuthenticationVerification() { | |
| 676 pool_->verify_domain_authentication_ = false; | |
| 677 } | |
| 678 | |
| 679 void SpdySessionPoolPeer::SetEnableSendingInitialData(bool enabled) { | 675 void SpdySessionPoolPeer::SetEnableSendingInitialData(bool enabled) { |
| 680 pool_->enable_sending_initial_data_ = enabled; | 676 pool_->enable_sending_initial_data_ = enabled; |
| 681 } | 677 } |
| 682 | 678 |
| 683 void SpdySessionPoolPeer::SetSessionMaxRecvWindowSize(size_t window) { | 679 void SpdySessionPoolPeer::SetSessionMaxRecvWindowSize(size_t window) { |
| 684 pool_->session_max_recv_window_size_ = window; | 680 pool_->session_max_recv_window_size_ = window; |
| 685 } | 681 } |
| 686 | 682 |
| 687 void SpdySessionPoolPeer::SetStreamInitialRecvWindowSize(size_t window) { | 683 void SpdySessionPoolPeer::SetStreamInitialRecvWindowSize(size_t window) { |
| 688 pool_->stream_max_recv_window_size_ = window; | 684 pool_->stream_max_recv_window_size_ = window; |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 headers[GetSchemeKey()] = scheme.c_str(); | 1139 headers[GetSchemeKey()] = scheme.c_str(); |
| 1144 headers[GetPathKey()] = path.c_str(); | 1140 headers[GetPathKey()] = path.c_str(); |
| 1145 if (content_length) { | 1141 if (content_length) { |
| 1146 std::string length_str = base::Int64ToString(*content_length); | 1142 std::string length_str = base::Int64ToString(*content_length); |
| 1147 headers["content-length"] = length_str; | 1143 headers["content-length"] = length_str; |
| 1148 } | 1144 } |
| 1149 return headers; | 1145 return headers; |
| 1150 } | 1146 } |
| 1151 | 1147 |
| 1152 } // namespace net | 1148 } // namespace net |
| OLD | NEW |