From cbf7f5178da67099ecc2ead3a88101188a3292f0 Mon Sep 17 00:00:00 2001 From: Ryan Keane Date: Tue, 10 Mar 2020 13:27:52 -0700 Subject: Platform: Add Operator < to IPAddress Requested follow up to CL: https://chromium-review.googlesource.com/c/openscreen/+/2076692 Change-Id: I3247f82298c56a7ba836faa80bb369d20e0357be Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2094872 Reviewed-by: Yuri Wiitala Commit-Queue: Ryan Keane --- osp/impl/quic/quic_client.h | 5 ++--- osp/impl/quic/quic_connection_factory_impl.h | 2 +- osp/impl/quic/quic_server.h | 5 ++--- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'osp') diff --git a/osp/impl/quic/quic_client.h b/osp/impl/quic/quic_client.h index 7e37267d..548cbff5 100644 --- a/osp/impl/quic/quic_client.h +++ b/osp/impl/quic/quic_client.h @@ -103,7 +103,7 @@ class QuicClient final : public ProtocolConnectionClient, // Maps an IPEndpoint to a generated endpoint ID. This is used to insulate // callers from post-handshake changes to a connections actual peer endpoint. - std::map endpoint_map_; + std::map endpoint_map_; // Value that will be used for the next new endpoint in a Connect call. uint64_t next_endpoint_id_ = 0; @@ -119,8 +119,7 @@ class QuicClient final : public ProtocolConnectionClient, // Maps endpoint addresses to data about connections that haven't successfully // completed the QUIC handshake. - std::map - pending_connections_; + std::map pending_connections_; // Maps endpoint IDs to data about connections that have successfully // completed the QUIC handshake. diff --git a/osp/impl/quic/quic_connection_factory_impl.h b/osp/impl/quic/quic_connection_factory_impl.h index 0bfa242f..e3588f6a 100644 --- a/osp/impl/quic/quic_connection_factory_impl.h +++ b/osp/impl/quic/quic_connection_factory_impl.h @@ -53,7 +53,7 @@ class QuicConnectionFactoryImpl final : public QuicConnectionFactory { QuicConnection* connection; UdpSocket* socket; // References one of the owned |sockets_|. }; - std::map connections_; + std::map connections_; // NOTE: Must be provided in constructor and stored as an instance variable // rather than using the static accessor method to allow for UTs to mock this diff --git a/osp/impl/quic/quic_server.h b/osp/impl/quic/quic_server.h index 31a3bbe8..ad195635 100644 --- a/osp/impl/quic/quic_server.h +++ b/osp/impl/quic/quic_server.h @@ -84,15 +84,14 @@ class QuicServer final : public ProtocolConnectionServer, // Maps an IPEndpoint to a generated endpoint ID. This is used to insulate // callers from post-handshake changes to a connections actual peer endpoint. - std::map endpoint_map_; + std::map endpoint_map_; // Value that will be used for the next new endpoint in a Connect call. uint64_t next_endpoint_id_ = 0; // Maps endpoint addresses to data about connections that haven't successfully // completed the QUIC handshake. - std::map - pending_connections_; + std::map pending_connections_; // Maps endpoint IDs to data about connections that have successfully // completed the QUIC handshake. -- cgit v1.2.3