| 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_websocket_stream.h" | 5 #include "net/spdy/spdy_websocket_stream.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 void DoSync(SpdyWebSocketStreamEvent* event) { | 179 void DoSync(SpdyWebSocketStreamEvent* event) { |
| 180 sync_callback_.SetResult(OK); | 180 sync_callback_.SetResult(OK); |
| 181 } | 181 } |
| 182 | 182 |
| 183 protected: | 183 protected: |
| 184 SpdyWebSocketStreamSpdy2Test() {} | 184 SpdyWebSocketStreamSpdy2Test() {} |
| 185 virtual ~SpdyWebSocketStreamSpdy2Test() {} | 185 virtual ~SpdyWebSocketStreamSpdy2Test() {} |
| 186 | 186 |
| 187 virtual void SetUp() { | 187 virtual void SetUp() { |
| 188 SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY2); | 188 SpdySession::set_default_protocol(kProtoSPDY2); |
| 189 | 189 |
| 190 host_port_pair_.set_host("example.com"); | 190 host_port_pair_.set_host("example.com"); |
| 191 host_port_pair_.set_port(80); | 191 host_port_pair_.set_port(80); |
| 192 host_port_proxy_pair_.first = host_port_pair_; | 192 host_port_proxy_pair_.first = host_port_pair_; |
| 193 host_port_proxy_pair_.second = ProxyServer::Direct(); | 193 host_port_proxy_pair_.second = ProxyServer::Direct(); |
| 194 | 194 |
| 195 spdy_settings_id_to_set_ = SETTINGS_MAX_CONCURRENT_STREAMS; | 195 spdy_settings_id_to_set_ = SETTINGS_MAX_CONCURRENT_STREAMS; |
| 196 spdy_settings_flags_to_set_ = SETTINGS_FLAG_PLEASE_PERSIST; | 196 spdy_settings_flags_to_set_ = SETTINGS_FLAG_PLEASE_PERSIST; |
| 197 spdy_settings_value_to_set_ = 1; | 197 spdy_settings_value_to_set_ = 1; |
| 198 | 198 |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 EXPECT_EQ(OK, events[7].result); | 618 EXPECT_EQ(OK, events[7].result); |
| 619 | 619 |
| 620 // EOF close SPDY session. | 620 // EOF close SPDY session. |
| 621 EXPECT_TRUE(!http_session_->spdy_session_pool()->HasSession( | 621 EXPECT_TRUE(!http_session_->spdy_session_pool()->HasSession( |
| 622 host_port_proxy_pair_)); | 622 host_port_proxy_pair_)); |
| 623 EXPECT_TRUE(data()->at_read_eof()); | 623 EXPECT_TRUE(data()->at_read_eof()); |
| 624 EXPECT_TRUE(data()->at_write_eof()); | 624 EXPECT_TRUE(data()->at_write_eof()); |
| 625 } | 625 } |
| 626 | 626 |
| 627 } // namespace net | 627 } // namespace net |
| OLD | NEW |