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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php

Issue 23172003: Improve parallelization of CSP and XSSAuditor reporting tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
Index: LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php
index 74955846ff872d4f6ffdec621e9df72364d5aaa7..e73e57fa29f08342cda22edff275e4c40f79be24 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/save-report.php
@@ -5,7 +5,7 @@ function undoMagicQuotes($value) {
return $value;
}
-$reportFile = fopen("csp-report.txt.tmp", 'w');
+$reportFile = fopen("csp-report." . $_GET["test"] . ".tmp", 'w');
$httpHeaders = $_SERVER;
ksort($httpHeaders, SORT_STRING);
foreach ($httpHeaders as $name => $value) {
@@ -24,5 +24,5 @@ foreach ($_COOKIE as $name => $value)
fwrite($reportFile, "=== POST DATA ===\n");
fwrite($reportFile, file_get_contents("php://input"));
fclose($reportFile);
-rename("csp-report.txt.tmp", "csp-report.txt");
+rename("csp-report." . $_GET["test"] . ".tmp", "csp-report." . $_GET["test"] . ".txt");
?>

Powered by Google App Engine
This is Rietveld 408576698