| 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 <cmath> | 5 #include <cmath> |
| 6 #include <memory> | 6 #include <memory> |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 5384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5395 const int32_t kChunkSize = 4096; | 5395 const int32_t kChunkSize = 4096; |
| 5396 // Size of window updates. | 5396 // Size of window updates. |
| 5397 ASSERT_EQ(0, session_max_recv_window_size / 2 % kChunkSize); | 5397 ASSERT_EQ(0, session_max_recv_window_size / 2 % kChunkSize); |
| 5398 const int32_t session_window_update_delta = | 5398 const int32_t session_window_update_delta = |
| 5399 session_max_recv_window_size / 2 + kChunkSize; | 5399 session_max_recv_window_size / 2 + kChunkSize; |
| 5400 ASSERT_EQ(0, stream_max_recv_window_size / 2 % kChunkSize); | 5400 ASSERT_EQ(0, stream_max_recv_window_size / 2 % kChunkSize); |
| 5401 const int32_t stream_window_update_delta = | 5401 const int32_t stream_window_update_delta = |
| 5402 stream_max_recv_window_size / 2 + kChunkSize; | 5402 stream_max_recv_window_size / 2 + kChunkSize; |
| 5403 | 5403 |
| 5404 SettingsMap initial_settings; | 5404 SettingsMap initial_settings; |
| 5405 initial_settings[SETTINGS_HEADER_TABLE_SIZE] = |
| 5406 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, kMaxHeaderTableSize); |
| 5405 initial_settings[SETTINGS_MAX_CONCURRENT_STREAMS] = | 5407 initial_settings[SETTINGS_MAX_CONCURRENT_STREAMS] = |
| 5406 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, kMaxConcurrentPushedStreams); | 5408 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, kMaxConcurrentPushedStreams); |
| 5407 initial_settings[SETTINGS_INITIAL_WINDOW_SIZE] = | 5409 initial_settings[SETTINGS_INITIAL_WINDOW_SIZE] = |
| 5408 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, stream_max_recv_window_size); | 5410 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, stream_max_recv_window_size); |
| 5409 SpdySerializedFrame initial_settings_frame( | 5411 SpdySerializedFrame initial_settings_frame( |
| 5410 spdy_util_.ConstructSpdySettings(initial_settings)); | 5412 spdy_util_.ConstructSpdySettings(initial_settings)); |
| 5411 SpdySerializedFrame initial_window_update( | 5413 SpdySerializedFrame initial_window_update( |
| 5412 spdy_util_.ConstructSpdyWindowUpdate( | 5414 spdy_util_.ConstructSpdyWindowUpdate( |
| 5413 kSessionFlowControlStreamId, | 5415 kSessionFlowControlStreamId, |
| 5414 session_max_recv_window_size - kDefaultInitialWindowSize)); | 5416 session_max_recv_window_size - kDefaultInitialWindowSize)); |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6224 TEST_F(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { | 6226 TEST_F(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { |
| 6225 std::unique_ptr<SSLSocketDataProvider> ssl_provider( | 6227 std::unique_ptr<SSLSocketDataProvider> ssl_provider( |
| 6226 new SSLSocketDataProvider(ASYNC, OK)); | 6228 new SSLSocketDataProvider(ASYNC, OK)); |
| 6227 // Set to TLS_RSA_WITH_NULL_MD5 | 6229 // Set to TLS_RSA_WITH_NULL_MD5 |
| 6228 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); | 6230 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); |
| 6229 | 6231 |
| 6230 RunTLSUsageCheckTest(std::move(ssl_provider)); | 6232 RunTLSUsageCheckTest(std::move(ssl_provider)); |
| 6231 } | 6233 } |
| 6232 | 6234 |
| 6233 } // namespace net | 6235 } // namespace net |
| OLD | NEW |