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

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

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_
6 #define NET_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_ 6 #define NET_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/quic/core/crypto/quic_crypto_server_config.h" 9 #include "net/quic/core/crypto/quic_crypto_server_config.h"
10 #include "net/quic/core/quic_config.h" 10 #include "net/quic/core/quic_config.h"
11 #include "net/quic/core/quic_protocol.h" 11 #include "net/quic/core/quic_packets.h"
12 #include "net/tools/quic/quic_simple_dispatcher.h" 12 #include "net/tools/quic/quic_simple_dispatcher.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 14
15 namespace net { 15 namespace net {
16 namespace test { 16 namespace test {
17 17
18 class MockQuicDispatcher : public QuicSimpleDispatcher { 18 class MockQuicDispatcher : public QuicSimpleDispatcher {
19 public: 19 public:
20 MockQuicDispatcher( 20 MockQuicDispatcher(
21 const QuicConfig& config, 21 const QuicConfig& config,
22 const QuicCryptoServerConfig* crypto_config, 22 const QuicCryptoServerConfig* crypto_config,
23 QuicVersionManager* version_manager, 23 QuicVersionManager* version_manager,
24 std::unique_ptr<QuicConnectionHelperInterface> helper, 24 std::unique_ptr<QuicConnectionHelperInterface> helper,
25 std::unique_ptr<QuicCryptoServerStream::Helper> session_helper, 25 std::unique_ptr<QuicCryptoServerStream::Helper> session_helper,
26 std::unique_ptr<QuicAlarmFactory> alarm_factory, 26 std::unique_ptr<QuicAlarmFactory> alarm_factory,
27 QuicInMemoryCache* in_memory_cache); 27 QuicHttpResponseCache* response_cache);
28 28
29 ~MockQuicDispatcher() override; 29 ~MockQuicDispatcher() override;
30 30
31 MOCK_METHOD3(ProcessPacket, 31 MOCK_METHOD3(ProcessPacket,
32 void(const QuicSocketAddress& server_address, 32 void(const QuicSocketAddress& server_address,
33 const QuicSocketAddress& client_address, 33 const QuicSocketAddress& client_address,
34 const QuicReceivedPacket& packet)); 34 const QuicReceivedPacket& packet));
35 35
36 private: 36 private:
37 DISALLOW_COPY_AND_ASSIGN(MockQuicDispatcher); 37 DISALLOW_COPY_AND_ASSIGN(MockQuicDispatcher);
38 }; 38 };
39 39
40 } // namespace test 40 } // namespace test
41 } // namespace net 41 } // namespace net
42 42
43 #endif // NET_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_ 43 #endif // NET_QUIC_TEST_TOOLS_MOCK_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_quic_client_promised_info.h ('k') | net/quic/test_tools/mock_quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698