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

Side by Side Diff: net/spdy/spdy_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
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 "base/memory/ref_counted.h" 5 #include "base/memory/ref_counted.h"
6 #include "net/base/completion_callback.h" 6 #include "net/base/completion_callback.h"
7 #include "net/base/net_log_unittest.h" 7 #include "net/base/net_log_unittest.h"
8 #include "net/spdy/buffered_spdy_framer.h" 8 #include "net/spdy/buffered_spdy_framer.h"
9 #include "net/spdy/spdy_stream.h" 9 #include "net/spdy/spdy_stream.h"
10 #include "net/spdy/spdy_http_utils.h" 10 #include "net/spdy/spdy_http_utils.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 scoped_refptr<SpdySession> CreateSpdySession() { 107 scoped_refptr<SpdySession> CreateSpdySession() {
108 HostPortPair host_port_pair("www.google.com", 80); 108 HostPortPair host_port_pair("www.google.com", 80);
109 HostPortProxyPair pair(host_port_pair, ProxyServer::Direct()); 109 HostPortProxyPair pair(host_port_pair, ProxyServer::Direct());
110 scoped_refptr<SpdySession> session( 110 scoped_refptr<SpdySession> session(
111 session_->spdy_session_pool()->Get(pair, BoundNetLog())); 111 session_->spdy_session_pool()->Get(pair, BoundNetLog()));
112 return session; 112 return session;
113 } 113 }
114 114
115 virtual void SetUp() { 115 virtual void SetUp() {
116 SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY3); 116 SpdySession::set_default_protocol(kProtoSPDY3);
117 } 117 }
118 118
119 virtual void TearDown() { 119 virtual void TearDown() {
120 MessageLoop::current()->RunAllPending(); 120 MessageLoop::current()->RunAllPending();
121 } 121 }
122 122
123 scoped_refptr<HttpNetworkSession> session_; 123 scoped_refptr<HttpNetworkSession> session_;
124 124
125 private: 125 private:
126 SpdyTestStateHelper spdy_state_; 126 SpdyTestStateHelper spdy_state_;
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 net::NetLog::PHASE_NONE); 432 net::NetLog::PHASE_NONE);
433 433
434 CapturingNetLog::Entry entry = entries[pos]; 434 CapturingNetLog::Entry entry = entries[pos];
435 NetLogSpdyStreamErrorParameter* request_params = 435 NetLogSpdyStreamErrorParameter* request_params =
436 static_cast<NetLogSpdyStreamErrorParameter*>( 436 static_cast<NetLogSpdyStreamErrorParameter*>(
437 entry.extra_parameters.get()); 437 entry.extra_parameters.get());
438 EXPECT_EQ(stream_id, request_params->stream_id()); 438 EXPECT_EQ(stream_id, request_params->stream_id());
439 } 439 }
440 440
441 } // namespace net 441 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream_spdy2_unittest.cc ('k') | net/spdy/spdy_websocket_stream_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698