| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic/core/quic_session.h" | 5 #include "net/quic/core/quic_session.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 closed_streams_.insert(id); | 275 closed_streams_.insert(id); |
| 276 } | 276 } |
| 277 | 277 |
| 278 QuicVersion version() const { return connection_->version(); } | 278 QuicVersion version() const { return connection_->version(); } |
| 279 | 279 |
| 280 QuicFlagSaver flags_; // Save/restore all QUIC flag values. | 280 QuicFlagSaver flags_; // Save/restore all QUIC flag values. |
| 281 MockQuicConnectionHelper helper_; | 281 MockQuicConnectionHelper helper_; |
| 282 MockAlarmFactory alarm_factory_; | 282 MockAlarmFactory alarm_factory_; |
| 283 StrictMock<MockQuicConnection>* connection_; | 283 StrictMock<MockQuicConnection>* connection_; |
| 284 TestSession session_; | 284 TestSession session_; |
| 285 set<QuicStreamId> closed_streams_; | 285 std::set<QuicStreamId> closed_streams_; |
| 286 SpdyHeaderBlock headers_; | 286 SpdyHeaderBlock headers_; |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 class QuicSessionTestServer : public QuicSessionTestBase { | 289 class QuicSessionTestServer : public QuicSessionTestBase { |
| 290 protected: | 290 protected: |
| 291 QuicSessionTestServer() : QuicSessionTestBase(Perspective::IS_SERVER) {} | 291 QuicSessionTestServer() : QuicSessionTestBase(Perspective::IS_SERVER) {} |
| 292 }; | 292 }; |
| 293 | 293 |
| 294 INSTANTIATE_TEST_CASE_P(Tests, | 294 INSTANTIATE_TEST_CASE_P(Tests, |
| 295 QuicSessionTestServer, | 295 QuicSessionTestServer, |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 if (version() <= QUIC_VERSION_35) { | 1297 if (version() <= QUIC_VERSION_35) { |
| 1298 EXPECT_FALSE(session_.force_hol_blocking()); | 1298 EXPECT_FALSE(session_.force_hol_blocking()); |
| 1299 } else { | 1299 } else { |
| 1300 EXPECT_TRUE(session_.force_hol_blocking()); | 1300 EXPECT_TRUE(session_.force_hol_blocking()); |
| 1301 } | 1301 } |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 } // namespace | 1304 } // namespace |
| 1305 } // namespace test | 1305 } // namespace test |
| 1306 } // namespace net | 1306 } // namespace net |
| OLD | NEW |