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/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 Loading... |
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 |
OLD | NEW |