| Index: net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
| diff --git a/net/spdy/spdy_network_transaction_spdy2_unittest.cc b/net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
| index 995d98e7a6f54a281b6151a03eaf17e4cfbc10ea..fc9fdf37b96fb0b1b9e2a9ea90a2cfad5c588131 100644
|
| --- a/net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
| +++ b/net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
| @@ -45,7 +45,6 @@ class SpdyNetworkTransactionSpdy2Test
|
| protected:
|
|
|
| virtual void SetUp() {
|
| - SpdySession::set_default_protocol(kProtoSPDY2);
|
| google_get_request_initialized_ = false;
|
| google_post_request_initialized_ = false;
|
| google_chunked_post_request_initialized_ = false;
|
| @@ -576,7 +575,6 @@ class SpdyNetworkTransactionSpdy2Test
|
| HttpRequestInfo google_post_request_;
|
| HttpRequestInfo google_chunked_post_request_;
|
| HttpRequestInfo google_get_push_request_;
|
| - SpdyTestStateHelper spdy_state_;
|
| base::ScopedTempDir temp_dir_;
|
| };
|
|
|
| @@ -3533,9 +3531,6 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, PartialWrite) {
|
| // In this test, we enable compression, but get a uncompressed SynReply from
|
| // the server. Verify that teardown is all clean.
|
| TEST_P(SpdyNetworkTransactionSpdy2Test, DecompressFailureOnSynReply) {
|
| - // For this test, we turn on the normal compression.
|
| - BufferedSpdyFramer::set_enable_compression_default(true);
|
| -
|
| scoped_ptr<SpdyFrame> compressed(
|
| ConstructSpdyGet(NULL, 0, true, 1, LOWEST));
|
| scoped_ptr<SpdyFrame> rst(
|
| @@ -3552,8 +3547,10 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, DecompressFailureOnSynReply) {
|
|
|
| DelayedSocketData data(1, reads, arraysize(reads),
|
| writes, arraysize(writes));
|
| + SpdySessionDependencies* session_deps = new SpdySessionDependencies();
|
| + session_deps->enable_compression = true;
|
| NormalSpdyTransactionHelper helper(CreateGetRequest(),
|
| - BoundNetLog(), GetParam(), NULL);
|
| + BoundNetLog(), GetParam(), session_deps);
|
| helper.RunToCompletion(&data);
|
| TransactionHelperResult out = helper.output();
|
| EXPECT_EQ(ERR_SPDY_PROTOCOL_ERROR, out.rv);
|
| @@ -3649,7 +3646,7 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, NetLog) {
|
| // on the network, but issued a Read for only 5 of those bytes) that the data
|
| // flow still works correctly.
|
| TEST_P(SpdyNetworkTransactionSpdy2Test, BufferFull) {
|
| - BufferedSpdyFramer framer(2);
|
| + BufferedSpdyFramer framer(2, false);
|
|
|
| scoped_ptr<SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST));
|
| MockWrite writes[] = { CreateMockWrite(*req) };
|
| @@ -3742,7 +3739,7 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, BufferFull) {
|
| // at the same time, ensure that we don't notify a read completion for
|
| // each data frame individually.
|
| TEST_P(SpdyNetworkTransactionSpdy2Test, Buffering) {
|
| - BufferedSpdyFramer framer(2);
|
| + BufferedSpdyFramer framer(2, false);
|
|
|
| scoped_ptr<SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST));
|
| MockWrite writes[] = { CreateMockWrite(*req) };
|
| @@ -3836,7 +3833,7 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, Buffering) {
|
|
|
| // Verify the case where we buffer data but read it after it has been buffered.
|
| TEST_P(SpdyNetworkTransactionSpdy2Test, BufferedAll) {
|
| - BufferedSpdyFramer framer(2);
|
| + BufferedSpdyFramer framer(2, false);
|
|
|
| scoped_ptr<SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST));
|
| MockWrite writes[] = { CreateMockWrite(*req) };
|
| @@ -3927,7 +3924,7 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, BufferedAll) {
|
|
|
| // Verify the case where we buffer data and close the connection.
|
| TEST_P(SpdyNetworkTransactionSpdy2Test, BufferedClosed) {
|
| - BufferedSpdyFramer framer(2);
|
| + BufferedSpdyFramer framer(2, false);
|
|
|
| scoped_ptr<SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST));
|
| MockWrite writes[] = { CreateMockWrite(*req) };
|
| @@ -4017,7 +4014,7 @@ TEST_P(SpdyNetworkTransactionSpdy2Test, BufferedClosed) {
|
|
|
| // Verify the case where we buffer data and cancel the transaction.
|
| TEST_P(SpdyNetworkTransactionSpdy2Test, BufferedCancelled) {
|
| - BufferedSpdyFramer framer(2);
|
| + BufferedSpdyFramer framer(2, false);
|
|
|
| scoped_ptr<SpdyFrame> req(ConstructSpdyGet(NULL, 0, false, 1, LOWEST));
|
| MockWrite writes[] = { CreateMockWrite(*req) };
|
|
|