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
3 // found in the LICENSE file.
5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_SERVER_SESSION_VISITOR_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_SERVER_SESSION_VISITOR_H_
8 #include "net/tools/quic/quic_server_session.h"
9 #include "testing/gmock/include/gmock/gmock.h"
15 class MockQuicServerSessionVisitor
: public QuicServerSessionVisitor
{
17 MockQuicServerSessionVisitor();
18 virtual ~MockQuicServerSessionVisitor();
19 MOCK_METHOD2(OnConnectionClosed
,
20 void(QuicConnectionId connection_id
, QuicErrorCode error
));
21 MOCK_METHOD1(OnWriteBlocked
,
22 void(QuicBlockedWriterInterface
* blocked_writer
));
23 MOCK_METHOD1(OnConnectionAddedToTimeWaitList
,
24 void(QuicConnectionId connection_id
));
25 MOCK_METHOD1(OnConnectionRemovedFromTimeWaitList
,
26 void(QuicConnectionId connection_id
));
29 DISALLOW_COPY_AND_ASSIGN(MockQuicServerSessionVisitor
);
36 #endif // NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_SERVER_SESSION_VISITOR_H_