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

Side by Side Diff: net/spdy/spdy_stream_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
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | net/spdy/spdy_stream_spdy3_unittest.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 "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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 ConstructSpdyBodyFrame("\0hello!\xff", 8)); 344 ConstructSpdyBodyFrame("\0hello!\xff", 8));
345 MockRead reads[] = { 345 MockRead reads[] = {
346 CreateMockRead(*resp), 346 CreateMockRead(*resp),
347 CreateMockRead(*echo), 347 CreateMockRead(*echo),
348 MockRead(ASYNC, 0, 0), // EOF 348 MockRead(ASYNC, 0, 0), // EOF
349 }; 349 };
350 reads[0].sequence_number = 1; 350 reads[0].sequence_number = 1;
351 reads[1].sequence_number = 3; 351 reads[1].sequence_number = 3;
352 reads[2].sequence_number = 4; 352 reads[2].sequence_number = 4;
353 353
354 net::CapturingBoundNetLog log(net::CapturingNetLog::kUnbounded); 354 CapturingBoundNetLog log;
355 355
356 scoped_ptr<OrderedSocketData> data( 356 scoped_ptr<OrderedSocketData> data(
357 new OrderedSocketData(reads, arraysize(reads), 357 new OrderedSocketData(reads, arraysize(reads),
358 writes, arraysize(writes))); 358 writes, arraysize(writes)));
359 MockConnect connect_data(SYNCHRONOUS, OK); 359 MockConnect connect_data(SYNCHRONOUS, OK);
360 data->set_connect_data(connect_data); 360 data->set_connect_data(connect_data);
361 361
362 session_deps.socket_factory->AddSocketDataProvider(data.get()); 362 session_deps.socket_factory->AddSocketDataProvider(data.get());
363 363
364 scoped_refptr<SpdySession> session(CreateSpdySession()); 364 scoped_refptr<SpdySession> session(CreateSpdySession());
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 entries, 0, 425 entries, 0,
426 net::NetLog::TYPE_SPDY_STREAM_ERROR, 426 net::NetLog::TYPE_SPDY_STREAM_ERROR,
427 net::NetLog::PHASE_NONE); 427 net::NetLog::PHASE_NONE);
428 428
429 int stream_id2; 429 int stream_id2;
430 ASSERT_TRUE(entries[pos].GetIntegerValue("stream_id", &stream_id2)); 430 ASSERT_TRUE(entries[pos].GetIntegerValue("stream_id", &stream_id2));
431 EXPECT_EQ(static_cast<int>(stream_id), stream_id2); 431 EXPECT_EQ(static_cast<int>(stream_id), stream_id2);
432 } 432 }
433 433
434 } // namespace net 434 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_spdy3_unittest.cc ('k') | net/spdy/spdy_stream_spdy3_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698