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

Unified Diff: chrome/browser/notifications/notification_interactive_uitest_support.h

Issue 2925203003: Add a test for Notification.permission. (Closed)
Patch Set: Created 3 years, 6 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: chrome/browser/notifications/notification_interactive_uitest_support.h
diff --git a/chrome/browser/notifications/notification_interactive_uitest_support.h b/chrome/browser/notifications/notification_interactive_uitest_support.h
index a9dbfaf2d2386f3560b14100cbbb11eceeeef952..1aa23c00fae4fe0074b1b8339b2ee9ef5a76debb 100644
--- a/chrome/browser/notifications/notification_interactive_uitest_support.h
+++ b/chrome/browser/notifications/notification_interactive_uitest_support.h
@@ -43,6 +43,7 @@ class NotificationsTest : public InProcessBrowserTest {
void AllowOrigin(const GURL& origin);
void AllowAllOrigins();
void SetDefaultContentSetting(ContentSetting setting);
+ void DropOriginPreference(const GURL& origin);
std::string CreateNotification(Browser* browser,
bool wait_for_new_balloon,
@@ -57,6 +58,7 @@ class NotificationsTest : public InProcessBrowserTest {
bool RequestAndDenyPermission(Browser* browser);
bool RequestAndDismissPermission(Browser* browser);
bool RequestPermissionAndWait(Browser* browser);
+ std::string QueryPermissionStatus(Browser* browser);
bool CancelNotification(const char* notification_id, Browser* browser);
void GetPrefsByContentSetting(ContentSetting setting,
ContentSettingsForOneType* settings);
@@ -68,11 +70,11 @@ class NotificationsTest : public InProcessBrowserTest {
content::WebContents* GetActiveWebContents(Browser* browser);
protected:
+ void EnablePermissionsEmbargo();
void EnableFullscreenNotifications();
void DisableFullscreenNotifications();
private:
- void DropOriginPreference(const GURL& origin);
std::string RequestAndRespondToPermission(
Browser* browser,
PermissionRequestManager::AutoResponseType bubble_response);

Powered by Google App Engine
This is Rietveld 408576698