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

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

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments 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_websocket_stream_spdy2_unittest.cc ('k') | net/websockets/websocket_job.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_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
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 SpdyWebSocketStreamSpdy3Test() {} 184 SpdyWebSocketStreamSpdy3Test() {}
185 virtual ~SpdyWebSocketStreamSpdy3Test() {} 185 virtual ~SpdyWebSocketStreamSpdy3Test() {}
186 186
187 virtual void SetUp() { 187 virtual void SetUp() {
188 SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY3); 188 SpdySession::set_default_protocol(kProtoSPDY3);
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_websocket_stream_spdy2_unittest.cc ('k') | net/websockets/websocket_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698