Change GetServerConfig() to return const ref.

Change QuicTestClient::GetServerConfig() and SimpleQuicClient::GetServerConfig()
to return const ref instead of value in order to eliminate a copy.  This is only
used in one test file, where operator[] cannot be used any longer as it is not
constant.

Change QuicTestClient::GetServerConfig() to require that
QuicCryptoClientConfig::server_config_ to be set otherwise it crashes.  This is
safe since this method is only called by tests internally, and there are no
callers in Chrome.

Also remove unused QuicCryptoServerConfig::tag_value_map.

PiperOrigin-RevId: 378863306
3 files changed
tree: b7b24a03154bc9038056c384dc61815ea54d6b52
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

QUICHE

QUICHE (QUIC, Http/2, Etc) is Google‘s implementation of QUIC and related protocols. It powers Chromium as well as Google’s QUIC servers and some other projects. QUICHE is only supported on little-endian platforms.

Code can be viewed in CodeSearch in Quiche and is imported into Chromium.