Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: net/spdy/spdy_network_transaction_unittest.cc

Issue 2302573002: Revert of Increase maximum size of the HPACK decoder dynamic table to 64 kB. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
5407 initial_settings[SETTINGS_MAX_CONCURRENT_STREAMS] = 5405 initial_settings[SETTINGS_MAX_CONCURRENT_STREAMS] =
5408 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, kMaxConcurrentPushedStreams); 5406 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, kMaxConcurrentPushedStreams);
5409 initial_settings[SETTINGS_INITIAL_WINDOW_SIZE] = 5407 initial_settings[SETTINGS_INITIAL_WINDOW_SIZE] =
5410 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, stream_max_recv_window_size); 5408 SettingsFlagsAndValue(SETTINGS_FLAG_NONE, stream_max_recv_window_size);
5411 SpdySerializedFrame initial_settings_frame( 5409 SpdySerializedFrame initial_settings_frame(
5412 spdy_util_.ConstructSpdySettings(initial_settings)); 5410 spdy_util_.ConstructSpdySettings(initial_settings));
5413 SpdySerializedFrame initial_window_update( 5411 SpdySerializedFrame initial_window_update(
5414 spdy_util_.ConstructSpdyWindowUpdate( 5412 spdy_util_.ConstructSpdyWindowUpdate(
5415 kSessionFlowControlStreamId, 5413 kSessionFlowControlStreamId,
5416 session_max_recv_window_size - kDefaultInitialWindowSize)); 5414 session_max_recv_window_size - kDefaultInitialWindowSize));
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
6226 TEST_F(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { 6224 TEST_F(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) {
6227 std::unique_ptr<SSLSocketDataProvider> ssl_provider( 6225 std::unique_ptr<SSLSocketDataProvider> ssl_provider(
6228 new SSLSocketDataProvider(ASYNC, OK)); 6226 new SSLSocketDataProvider(ASYNC, OK));
6229 // Set to TLS_RSA_WITH_NULL_MD5 6227 // Set to TLS_RSA_WITH_NULL_MD5
6230 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); 6228 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status);
6231 6229
6232 RunTLSUsageCheckTest(std::move(ssl_provider)); 6230 RunTLSUsageCheckTest(std::move(ssl_provider));
6233 } 6231 }
6234 6232
6235 } // namespace net 6233 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_framer.cc ('k') | net/spdy/spdy_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698