OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_stream.h" | 5 #include "net/spdy/spdy_stream.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <cstddef> | 9 #include <cstddef> |
10 #include <limits> | 10 #include <limits> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 ~SpdyStreamTest() { | 78 ~SpdyStreamTest() { |
79 } | 79 } |
80 | 80 |
81 base::WeakPtr<SpdySession> CreateDefaultSpdySession() { | 81 base::WeakPtr<SpdySession> CreateDefaultSpdySession() { |
82 SpdySessionKey key(HostPortPair("www.example.org", 80), | 82 SpdySessionKey key(HostPortPair("www.example.org", 80), |
83 ProxyServer::Direct(), PRIVACY_MODE_DISABLED); | 83 ProxyServer::Direct(), PRIVACY_MODE_DISABLED); |
84 return CreateInsecureSpdySession(session_.get(), key, BoundNetLog()); | 84 return CreateInsecureSpdySession(session_.get(), key, BoundNetLog()); |
85 } | 85 } |
86 | 86 |
87 void TearDown() override { base::MessageLoop::current()->RunUntilIdle(); } | 87 void TearDown() override { base::RunLoop().RunUntilIdle(); } |
88 | 88 |
89 NextProto GetProtocol() const { | 89 NextProto GetProtocol() const { |
90 return GetParam() == kTestCaseSPDY31 ? kProtoSPDY31 : kProtoHTTP2; | 90 return GetParam() == kTestCaseSPDY31 ? kProtoSPDY31 : kProtoHTTP2; |
91 } | 91 } |
92 | 92 |
93 bool GetDependenciesFromPriority() const { | 93 bool GetDependenciesFromPriority() const { |
94 return GetParam() == kTestCaseHTTP2PriorityDependencies; | 94 return GetParam() == kTestCaseHTTP2PriorityDependencies; |
95 } | 95 } |
96 | 96 |
97 void RunResumeAfterUnstallRequestResponseTest( | 97 void RunResumeAfterUnstallRequestResponseTest( |
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 EXPECT_EQ(response_len, stream->raw_received_bytes()); | 1148 EXPECT_EQ(response_len, stream->raw_received_bytes()); |
1149 | 1149 |
1150 // FIN | 1150 // FIN |
1151 data.Resume(); | 1151 data.Resume(); |
1152 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); | 1152 EXPECT_EQ(ERR_CONNECTION_CLOSED, delegate.WaitForClose()); |
1153 } | 1153 } |
1154 | 1154 |
1155 } // namespace test | 1155 } // namespace test |
1156 | 1156 |
1157 } // namespace net | 1157 } // namespace net |
OLD | NEW |