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

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

Issue 10233016: Add a new UMA histogram for tracking SpdySessionErrorDetails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 7 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 } 363 }
364 364
365 virtual ~StreamReleaserCallback() {} 365 virtual ~StreamReleaserCallback() {}
366 366
367 scoped_refptr<SpdyStream>* stream() { return &stream_; } 367 scoped_refptr<SpdyStream>* stream() { return &stream_; }
368 368
369 const CompletionCallback& callback() const { return callback_; } 369 const CompletionCallback& callback() const { return callback_; }
370 370
371 private: 371 private:
372 void OnComplete(int result) { 372 void OnComplete(int result) {
373 session_->CloseSessionOnError(ERR_FAILED, false, "On complete."); 373 session_->CloseSessionOnError(ERR_FAILED, SPDY_NO_ERROR, false,
374 "On complete.");
374 session_ = NULL; 375 session_ = NULL;
375 first_stream_->Cancel(); 376 first_stream_->Cancel();
376 first_stream_ = NULL; 377 first_stream_ = NULL;
377 stream_->Cancel(); 378 stream_->Cancel();
378 stream_ = NULL; 379 stream_ = NULL;
379 SetResult(result); 380 SetResult(result);
380 } 381 }
381 382
382 scoped_refptr<SpdySession> session_; 383 scoped_refptr<SpdySession> session_;
383 scoped_refptr<SpdyStream> first_stream_; 384 scoped_refptr<SpdyStream> first_stream_;
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 &spdy_stream2, 1194 &spdy_stream2,
1194 BoundNetLog(), 1195 BoundNetLog(),
1195 callback1.callback())); 1196 callback1.callback()));
1196 1197
1197 EXPECT_EQ(spdy_stream2->send_window_size(), window_size); 1198 EXPECT_EQ(spdy_stream2->send_window_size(), window_size);
1198 spdy_stream2->Cancel(); 1199 spdy_stream2->Cancel();
1199 spdy_stream2 = NULL; 1200 spdy_stream2 = NULL;
1200 } 1201 }
1201 1202
1202 } // namespace net 1203 } // namespace net
OLDNEW
« net/spdy/spdy_session.h ('K') | « net/spdy/spdy_session_spdy2_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698