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

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

Issue 138503006: Create an interface for explicit notification of Dispatcher about (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/quic_session.cc ('k') | net/tools/quic/quic_dispatcher.h » ('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 // 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 class MockConnectionVisitor : public QuicConnectionVisitorInterface { 220 class MockConnectionVisitor : public QuicConnectionVisitorInterface {
221 public: 221 public:
222 MockConnectionVisitor(); 222 MockConnectionVisitor();
223 virtual ~MockConnectionVisitor(); 223 virtual ~MockConnectionVisitor();
224 224
225 MOCK_METHOD1(OnStreamFrames, bool(const std::vector<QuicStreamFrame>& frame)); 225 MOCK_METHOD1(OnStreamFrames, bool(const std::vector<QuicStreamFrame>& frame));
226 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame)); 226 MOCK_METHOD1(OnRstStream, void(const QuicRstStreamFrame& frame));
227 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame)); 227 MOCK_METHOD1(OnGoAway, void(const QuicGoAwayFrame& frame));
228 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer)); 228 MOCK_METHOD2(OnConnectionClosed, void(QuicErrorCode error, bool from_peer));
229 MOCK_METHOD0(OnWriteBlocked, void());
229 MOCK_METHOD0(OnCanWrite, bool()); 230 MOCK_METHOD0(OnCanWrite, bool());
230 MOCK_CONST_METHOD0(HasPendingHandshake, bool()); 231 MOCK_CONST_METHOD0(HasPendingHandshake, bool());
231 MOCK_METHOD1(OnSuccessfulVersionNegotiation, 232 MOCK_METHOD1(OnSuccessfulVersionNegotiation,
232 void(const QuicVersion& version)); 233 void(const QuicVersion& version));
233 MOCK_METHOD0(OnConfigNegotiated, void()); 234 MOCK_METHOD0(OnConfigNegotiated, void());
234 235
235 private: 236 private:
236 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor); 237 DISALLOW_COPY_AND_ASSIGN(MockConnectionVisitor);
237 }; 238 };
238 239
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 467
467 protected: 468 protected:
468 // Object is ref counted. 469 // Object is ref counted.
469 virtual ~MockAckNotifierDelegate(); 470 virtual ~MockAckNotifierDelegate();
470 }; 471 };
471 472
472 } // namespace test 473 } // namespace test
473 } // namespace net 474 } // namespace net
474 475
475 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_ 476 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698