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

Unified Diff: net/websockets/websocket_stream_test.cc

Issue 2123743002: Rename cookie names in WebSocket cookie tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cookie flooding test amount Created 4 years, 5 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 | « no previous file | third_party/WebKit/LayoutTests/http/tests/websocket/cookie-flood_wsh.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_stream_test.cc
diff --git a/net/websockets/websocket_stream_test.cc b/net/websockets/websocket_stream_test.cc
index 3fffaea5114ad0f29b0bd9a4e1233220e5e291cf..a7d25d7b7ad282cd61cb071e81894fe805ee4122 100644
--- a/net/websockets/websocket_stream_test.cc
+++ b/net/websockets/websocket_stream_test.cc
@@ -988,11 +988,11 @@ TEST_F(WebSocketStreamCreateTest, CancellationDuringRead) {
// "cookie-flood.html".
TEST_F(WebSocketStreamCreateTest, VeryLargeResponseHeaders) {
std::string set_cookie_headers;
- set_cookie_headers.reserve(45 * 10000);
- for (int i = 0; i < 10000; ++i) {
- set_cookie_headers +=
- base::StringPrintf("Set-Cookie: WK-websocket-test-flood-%d=1\r\n", i);
+ set_cookie_headers.reserve(24 * 20000);
+ for (int i = 0; i < 20000; ++i) {
+ set_cookie_headers += base::StringPrintf("Set-Cookie: ws-%d=1\r\n", i);
}
+ ASSERT_GT(set_cookie_headers.size(), 256U * 1024U);
CreateAndConnectStandard("ws://localhost/", "localhost", "/",
NoSubProtocols(), LocalhostOrigin(), "", "",
set_cookie_headers);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/websocket/cookie-flood_wsh.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698