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

Issue 2485053002: Fix a failing service worker startup test to work with mojo IPC (Closed)

Created:
4 years, 1 month ago by shimazu
Modified:
4 years, 1 month ago
Reviewers:
horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, kinuko+serviceworker, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, blink-worker-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a failing service worker startup test to work with mojo IPC MessageReceiverDisallowStart currently simulates a Stopped IPC via chromium IPC when StartMode is set to FAIL though mojo is enabled. This patch changes the behavior to resetting a MockEmbeddedWorkerInstanceClient. This triggers a mojo error handler and ServiceWorkerVersion will go to the stop sequence. BUG=629701 Committed: https://crrev.com/6545fae393ddfb4d2adbb685b1442cb90f6c7ff8 Cr-Commit-Position: refs/heads/master@{#430870}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove the setter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
M content/browser/service_worker/service_worker_version_unittest.cc View 1 4 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
shimazu
ptal
4 years, 1 month ago (2016-11-08 05:42:42 UTC) #3
horo
https://codereview.chromium.org/2485053002/diff/1/content/browser/service_worker/service_worker_version_unittest.cc File content/browser/service_worker/service_worker_version_unittest.cc (right): https://codereview.chromium.org/2485053002/diff/1/content/browser/service_worker/service_worker_version_unittest.cc#newcode354 content/browser/service_worker/service_worker_version_unittest.cc:354: return base::MakeUnique<MessageReceiverDisallowStart>(); You can set is_mojo_enabled in the constructor ...
4 years, 1 month ago (2016-11-08 07:30:12 UTC) #4
shimazu
Updated. ptal again. https://codereview.chromium.org/2485053002/diff/1/content/browser/service_worker/service_worker_version_unittest.cc File content/browser/service_worker/service_worker_version_unittest.cc (right): https://codereview.chromium.org/2485053002/diff/1/content/browser/service_worker/service_worker_version_unittest.cc#newcode354 content/browser/service_worker/service_worker_version_unittest.cc:354: return base::MakeUnique<MessageReceiverDisallowStart>(); On 2016/11/08 07:30:12, horo ...
4 years, 1 month ago (2016-11-09 02:23:37 UTC) #5
horo
lgtm
4 years, 1 month ago (2016-11-09 03:22:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2485053002/20001
4 years, 1 month ago (2016-11-09 03:24:07 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-09 05:21:52 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 05:26:36 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6545fae393ddfb4d2adbb685b1442cb90f6c7ff8
Cr-Commit-Position: refs/heads/master@{#430870}

Powered by Google App Engine
This is Rietveld 408576698