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

Side by Side Diff: LayoutTests/http/tests/navigation/resources/save-Ping.php

Issue 334113003: Deflake http/tests/navigation/ping-*. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/http/tests/navigation/resources/delete-ping.php ('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 <?php 1 <?php
2 require_once '../../resources/portabilityLayer.php'; 2 require_once '../../resources/portabilityLayer.php';
3 3
4 $pingFile = fopen(sys_get_temp_dir() . "/ping.txt.tmp", 'w'); 4 $pingFile = fopen(sys_get_temp_dir() . "/ping.txt.tmp", 'w');
5 $httpHeaders = $_SERVER; 5 $httpHeaders = $_SERVER;
6 ksort($httpHeaders, SORT_STRING); 6 ksort($httpHeaders, SORT_STRING);
7 foreach ($httpHeaders as $name => $value) { 7 foreach ($httpHeaders as $name => $value) {
8 if ($name === "CONTENT_TYPE" || $name === "HTTP_REFERER" || $name === "HTTP_ PING_TO" || $name === "HTTP_PING_FROM" || $name === "REQUEST_METHOD" || $name == = "HTTP_COOKIE") 8 if ($name === "CONTENT_TYPE" || $name === "HTTP_REFERER" || $name === "HTTP_ PING_TO" || $name === "HTTP_PING_FROM" || $name === "REQUEST_METHOD" || $name == = "HTTP_COOKIE")
9 fwrite($pingFile, "$name: $value\n"); 9 fwrite($pingFile, "$name: $value\n");
10 } 10 }
11 fclose($pingFile); 11 fclose($pingFile);
12 rename(sys_get_temp_dir() . "/ping.txt.tmp", sys_get_temp_dir() . "/ping.txt"); 12 $finalPingFilename = sys_get_temp_dir() . "/ping." . $_GET["test"];
13 rename(sys_get_temp_dir() . "/ping.txt.tmp", $finalPingFilename);
13 foreach ($_COOKIE as $name => $value) 14 foreach ($_COOKIE as $name => $value)
14 setcookie($name, "deleted", time() - 60, "/"); 15 setcookie($name, "deleted", time() - 60, "/");
15 ?> 16 ?>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/navigation/resources/delete-ping.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698