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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/slow-response.php

Issue 2703343002: ServiceWorker: Use mojo's data pipe for respondWith(stream) (Closed)
Patch Set: Rebased Created 3 years, 8 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: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/slow-response.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/slow-response.php b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/slow-response.php
new file mode 100644
index 0000000000000000000000000000000000000000..1b772caf6e87a6322babd7040af5e64c75974e2a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/slow-response.php
@@ -0,0 +1,19 @@
+<?php
+function put_chunk($txt) {
+ echo sprintf("%x\r\n", strlen($txt));
+ echo "$txt\r\n";
+}
+
+header("Content-type: text/html; charset=UTF-8");
+header("Transfer-encoding: chunked");
+flush();
+
+for ($i = 0; $i < 10000; $i++) {
+ put_chunk("$i<br>");
+ ob_flush();
+ flush();
+ usleep(1000000);
+}
+echo "0\r\n\r\n";
+
+?>

Powered by Google App Engine
This is Rietveld 408576698