| 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/quic_session.h" | 5 #include "net/quic/quic_session.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 class QuicSessionTestBase : public ::testing::TestWithParam<QuicVersion> { | 199 class QuicSessionTestBase : public ::testing::TestWithParam<QuicVersion> { |
| 200 protected: | 200 protected: |
| 201 explicit QuicSessionTestBase(Perspective perspective) | 201 explicit QuicSessionTestBase(Perspective perspective) |
| 202 : connection_( | 202 : connection_( |
| 203 new StrictMock<MockConnection>(&helper_, | 203 new StrictMock<MockConnection>(&helper_, |
| 204 perspective, | 204 perspective, |
| 205 SupportedVersions(GetParam()))), | 205 SupportedVersions(GetParam()))), |
| 206 session_(connection_) { | 206 session_(connection_) { |
| 207 FLAGS_quic_always_log_bugs_for_tests = true; |
| 207 session_.config()->SetInitialStreamFlowControlWindowToSend( | 208 session_.config()->SetInitialStreamFlowControlWindowToSend( |
| 208 kInitialStreamFlowControlWindowForTest); | 209 kInitialStreamFlowControlWindowForTest); |
| 209 session_.config()->SetInitialSessionFlowControlWindowToSend( | 210 session_.config()->SetInitialSessionFlowControlWindowToSend( |
| 210 kInitialSessionFlowControlWindowForTest); | 211 kInitialSessionFlowControlWindowForTest); |
| 211 headers_[":host"] = "www.google.com"; | 212 headers_[":host"] = "www.google.com"; |
| 212 headers_[":path"] = "/index.hml"; | 213 headers_[":path"] = "/index.hml"; |
| 213 headers_[":scheme"] = "http"; | 214 headers_[":scheme"] = "http"; |
| 214 headers_["cookie"] = | 215 headers_["cookie"] = |
| 215 "__utma=208381060.1228362404.1372200928.1372200928.1372200928.1; " | 216 "__utma=208381060.1228362404.1372200928.1372200928.1372200928.1; " |
| 216 "__utmc=160408618; " | 217 "__utmc=160408618; " |
| (...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 | 1190 |
| 1190 // The stream is not waiting for the arrival of the peer's final offset as it | 1191 // The stream is not waiting for the arrival of the peer's final offset as it |
| 1191 // was received with the FIN earlier. | 1192 // was received with the FIN earlier. |
| 1192 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(&session_) | 1193 EXPECT_EQ(0u, QuicSessionPeer::GetLocallyClosedStreamsHighestOffset(&session_) |
| 1193 .size()); | 1194 .size()); |
| 1194 } | 1195 } |
| 1195 | 1196 |
| 1196 } // namespace | 1197 } // namespace |
| 1197 } // namespace test | 1198 } // namespace test |
| 1198 } // namespace net | 1199 } // namespace net |
| OLD | NEW |