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

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

Issue 10479014: Increase Chrome SPDY/3 stream receive window to 10MB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix raman's comments Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | no next file » | 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 "net/spdy/spdy_test_util_spdy3.h" 5 #include "net/spdy/spdy_test_util_spdy3.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 NULL, // Data 984 NULL, // Data
985 0, // Length 985 0, // Length
986 DATA_FLAG_NONE // Data Flags 986 DATA_FLAG_NONE // Data Flags
987 }; 987 };
988 return kHeader; 988 return kHeader;
989 } 989 }
990 990
991 SpdyTestStateHelper::SpdyTestStateHelper() { 991 SpdyTestStateHelper::SpdyTestStateHelper() {
992 // Pings can be non-deterministic, because they are sent via timer. 992 // Pings can be non-deterministic, because they are sent via timer.
993 SpdySession::set_enable_ping_based_connection_checking(false); 993 SpdySession::set_enable_ping_based_connection_checking(false);
994 // Avoid sending a non-default initial receive window size settings
995 // frame on every test.
996 SpdySession::set_default_initial_recv_window_size(
997 kSpdyStreamInitialWindowSize);
994 // Compression is per-session which makes it impossible to create 998 // Compression is per-session which makes it impossible to create
995 // SPDY frames with static methods. 999 // SPDY frames with static methods.
996 BufferedSpdyFramer::set_enable_compression_default(false); 1000 BufferedSpdyFramer::set_enable_compression_default(false);
997 } 1001 }
998 1002
999 SpdyTestStateHelper::~SpdyTestStateHelper() { 1003 SpdyTestStateHelper::~SpdyTestStateHelper() {
1000 SpdySession::ResetStaticSettingsToInit(); 1004 SpdySession::ResetStaticSettingsToInit();
1001 // TODO(rch): save/restore this value 1005 // TODO(rch): save/restore this value
1002 BufferedSpdyFramer::set_enable_compression_default(true); 1006 BufferedSpdyFramer::set_enable_compression_default(true);
1003 } 1007 }
1004 1008
1005 } // namespace test_spdy3 1009 } // namespace test_spdy3
1006 1010
1007 } // namespace net 1011 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698