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

Unified Diff: content/shell/browser/layout_test/layout_test_notification_manager.h

Issue 1656823002: Add layout tests for ServiceWorker's notificationclose event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored data reflection tests + nits Created 4 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/shell/browser/layout_test/layout_test_notification_manager.h
diff --git a/content/shell/browser/layout_test/layout_test_notification_manager.h b/content/shell/browser/layout_test/layout_test_notification_manager.h
index 8856a4b754bdeb012206529c8b4ebba0a40a2ed6..786bf007a493d6813a4f9a4add6c3b6a842741ee 100644
--- a/content/shell/browser/layout_test/layout_test_notification_manager.h
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.h
@@ -34,6 +34,10 @@ class LayoutTestNotificationManager : public PlatformNotificationService {
// clicked. Must be called on the UI thread.
void SimulateClick(const std::string& title, int action_index);
+ // Simulates the closing a notification titled |title|. Must be called on
+ // the UI thread.
+ void SimulateClose(const std::string& title, bool by_user);
+
// PlatformNotificationService implementation.
blink::WebNotificationPermission CheckPermissionOnUIThread(
BrowserContext* browser_context,

Powered by Google App Engine
This is Rietveld 408576698