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

Unified Diff: net/tools/quic/end_to_end_test.cc

Issue 2322233004: Landing Recent QUIC changes until Sun Sep 4 03:41:00 (Closed)
Patch Set: Remove simulation files from the build. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/chlo_extractor.h ('k') | net/tools/quic/quic_default_packet_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/end_to_end_test.cc
diff --git a/net/tools/quic/end_to_end_test.cc b/net/tools/quic/end_to_end_test.cc
index 4988cc428c41f39a80530f74946aaa72f9035740..61ed2920b816f4b93ab84551662ed79159611946 100644
--- a/net/tools/quic/end_to_end_test.cc
+++ b/net/tools/quic/end_to_end_test.cc
@@ -1368,11 +1368,13 @@ TEST_P(EndToEndTest, NegotiateCongestionControl) {
DLOG(FATAL) << "Unexpected congestion control tag";
}
+ server_thread_->Pause();
EXPECT_EQ(expected_congestion_control_type,
QuicSentPacketManagerPeer::GetSendAlgorithm(
*static_cast<const QuicSentPacketManager*>(
GetSentPacketManagerFromFirstServerSession()))
->GetCongestionControlType());
+ server_thread_->Resume();
}
TEST_P(EndToEndTest, LimitMaxOpenStreams) {
@@ -2165,7 +2167,8 @@ class ServerStreamWithErrorResponseBody : public QuicSimpleServerStream {
ServerStreamWithErrorResponseBody(QuicStreamId id,
QuicSpdySession* session,
string response_body)
- : QuicSimpleServerStream(id, session), response_body_(response_body) {}
+ : QuicSimpleServerStream(id, session),
+ response_body_(std::move(response_body)) {}
~ServerStreamWithErrorResponseBody() override {}
@@ -2187,7 +2190,7 @@ class ServerStreamWithErrorResponseBody : public QuicSimpleServerStream {
class StreamWithErrorFactory : public QuicTestServer::StreamFactory {
public:
explicit StreamWithErrorFactory(string response_body)
- : response_body_(response_body) {}
+ : response_body_(std::move(response_body)) {}
~StreamWithErrorFactory() override {}
@@ -2623,7 +2626,7 @@ TEST_P(EndToEndTestServerPush, ServerPushUnderLimit) {
EXPECT_EQ(kBody, client_->SendSynchronousRequest(
"https://example.com/push_example"));
- for (string url : push_urls) {
+ for (const string& url : push_urls) {
// Sending subsequent requesets will not actually send anything on the wire,
// as the responses are already in the client's cache.
DVLOG(1) << "send request for pushed stream on url " << url;
« no previous file with comments | « net/tools/quic/chlo_extractor.h ('k') | net/tools/quic/quic_default_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698