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

Issue 1440873004: Extension SW - add basic push messaging tests. (Closed)

Created:
5 years, 1 month ago by lazyboy
Modified:
5 years, 1 month ago
Reviewers:
Devlin
CC:
chromium-reviews, Peter Beverloo, chromium-apps-reviews_chromium.org, johnme+watch_chromium.org, mvanouwerkerk+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extension SW - add basic push messaging tests. This test checks that self.onpush() works correctly from an extension ServiceWorker when a gcm message is sent. Caveat: PushMessagingDispatcher::DoSubscribe() only looks at the web manifest, so we list the manifest in the extension page (page.html). However, this also means we cannot use PushMessaging from a service worker of a background page. BUG=545535 Committed: https://crrev.com/561b7deff9073356ef8e4ed7238b5c7962f022dd Cr-Commit-Position: refs/heads/master@{#360640}

Patch Set 1 #

Patch Set 2 : Clean up. #

Patch Set 3 : more cleanups #

Patch Set 4 : git cl format #

Patch Set 5 : forgot ot add web_manifest #

Total comments: 4

Patch Set 6 : update #

Patch Set 7 : sync @ tott #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, --1 lines) Patch
M chrome/browser/extensions/service_worker_apitest.cc View 1 2 3 4 5 6 3 chunks +93 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/service_worker/push_messaging/manifest.json View 1 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/service_worker/push_messaging/page.html View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/service_worker/push_messaging/page.js View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/service_worker/push_messaging/sw.js View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/service_worker/push_messaging/web_manifest.json View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
lazyboy
5 years, 1 month ago (2015-11-13 01:34:19 UTC) #4
lazyboy
Ping.
5 years, 1 month ago (2015-11-18 23:28:22 UTC) #5
Devlin
Sorry for the delay. The integration between these two is pretty rough, but I'm okay ...
5 years, 1 month ago (2015-11-18 23:42:06 UTC) #6
lazyboy
Filed crbug.com/558173 https://chromiumcodereview.appspot.com/1440873004/diff/80001/chrome/test/data/extensions/api_test/service_worker/push_messaging/page.html File chrome/test/data/extensions/api_test/service_worker/push_messaging/page.html (right): https://chromiumcodereview.appspot.com/1440873004/diff/80001/chrome/test/data/extensions/api_test/service_worker/push_messaging/page.html#newcode3 chrome/test/data/extensions/api_test/service_worker/push_messaging/page.html:3: However, this also means we cannot use ...
5 years, 1 month ago (2015-11-19 02:40:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1440873004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1440873004/100001
5 years, 1 month ago (2015-11-19 07:11:40 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/120109)
5 years, 1 month ago (2015-11-19 07:16:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1440873004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1440873004/120001
5 years, 1 month ago (2015-11-19 19:20:16 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-19 19:27:38 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 19:28:32 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/561b7deff9073356ef8e4ed7238b5c7962f022dd
Cr-Commit-Position: refs/heads/master@{#360640}

Powered by Google App Engine
This is Rietveld 408576698