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

Side by Side Diff: net/tools/quic/test_tools/mock_quic_dispatcher.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2013 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.
4
5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_
7
8 #include "net/base/ip_endpoint.h"
9 #include "net/quic/crypto/quic_crypto_server_config.h"
10 #include "net/quic/quic_config.h"
11 #include "net/quic/quic_protocol.h"
12 #include "net/tools/epoll_server/epoll_server.h"
13 #include "net/tools/quic/quic_dispatcher.h"
14 #include "testing/gmock/include/gmock/gmock.h"
15
16 namespace net {
17 namespace tools {
18 namespace test {
19
20 class MockQuicDispatcher : public QuicDispatcher {
21 public:
22 MockQuicDispatcher(const QuicConfig& config,
23 const QuicCryptoServerConfig& crypto_config,
24 PacketWriterFactory* packet_writer_factory,
25 EpollServer* eps);
26
27 ~MockQuicDispatcher() override;
28
29 MOCK_METHOD3(ProcessPacket, void(const IPEndPoint& server_address,
30 const IPEndPoint& client_address,
31 const QuicEncryptedPacket& packet));
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(MockQuicDispatcher);
35 };
36
37 } // namespace test
38 } // namespace tools
39 } // namespace net
40
41 #endif // NET_TOOLS_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/mock_epoll_server.cc ('k') | net/tools/quic/test_tools/mock_quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698