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

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

Issue 1905843003: Split out QuicAlarm creation from QuicConnectionHelper to new QuicAlarmFactory. No behavior change,… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119753783
Patch Set: Rebase Created 4 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
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.h ('k') | net/quic/test_tools/quic_connection_peer.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 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 #include "net/quic/test_tools/mock_quic_dispatcher.h" 5 #include "net/quic/test_tools/mock_quic_dispatcher.h"
6 6
7 #include "net/quic/test_tools/quic_test_utils.h" 7 #include "net/quic/test_tools/quic_test_utils.h"
8 8
9 namespace net { 9 namespace net {
10 namespace test { 10 namespace test {
11 11
12 MockQuicDispatcher::MockQuicDispatcher( 12 MockQuicDispatcher::MockQuicDispatcher(
13 const QuicConfig& config, 13 const QuicConfig& config,
14 const QuicCryptoServerConfig* crypto_config, 14 const QuicCryptoServerConfig* crypto_config,
15 std::unique_ptr<QuicConnectionHelperInterface> helper) 15 std::unique_ptr<QuicConnectionHelperInterface> helper,
16 std::unique_ptr<QuicAlarmFactory> alarm_factory)
16 : QuicDispatcher(config, 17 : QuicDispatcher(config,
17 crypto_config, 18 crypto_config,
18 QuicSupportedVersions(), 19 QuicSupportedVersions(),
19 std::move(helper)) {} 20 std::move(helper),
21 std::move(alarm_factory)) {}
20 22
21 MockQuicDispatcher::~MockQuicDispatcher() {} 23 MockQuicDispatcher::~MockQuicDispatcher() {}
22 24
23 } // namespace test 25 } // namespace test
24 } // namespace net 26 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_quic_dispatcher.h ('k') | net/quic/test_tools/quic_connection_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698