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

Unified Diff: content/test/data/service_worker/fetch_event_blob.js

Issue 877623002: [ServiceWorker] Fills SSLInfo of the response from a SW with the SSLInfo of the SW script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: content/test/data/service_worker/fetch_event_blob.js
diff --git a/build/android/pylib/remote/device/dummy/src/org/chromium/dummy/Dummy.java b/content/test/data/service_worker/fetch_event_blob.js
similarity index 51%
copy from build/android/pylib/remote/device/dummy/src/org/chromium/dummy/Dummy.java
copy to content/test/data/service_worker/fetch_event_blob.js
index 1281b39586e399c3103b5f2ab3ca1f3fab26d182..8f15e1f1235d0290346920fa79bbebefd9461a1f 100644
--- a/build/android/pylib/remote/device/dummy/src/org/chromium/dummy/Dummy.java
+++ b/content/test/data/service_worker/fetch_event_blob.js
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.dummy;
-
-/** Does nothing. */
-class Dummy {}
-
+this.onfetch = function(event) {
+ var blob = new Blob(['<title>Title</title>']);
+ var response = new Response(blob);
+ event.respondWith(response);
+};
« no previous file with comments | « content/content_unittests.isolate ('k') | content/test/data/service_worker/fetch_event_blob.js.mock-http-headers » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698