Update NotificationsTest to work with bubble and infobar autoresponders
commitf778daf46086601e1a6cf8d59f8208d1f60185a3
authorfelt <felt@chromium.org>
Thu, 18 Jun 2015 14:36:20 +0000 (18 07:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Jun 2015 14:36:53 +0000 (18 14:36 +0000)
treea548cb80dee177346ad5a1803a450f035298ebe8
parentdf4a32017bae8075d45199f78146628e1855c551
Update NotificationsTest to work with bubble and infobar autoresponders

This CL updates the NotificationsTest with the latest-and-greatest in permission
request testing:

(1) Autoresponders
    Tests now use the new infobar and permission bubble autoresponders to
    confirm and deny permission requests.

(2) Observers
    As per crbug.com/354380, switched from infobar notifications to observers.
    Also added support for bubble observers to be parallel to infobars.

BUG=438758

Review URL: https://codereview.chromium.org/1170033003

Cr-Commit-Position: refs/heads/master@{#335035}
chrome/browser/notifications/notification_browsertest.cc
chrome/browser/ui/website_settings/permission_bubble_manager.cc
chrome/browser/ui/website_settings/permission_bubble_manager.h
chrome/test/data/notifications/notification_tester.html