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

Side by Side Diff: net/tools/quic/test_tools/quic_dispatcher_peer.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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/tools/quic/test_tools/quic_dispatcher_peer.h" 5 #include "net/tools/quic/test_tools/quic_dispatcher_peer.h"
6 6
7 #include "net/tools/quic/quic_dispatcher.h" 7 #include "net/tools/quic/quic_dispatcher.h"
8 #include "net/tools/quic/quic_packet_writer_wrapper.h" 8 #include "net/tools/quic/quic_packet_writer_wrapper.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 24 matching lines...) Expand all
35 return dispatcher->compressed_certs_cache(); 35 return dispatcher->compressed_certs_cache();
36 } 36 }
37 37
38 // static 38 // static
39 QuicConnectionHelperInterface* QuicDispatcherPeer::GetHelper( 39 QuicConnectionHelperInterface* QuicDispatcherPeer::GetHelper(
40 QuicDispatcher* dispatcher) { 40 QuicDispatcher* dispatcher) {
41 return dispatcher->helper_.get(); 41 return dispatcher->helper_.get();
42 } 42 }
43 43
44 // static 44 // static
45 QuicAlarmFactory* QuicDispatcherPeer::GetAlarmFactory(
46 QuicDispatcher* dispatcher) {
47 return dispatcher->alarm_factory_.get();
48 }
49
50 // static
45 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList( 51 QuicDispatcher::WriteBlockedList* QuicDispatcherPeer::GetWriteBlockedList(
46 QuicDispatcher* dispatcher) { 52 QuicDispatcher* dispatcher) {
47 return &dispatcher->write_blocked_list_; 53 return &dispatcher->write_blocked_list_;
48 } 54 }
49 55
50 // static 56 // static
51 QuicErrorCode QuicDispatcherPeer::GetAndClearLastError( 57 QuicErrorCode QuicDispatcherPeer::GetAndClearLastError(
52 QuicDispatcher* dispatcher) { 58 QuicDispatcher* dispatcher) {
53 QuicErrorCode ret = dispatcher->last_error_; 59 QuicErrorCode ret = dispatcher->last_error_;
54 dispatcher->last_error_ = QUIC_NO_ERROR; 60 dispatcher->last_error_ = QUIC_NO_ERROR;
55 return ret; 61 return ret;
56 } 62 }
57 63
58 // static 64 // static
59 const QuicDispatcher::SessionMap& QuicDispatcherPeer::session_map( 65 const QuicDispatcher::SessionMap& QuicDispatcherPeer::session_map(
60 QuicDispatcher* dispatcher) { 66 QuicDispatcher* dispatcher) {
61 return dispatcher->session_map(); 67 return dispatcher->session_map();
62 } 68 }
63 69
64 } // namespace test 70 } // namespace test
65 } // namespace net 71 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_dispatcher_peer.h ('k') | net/tools/quic/test_tools/quic_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698