diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-26 13:57:00 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-11-02 11:31:01 +0000 |
commit | 1943b3c2a1dcee36c233724fc4ee7613d71b9cf6 (patch) | |
tree | 8c1b5f12357025c197da5427ae02cfdc2f3570d6 /chromium/net/test/quic_simple_test_server.h | |
parent | 21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (diff) | |
download | qtwebengine-chromium-1943b3c2a1dcee36c233724fc4ee7613d71b9cf6.tar.gz |
BASELINE: Update Chromium to 94.0.4606.111
Change-Id: I924781584def20fc800bedf6ff41fdb96c438193
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/test/quic_simple_test_server.h')
-rw-r--r-- | chromium/net/test/quic_simple_test_server.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/chromium/net/test/quic_simple_test_server.h b/chromium/net/test/quic_simple_test_server.h index 0c32a9ba868..90b4da62669 100644 --- a/chromium/net/test/quic_simple_test_server.h +++ b/chromium/net/test/quic_simple_test_server.h @@ -8,6 +8,7 @@ #include <string> #include <vector> +#include "net/base/host_port_pair.h" #include "net/third_party/quiche/src/spdy/core/spdy_header_block.h" #include "url/gurl.h" @@ -30,39 +31,39 @@ class QuicSimpleTestServer { const std::vector<spdy::Http2HeaderBlock>& early_hints); // Returns example.com - static const std::string GetDomain(); + static std::string const GetDomain(); // Returns test.example.com - static const std::string GetHost(); + static std::string const GetHost(); // Returns port number of the server. static int GetPort(); // Returns test.example.com:port - static const std::string GetHostPort(); + static HostPortPair const GetHostPort(); // Returns URL with host, port and file path, for example // https://test.example.com:12345/{file_path} static GURL GetFileURL(const std::string& file_path); - static const std::string GetStatusHeaderName(); + static std::string const GetStatusHeaderName(); // Server returns response with HTTP/2 headers and trailers. Does not include // |port| as it is resolved differently: https://test.example.com/hello.txt static GURL GetHelloURL(); - static const std::string GetHelloPath(); - static const std::string GetHelloBodyValue(); - static const std::string GetHelloStatus(); - static const std::string GetHelloHeaderName(); - static const std::string GetHelloHeaderValue(); - static const std::string GetCombinedHeaderName(); - static const std::string GetHelloTrailerName(); - static const std::string GetHelloTrailerValue(); + static std::string const GetHelloPath(); + static std::string const GetHelloBodyValue(); + static std::string const GetHelloStatus(); + static std::string const GetHelloHeaderName(); + static std::string const GetHelloHeaderValue(); + static std::string const GetCombinedHeaderName(); + static std::string const GetHelloTrailerName(); + static std::string const GetHelloTrailerValue(); // Server returns response without HTTP/2 trailers. // https://test.example.com/simple.txt static GURL GetSimpleURL(); - static const std::string GetSimpleBodyValue(); - static const std::string GetSimpleStatus(); - static const std::string GetSimpleHeaderName(); - static const std::string GetSimpleHeaderValue(); + static std::string const GetSimpleBodyValue(); + static std::string const GetSimpleStatus(); + static std::string const GetSimpleHeaderName(); + static std::string const GetSimpleHeaderValue(); }; } // namespace net |