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

Issue 395883002: Support layout testing Web Notifications from Document and Worker contexts. (Closed)

Created:
6 years, 5 months ago by Peter Beverloo
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Support layout testing Web Notifications from Document and Worker contexts. Web Notifications are currently exercised by providing a custom notification presenter as the TestRunner, but this solution isn't sufficient anymore now that they will be available to Web Workers as well. Instead, implement a mocked Notification Manager which is only available in content_shell when running in layout test mode. This manager means we can exercise the complete code-paths for both the Document and Worker scenarios, yet still provide for mocked functionality available to both. Note that this code isn't being used yet, pending on Blink switching over to the new Web Notification permission path, which should be shortly after this patch lands. BUG=392187 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286513

Patch Set 1 #

Total comments: 10

Patch Set 2 : address comments #

Patch Set 3 : thread dance #

Patch Set 4 : rebase #

Patch Set 5 : fix the gn build #

Patch Set 6 : another rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -31 lines) Patch
M content/content_shell.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 2 3 4 chunks +16 lines, -0 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 chunks +50 lines, -0 lines 0 comments Download
M content/shell/browser/shell_message_filter.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/shell/browser/shell_message_filter.cc View 1 2 3 3 chunks +35 lines, -0 lines 0 comments Download
A content/shell/browser/shell_notification_manager.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A content/shell/browser/shell_notification_manager.cc View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
M content/shell/common/shell_messages.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/shell/renderer/test_runner/WebTestDelegate.h View 2 chunks +8 lines, -0 lines 0 comments Download
M content/shell/renderer/test_runner/notification_presenter.h View 2 chunks +0 lines, -7 lines 0 comments Download
M content/shell/renderer/test_runner/notification_presenter.cc View 4 chunks +5 lines, -20 lines 0 comments Download
M content/shell/renderer/test_runner/test_runner.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M content/shell/renderer/test_runner/test_runner.cc View 1 2 3 4 chunks +16 lines, -3 lines 0 comments Download
M content/shell/renderer/webkit_test_runner.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/renderer/webkit_test_runner.cc View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Peter Beverloo
This provides testing infrastructure for (and is depending on): https://codereview.chromium.org/381633005/ After that (and this patch) ...
6 years, 5 months ago (2014-07-15 16:28:27 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/395883002/diff/1/content/shell/browser/shell_content_browser_client.cc File content/shell/browser/shell_content_browser_client.cc (right): https://codereview.chromium.org/395883002/diff/1/content/shell/browser/shell_content_browser_client.cc#newcode142 content/shell/browser/shell_content_browser_client.cc:142: ShellContentBrowserClient::GetShellNotificationManager() { add a DCHECK() that we're on the ...
6 years, 5 months ago (2014-07-17 09:29:45 UTC) #2
Peter Beverloo
https://codereview.chromium.org/395883002/diff/1/content/shell/browser/shell_content_browser_client.cc File content/shell/browser/shell_content_browser_client.cc (right): https://codereview.chromium.org/395883002/diff/1/content/shell/browser/shell_content_browser_client.cc#newcode142 content/shell/browser/shell_content_browser_client.cc:142: ShellContentBrowserClient::GetShellNotificationManager() { On 2014/07/17 09:29:45, jochen wrote: > add ...
6 years, 5 months ago (2014-07-17 12:22:53 UTC) #3
jochen (gone - plz use gerrit)
lgtm
6 years, 5 months ago (2014-07-17 12:38:38 UTC) #4
Peter Beverloo
The CQ bit was checked by peter@chromium.org
6 years, 4 months ago (2014-07-30 11:23:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/395883002/100001
6 years, 4 months ago (2014-07-30 11:26:03 UTC) #6
commit-bot: I haz the power
6 years, 4 months ago (2014-07-30 14:25:36 UTC) #7
Message was sent while issue was closed.
Change committed as 286513

Powered by Google App Engine
This is Rietveld 408576698