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

Side by Side Diff: net/tools/quic/end_to_end_test.cc

Issue 1470713003: Landing Recent QUIC changes until and including Mon Nov 16 14:15:48 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding NET_EXPORT_PRIVATE to DelegateInterface. Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <string> 6 #include <string>
7 #include <sys/epoll.h> 7 #include <sys/epoll.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 // TODO(jokulik): Until we support redundant SREJ packets, don't 1372 // TODO(jokulik): Until we support redundant SREJ packets, don't
1373 // drop handshake packets for stateless rejects. 1373 // drop handshake packets for stateless rejects.
1374 SetPacketLossPercentage(1); 1374 SetPacketLossPercentage(1);
1375 } 1375 }
1376 ASSERT_TRUE(Initialize()); 1376 ASSERT_TRUE(Initialize());
1377 string large_body; 1377 string large_body;
1378 GenerateBody(&large_body, 10240); 1378 GenerateBody(&large_body, 10240);
1379 int max_streams = 100; 1379 int max_streams = 100;
1380 1380
1381 AddToCache("/large_response", 200, large_body); 1381 AddToCache("/large_response", 200, large_body);
1382 ;
1383 1382
1384 client_->client()->WaitForCryptoHandshakeConfirmed(); 1383 client_->client()->WaitForCryptoHandshakeConfirmed();
1385 SetPacketLossPercentage(10); 1384 SetPacketLossPercentage(10);
1386 1385
1387 for (int i = 0; i < max_streams; ++i) { 1386 for (int i = 0; i < max_streams; ++i) {
1388 EXPECT_LT(0, client_->SendRequest("/large_response")); 1387 EXPECT_LT(0, client_->SendRequest("/large_response"));
1389 } 1388 }
1390 1389
1391 // WaitForEvents waits 50ms and returns true if there are outstanding 1390 // WaitForEvents waits 50ms and returns true if there are outstanding
1392 // requests. 1391 // requests.
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 // There will be buffered data to write in the client's stream. 2133 // There will be buffered data to write in the client's stream.
2135 ReliableQuicStream* stream = client_->client()->session()->GetStream(5); 2134 ReliableQuicStream* stream = client_->client()->session()->GetStream(5);
2136 EXPECT_TRUE(stream != nullptr && stream->HasBufferedData()); 2135 EXPECT_TRUE(stream != nullptr && stream->HasBufferedData());
2137 } 2136 }
2138 } 2137 }
2139 2138
2140 } // namespace 2139 } // namespace
2141 } // namespace test 2140 } // namespace test
2142 } // namespace tools 2141 } // namespace tools
2143 } // namespace net 2142 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698