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

Unified Diff: LayoutTests/http/tests/navigation/resources/save-beacon.php

Issue 286063003: Save ping+beacon test status in temporary directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « LayoutTests/http/tests/navigation/resources/save-Ping.php ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/navigation/resources/save-beacon.php
diff --git a/LayoutTests/http/tests/navigation/resources/save-beacon.php b/LayoutTests/http/tests/navigation/resources/save-beacon.php
index 4de21933b06342f08ef3112b5617b9f776de0be1..a43ff62c29929a8604040105ebf7b80ebe87d535 100644
--- a/LayoutTests/http/tests/navigation/resources/save-beacon.php
+++ b/LayoutTests/http/tests/navigation/resources/save-beacon.php
@@ -1,9 +1,11 @@
<?php
+require_once '../../resources/portabilityLayer.php';
+
function prettify($name) {
return str_replace(' ', '-', ucwords(str_replace('_', ' ', str_replace('http_', '', strtolower($name)))));
}
-$beaconFilename = "beacon" . (isset($_REQUEST['name']) ? $_REQUEST['name'] : "") . ".txt";
+$beaconFilename = sys_get_temp_dir() . "/beacon" . (isset($_REQUEST['name']) ? $_REQUEST['name'] : "") . ".txt";
$beaconFile = fopen($beaconFilename . ".tmp", 'w');
$httpHeaders = $_SERVER;
ksort($httpHeaders, SORT_STRING);
« no previous file with comments | « LayoutTests/http/tests/navigation/resources/save-Ping.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698