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

Side by Side Diff: net/spdy/spdy_test_util_spdy2.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_network_transaction_spdy3_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.cc » ('j') | 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_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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_spdy3_unittest.cc ('k') | net/spdy/spdy_test_util_spdy3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698