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

Side by Side Diff: net/quic/test_tools/quic_test_utils.h

Issue 243533003: Sent QUIC "PING" frames when a stream is open and the connection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.cc ('k') | no next file » | 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 // Common utilities for Quic tests 5 // Common utilities for Quic tests
6 6
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void(const std::vector<QuicWindowUpdateFrame>& frame)); 186 void(const std::vector<QuicWindowUpdateFrame>& frame));
187 MOCK_METHOD1(OnBlockedFrames, 187 MOCK_METHOD1(OnBlockedFrames,
188 void(const std::vector<QuicBlockedFrame>& frame)); 188 void(const std::vector<QuicBlockedFrame>& frame));
189 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); 189 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame));
190 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); 190 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame));
191 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); 191 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer));
192 MOCK_METHOD0(OnWriteBlocked, void()); 192 MOCK_METHOD0(OnWriteBlocked, void());
193 MOCK_METHOD0(OnCanWrite, void()); 193 MOCK_METHOD0(OnCanWrite, void());
194 MOCK_CONST_METHOD0(HasPendingWrites, bool()); 194 MOCK_CONST_METHOD0(HasPendingWrites, bool());
195 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); 195 MOCK_CONST_METHOD0(HasPendingHandshake, bool());
196 MOCK_CONST_METHOD0(HasOpenDataStreams, bool());
196 MOCK_METHOD1(OnSuccessfulVersionNegotiation, 197 MOCK_METHOD1(OnSuccessfulVersionNegotiation,
197 void(const QuicVersion& version)); 198 void(const QuicVersion& version));
198 MOCK_METHOD0(OnConfigNegotiated, void()); 199 MOCK_METHOD0(OnConfigNegotiated, void());
199 200
200 private: 201 private:
201 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor); 202 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor);
202 }; 203 };
203 204
204 class MockHelper : public QuicConnectionHelperInterface { 205 class MockHelper : public QuicConnectionHelperInterface {
205 public: 206 public:
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 456
456 protected: 457 protected:
457 // Object is ref counted. 458 // Object is ref counted.
458 virtual ~MockAckNotifierDelegate(); 459 virtual ~MockAckNotifierDelegate();
459 }; 460 };
460 461
461 } // namespace test 462 } // namespace test
462 } // namespace net 463 } // namespace net
463 464
464 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 465 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_connection_peer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698