| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/quic/core/quic_server_session_base.h" | 5 #include "net/quic/core/quic_server_session_base.h" |
| 6 | 6 |
| 7 #include <cstdint> | 7 #include <cstdint> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 reference.max_bandwidth_estimate_bytes_per_second() && | 177 reference.max_bandwidth_estimate_bytes_per_second() && |
| 178 arg->max_bandwidth_timestamp_seconds() == | 178 arg->max_bandwidth_timestamp_seconds() == |
| 179 reference.max_bandwidth_timestamp_seconds() && | 179 reference.max_bandwidth_timestamp_seconds() && |
| 180 arg->min_rtt_ms() == reference.min_rtt_ms() && | 180 arg->min_rtt_ms() == reference.min_rtt_ms() && |
| 181 arg->previous_connection_state() == | 181 arg->previous_connection_state() == |
| 182 reference.previous_connection_state()); | 182 reference.previous_connection_state()); |
| 183 } | 183 } |
| 184 | 184 |
| 185 INSTANTIATE_TEST_CASE_P(Tests, | 185 INSTANTIATE_TEST_CASE_P(Tests, |
| 186 QuicServerSessionBaseTest, | 186 QuicServerSessionBaseTest, |
| 187 ::testing::ValuesIn(QuicSupportedVersions())); | 187 ::testing::ValuesIn(AllSupportedVersions())); |
| 188 | 188 |
| 189 TEST_P(QuicServerSessionBaseTest, ServerPushDisabledByDefault) { | 189 TEST_P(QuicServerSessionBaseTest, ServerPushDisabledByDefault) { |
| 190 // Without the client explicitly sending kSPSH, server push will be disabled | 190 // Without the client explicitly sending kSPSH, server push will be disabled |
| 191 // at the server. | 191 // at the server. |
| 192 EXPECT_FALSE( | 192 EXPECT_FALSE( |
| 193 session_->config()->HasReceivedConnectionOptions() && | 193 session_->config()->HasReceivedConnectionOptions() && |
| 194 ContainsQuicTag(session_->config()->ReceivedConnectionOptions(), kSPSH)); | 194 ContainsQuicTag(session_->config()->ReceivedConnectionOptions(), kSPSH)); |
| 195 session_->OnConfigNegotiated(); | 195 session_->OnConfigNegotiated(); |
| 196 EXPECT_FALSE(session_->server_push_enabled()); | 196 EXPECT_FALSE(session_->server_push_enabled()); |
| 197 } | 197 } |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 EXPECT_FALSE( | 557 EXPECT_FALSE( |
| 558 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); | 558 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); |
| 559 session_->OnConfigNegotiated(); | 559 session_->OnConfigNegotiated(); |
| 560 EXPECT_FALSE( | 560 EXPECT_FALSE( |
| 561 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); | 561 QuicServerSessionBasePeer::IsBandwidthResumptionEnabled(session_.get())); |
| 562 } | 562 } |
| 563 | 563 |
| 564 } // namespace | 564 } // namespace |
| 565 } // namespace test | 565 } // namespace test |
| 566 } // namespace net | 566 } // namespace net |
| OLD | NEW |