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

Side by Side Diff: Source/web/tests/AssociatedURLLoaderTest.cpp

Issue 378183003: Update XMLHttpRequest forbidden header names. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 // Check non-token header fails. 577 // Check non-token header fails.
578 CheckHeaderFails("foo()"); 578 CheckHeaderFails("foo()");
579 579
580 // Check forbidden headers fail. 580 // Check forbidden headers fail.
581 CheckHeaderFails("accept-charset"); 581 CheckHeaderFails("accept-charset");
582 CheckHeaderFails("accept-encoding"); 582 CheckHeaderFails("accept-encoding");
583 CheckHeaderFails("connection"); 583 CheckHeaderFails("connection");
584 CheckHeaderFails("content-length"); 584 CheckHeaderFails("content-length");
585 CheckHeaderFails("cookie"); 585 CheckHeaderFails("cookie");
586 CheckHeaderFails("cookie2"); 586 CheckHeaderFails("cookie2");
587 CheckHeaderFails("content-transfer-encoding");
588 CheckHeaderFails("date"); 587 CheckHeaderFails("date");
588 CheckHeaderFails("dnt");
589 CheckHeaderFails("expect"); 589 CheckHeaderFails("expect");
590 CheckHeaderFails("host"); 590 CheckHeaderFails("host");
591 CheckHeaderFails("keep-alive"); 591 CheckHeaderFails("keep-alive");
592 CheckHeaderFails("origin"); 592 CheckHeaderFails("origin");
593 CheckHeaderFails("referer"); 593 CheckHeaderFails("referer");
594 CheckHeaderFails("te"); 594 CheckHeaderFails("te");
595 CheckHeaderFails("trailer"); 595 CheckHeaderFails("trailer");
596 CheckHeaderFails("transfer-encoding"); 596 CheckHeaderFails("transfer-encoding");
597 CheckHeaderFails("upgrade"); 597 CheckHeaderFails("upgrade");
598 CheckHeaderFails("user-agent"); 598 CheckHeaderFails("user-agent");
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 m_expectedLoader->loadAsynchronously(request, this); 661 m_expectedLoader->loadAsynchronously(request, this);
662 serveRequests(); 662 serveRequests();
663 EXPECT_TRUE(m_didReceiveResponse); 663 EXPECT_TRUE(m_didReceiveResponse);
664 EXPECT_TRUE(m_didReceiveData); 664 EXPECT_TRUE(m_didReceiveData);
665 EXPECT_TRUE(m_didFinishLoading); 665 EXPECT_TRUE(m_didFinishLoading);
666 666
667 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty()); 667 EXPECT_FALSE(m_actualResponse.httpHeaderField(headerNameString).isEmpty());
668 } 668 }
669 669
670 } 670 }
OLDNEW
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698