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

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

Issue 10209012: Move SpdyFramer::set_enable_compression_default to BufferedSpdyFramer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to BufferedSpdyFramer Created 8 years, 8 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_test_util_spdy2.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 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
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_spdy2.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698