| Index: net/quic/test_tools/quic_connection_peer.cc
|
| diff --git a/net/quic/test_tools/quic_connection_peer.cc b/net/quic/test_tools/quic_connection_peer.cc
|
| index d834d5ef640ef09f2e65757dde1d149b209ce042..102b2d75c5ecf75a65473cf8091ca087e33bed1e 100644
|
| --- a/net/quic/test_tools/quic_connection_peer.cc
|
| +++ b/net/quic/test_tools/quic_connection_peer.cc
|
| @@ -9,6 +9,7 @@
|
| #include "net/quic/congestion_control/receive_algorithm_interface.h"
|
| #include "net/quic/congestion_control/send_algorithm_interface.h"
|
| #include "net/quic/quic_connection.h"
|
| +#include "net/quic/test_tools/quic_framer_peer.h"
|
|
|
| namespace net {
|
| namespace test {
|
| @@ -102,5 +103,17 @@ QuicPacketEntropyHash QuicConnectionPeer::ReceivedEntropyHash(
|
| return connection->entropy_manager_.ReceivedEntropyHash(sequence_number);
|
| }
|
|
|
| +// static
|
| +bool QuicConnectionPeer::IsServer(QuicConnection* connection) {
|
| + return connection->is_server_;
|
| +}
|
| +
|
| +// static
|
| +void QuicConnectionPeer::SetIsServer(QuicConnection* connection,
|
| + bool is_server) {
|
| + connection->is_server_ = is_server;
|
| + QuicFramerPeer::SetIsServer(&connection->framer_, is_server);
|
| +}
|
| +
|
| } // namespace test
|
| } // namespace net
|
|
|