| 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_spdy2.h" | 5 #include "net/spdy/spdy_test_util_spdy2.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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1000 DATA_FLAG_NONE // Data Flags | 1000 DATA_FLAG_NONE // Data Flags |
| 1001 }; | 1001 }; |
| 1002 return kHeader; | 1002 return kHeader; |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 SpdyTestStateHelper::SpdyTestStateHelper() { | 1005 SpdyTestStateHelper::SpdyTestStateHelper() { |
| 1006 // Pings can be non-deterministic, because they are sent via timer. | 1006 // Pings can be non-deterministic, because they are sent via timer. |
| 1007 SpdySession::set_enable_ping_based_connection_checking(false); | 1007 SpdySession::set_enable_ping_based_connection_checking(false); |
| 1008 // Compression is per-session which makes it impossible to create | 1008 // Compression is per-session which makes it impossible to create |
| 1009 // SPDY frames with static methods. | 1009 // SPDY frames with static methods. |
| 1010 SpdyFramer::set_enable_compression_default(false); | 1010 BufferedSpdyFramer::set_enable_compression_default(false); |
| 1011 } | 1011 } |
| 1012 | 1012 |
| 1013 SpdyTestStateHelper::~SpdyTestStateHelper() { | 1013 SpdyTestStateHelper::~SpdyTestStateHelper() { |
| 1014 SpdySession::ResetStaticSettingsToInit(); | 1014 SpdySession::ResetStaticSettingsToInit(); |
| 1015 // TODO(rch): save/restore this value | 1015 // TODO(rch): save/restore this value |
| 1016 SpdyFramer::set_enable_compression_default(true); | 1016 BufferedSpdyFramer::set_enable_compression_default(true); |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 } // namespace test_spdy2 | 1019 } // namespace test_spdy2 |
| 1020 } // namespace net | 1020 } // namespace net |
| OLD | NEW |