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

Side by Side Diff: net/spdy/spdy_session.h

Issue 8369023: Unittest for SPDY's Failed Ping (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | net/spdy/spdy_session_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_SPDY_SPDY_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <list> 10 #include <list>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 const BoundNetLog& net_log() const { return net_log_; } 222 const BoundNetLog& net_log() const { return net_log_; }
223 223
224 int GetPeerAddress(AddressList* address) const; 224 int GetPeerAddress(AddressList* address) const;
225 int GetLocalAddress(IPEndPoint* address) const; 225 int GetLocalAddress(IPEndPoint* address) const;
226 226
227 private: 227 private:
228 friend class base::RefCounted<SpdySession>; 228 friend class base::RefCounted<SpdySession>;
229 // Allow tests to access our innards for testing purposes. 229 // Allow tests to access our innards for testing purposes.
230 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, Ping); 230 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, Ping);
231 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, FailedPing);
231 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream); 232 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, GetActivePushStream);
232 233
233 struct PendingCreateStream { 234 struct PendingCreateStream {
234 PendingCreateStream(const GURL& url, RequestPriority priority, 235 PendingCreateStream(const GURL& url, RequestPriority priority,
235 scoped_refptr<SpdyStream>* spdy_stream, 236 scoped_refptr<SpdyStream>* spdy_stream,
236 const BoundNetLog& stream_net_log, 237 const BoundNetLog& stream_net_log,
237 OldCompletionCallback* callback) 238 OldCompletionCallback* callback)
238 : url(&url), priority(priority), spdy_stream(spdy_stream), 239 : url(&url), priority(priority), spdy_stream(spdy_stream),
239 stream_net_log(&stream_net_log), callback(callback) { } 240 stream_net_log(&stream_net_log), callback(callback) { }
240 241
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 const spdy::SpdyControlFlags flags_; 608 const spdy::SpdyControlFlags flags_;
608 const spdy::SpdyStreamId id_; 609 const spdy::SpdyStreamId id_;
609 const spdy::SpdyStreamId associated_stream_; 610 const spdy::SpdyStreamId associated_stream_;
610 611
611 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); 612 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter);
612 }; 613 };
613 614
614 } // namespace net 615 } // namespace net
615 616
616 #endif // NET_SPDY_SPDY_SESSION_H_ 617 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698