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 DATA_FLAG_NONE // Data Flags | 984 DATA_FLAG_NONE // Data Flags |
985 }; | 985 }; |
986 return kHeader; | 986 return kHeader; |
987 } | 987 } |
988 | 988 |
989 SpdyTestStateHelper::SpdyTestStateHelper() { | 989 SpdyTestStateHelper::SpdyTestStateHelper() { |
990 // Pings can be non-deterministic, because they are sent via timer. | 990 // Pings can be non-deterministic, because they are sent via timer. |
991 SpdySession::set_enable_ping_based_connection_checking(false); | 991 SpdySession::set_enable_ping_based_connection_checking(false); |
992 // Compression is per-session which makes it impossible to create | 992 // Compression is per-session which makes it impossible to create |
993 // SPDY frames with static methods. | 993 // SPDY frames with static methods. |
994 SpdyFramer::set_enable_compression_default(false); | 994 BufferedSpdyFramer::set_enable_compression_default(false); |
995 } | 995 } |
996 | 996 |
997 SpdyTestStateHelper::~SpdyTestStateHelper() { | 997 SpdyTestStateHelper::~SpdyTestStateHelper() { |
998 SpdySession::ResetStaticSettingsToInit(); | 998 SpdySession::ResetStaticSettingsToInit(); |
999 // TODO(rch): save/restore this value | 999 // TODO(rch): save/restore this value |
1000 SpdyFramer::set_enable_compression_default(true); | 1000 BufferedSpdyFramer::set_enable_compression_default(true); |
1001 } | 1001 } |
1002 | 1002 |
1003 } // namespace test_spdy3 | 1003 } // namespace test_spdy3 |
1004 | 1004 |
1005 } // namespace net | 1005 } // namespace net |
OLD | NEW |