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

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

Issue 10546071: CapturingNetLog - remove maximum entries constructor argument. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 8 years, 6 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 "net/spdy/spdy_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include "net/base/host_cache.h" 7 #include "net/base/host_cache.h"
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "net/base/net_log_unittest.h" 9 #include "net/base/net_log_unittest.h"
10 #include "net/spdy/spdy_io_buffer.h" 10 #include "net/spdy/spdy_io_buffer.h"
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 SpdySessionDependencies session_deps; 970 SpdySessionDependencies session_deps;
971 session_deps.host_resolver->set_synchronous_mode(true); 971 session_deps.host_resolver->set_synchronous_mode(true);
972 972
973 MockConnect connect_data(SYNCHRONOUS, OK); 973 MockConnect connect_data(SYNCHRONOUS, OK);
974 scoped_ptr<SpdyFrame> goaway(ConstructSpdyGoAway()); 974 scoped_ptr<SpdyFrame> goaway(ConstructSpdyGoAway());
975 MockRead reads[] = { 975 MockRead reads[] = {
976 CreateMockRead(*goaway), 976 CreateMockRead(*goaway),
977 MockRead(SYNCHRONOUS, 0, 0) // EOF 977 MockRead(SYNCHRONOUS, 0, 0) // EOF
978 }; 978 };
979 979
980 net::CapturingBoundNetLog log(net::CapturingNetLog::kUnbounded); 980 CapturingBoundNetLog log;
981 981
982 StaticSocketDataProvider data(reads, arraysize(reads), NULL, 0); 982 StaticSocketDataProvider data(reads, arraysize(reads), NULL, 0);
983 data.set_connect_data(connect_data); 983 data.set_connect_data(connect_data);
984 session_deps.socket_factory->AddSocketDataProvider(&data); 984 session_deps.socket_factory->AddSocketDataProvider(&data);
985 985
986 SSLSocketDataProvider ssl(SYNCHRONOUS, OK); 986 SSLSocketDataProvider ssl(SYNCHRONOUS, OK);
987 session_deps.socket_factory->AddSSLSocketDataProvider(&ssl); 987 session_deps.socket_factory->AddSSLSocketDataProvider(&ssl);
988 988
989 scoped_refptr<HttpNetworkSession> http_session( 989 scoped_refptr<HttpNetworkSession> http_session(
990 SpdySessionDependencies::SpdyCreateSession(&session_deps)); 990 SpdySessionDependencies::SpdyCreateSession(&session_deps));
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 EXPECT_EQ(3u, spdy_stream2->stream_id()); 1131 EXPECT_EQ(3u, spdy_stream2->stream_id());
1132 1132
1133 spdy_stream1->Cancel(); 1133 spdy_stream1->Cancel();
1134 spdy_stream1 = NULL; 1134 spdy_stream1 = NULL;
1135 1135
1136 spdy_stream2->Cancel(); 1136 spdy_stream2->Cancel();
1137 spdy_stream2 = NULL; 1137 spdy_stream2 = NULL;
1138 } 1138 }
1139 1139
1140 } // namespace net 1140 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_network_transaction_spdy3_unittest.cc ('k') | net/spdy/spdy_session_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698