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

Issue 659043003: Implement the ability to layout test Web Worker-based Notifications. (Closed)

Created:
6 years, 2 months ago by Peter Beverloo
Modified:
6 years, 2 months ago
Reviewers:
Mike West
CC:
chromium-reviews, mkwst+moarreviews-ipc_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-shell_chromium.org, jam, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Implement the ability to layout test Web Worker-based Notifications. Layout tests currently utilize a mocked NotificationPresenter implemented in the test runner, but this won't be sufficient for Web Worker-based notifications given that these won't be tied to a WebFrame. Instead, pull up the layout test functionality to the browser process in content_shell (only available when running layout tests!), similar to the ability to request Notification permissions, so that we can allow displaying and interacting with "displayed" notifications in layout tests as well. The existing code path for Document-based Notifications is kept intact, but will be removed once both Blink and Chromium switch over. BUG=392187 Committed: https://crrev.com/a18fd1f1c85223d078d1b52456898da58708b2ed Cr-Commit-Position: refs/heads/master@{#301084}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -18 lines) Patch
M content/shell/browser/layout_test/layout_test_content_browser_client.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 1 3 chunks +13 lines, -6 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_message_filter.cc View 3 chunks +12 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 1 chunk +29 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 2 chunks +64 lines, -1 line 0 comments Download
M content/shell/common/shell_messages.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/renderer/layout_test/webkit_test_runner.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/renderer/layout_test/webkit_test_runner.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/renderer/test_runner/test_runner.h View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/renderer/test_runner/test_runner.cc View 3 chunks +10 lines, -7 lines 0 comments Download
M content/shell/renderer/test_runner/web_test_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Peter Beverloo
PTAL. This won't do anything until we switch over the Blink implementation, since we won't ...
6 years, 2 months ago (2014-10-23 15:21:28 UTC) #1
Peter Beverloo
(Let's actually add Mike as a reviewer :-).)
6 years, 2 months ago (2014-10-23 16:35:54 UTC) #3
Mike West
LGTM % comments. https://codereview.chromium.org/659043003/diff/1/content/shell/browser/layout_test/layout_test_content_browser_client.cc File content/shell/browser/layout_test/layout_test_content_browser_client.cc (right): https://codereview.chromium.org/659043003/diff/1/content/shell/browser/layout_test/layout_test_content_browser_client.cc#newcode39 content/shell/browser/layout_test/layout_test_content_browser_client.cc:39: layout_test_notification_manager_.reset( This drops the thread assertion ...
6 years, 2 months ago (2014-10-23 19:05:35 UTC) #4
Peter Beverloo
Thanks Mike! https://codereview.chromium.org/659043003/diff/1/content/shell/browser/layout_test/layout_test_content_browser_client.cc File content/shell/browser/layout_test/layout_test_content_browser_client.cc (right): https://codereview.chromium.org/659043003/diff/1/content/shell/browser/layout_test/layout_test_content_browser_client.cc#newcode39 content/shell/browser/layout_test/layout_test_content_browser_client.cc:39: layout_test_notification_manager_.reset( On 2014/10/23 19:05:35, Mike West wrote: ...
6 years, 2 months ago (2014-10-24 11:32:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/659043003/20001
6 years, 2 months ago (2014-10-24 11:33:35 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-24 12:16:03 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 12:17:11 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a18fd1f1c85223d078d1b52456898da58708b2ed
Cr-Commit-Position: refs/heads/master@{#301084}

Powered by Google App Engine
This is Rietveld 408576698