| 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 #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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 SpdySessionPool* pool, | 264 SpdySessionPool* pool, |
| 265 const SpdySessionKey& key, | 265 const SpdySessionKey& key, |
| 266 Error expected_error); | 266 Error expected_error); |
| 267 | 267 |
| 268 class SpdySessionPoolPeer { | 268 class SpdySessionPoolPeer { |
| 269 public: | 269 public: |
| 270 explicit SpdySessionPoolPeer(SpdySessionPool* pool); | 270 explicit SpdySessionPoolPeer(SpdySessionPool* pool); |
| 271 | 271 |
| 272 void RemoveAliases(const SpdySessionKey& key); | 272 void RemoveAliases(const SpdySessionKey& key); |
| 273 void SetEnableSendingInitialData(bool enabled); | 273 void SetEnableSendingInitialData(bool enabled); |
| 274 void SetSessionMaxRecvWindowSize(size_t window); | |
| 275 void SetStreamInitialRecvWindowSize(size_t window); | |
| 276 | 274 |
| 277 private: | 275 private: |
| 278 SpdySessionPool* const pool_; | 276 SpdySessionPool* const pool_; |
| 279 | 277 |
| 280 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); | 278 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); |
| 281 }; | 279 }; |
| 282 | 280 |
| 283 class SpdyTestUtil { | 281 class SpdyTestUtil { |
| 284 public: | 282 public: |
| 285 SpdyTestUtil(); | 283 SpdyTestUtil(); |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 514 |
| 517 GURL default_url_; | 515 GURL default_url_; |
| 518 | 516 |
| 519 // Track a FIFO list of the stream_id of all created requests by priority. | 517 // Track a FIFO list of the stream_id of all created requests by priority. |
| 520 std::map<int, std::vector<int>> priority_to_stream_id_list_; | 518 std::map<int, std::vector<int>> priority_to_stream_id_list_; |
| 521 }; | 519 }; |
| 522 | 520 |
| 523 } // namespace net | 521 } // namespace net |
| 524 | 522 |
| 525 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ | 523 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ |
| OLD | NEW |