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

Unified Diff: chrome/test/ppapi/ppapi_browsertest.cc

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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/test/ppapi/ppapi_browsertest.cc
===================================================================
--- chrome/test/ppapi/ppapi_browsertest.cc (revision 226624)
+++ chrome/test/ppapi/ppapi_browsertest.cc (working copy)
@@ -140,7 +140,7 @@
IN_PROC_BROWSER_TEST_F(PPAPIBrokerInfoBarTest, Accept) {
// Accepting the infobar should grant permission to access the PPAPI broker.
- InfoBarObserver observer;
+ InfoBarObserver observer(this);
observer.ExpectInfoBarAndAccept(true);
// PPB_Broker_Trusted::IsAllowed should return false before the infobar is
@@ -160,7 +160,7 @@
IN_PROC_BROWSER_TEST_F(PPAPIBrokerInfoBarTest, Deny) {
// Canceling the infobar should deny permission to access the PPAPI broker.
- InfoBarObserver observer;
+ InfoBarObserver observer(this);
observer.ExpectInfoBarAndAccept(false);
// PPB_Broker_Trusted::IsAllowed should return false before and after the
@@ -184,7 +184,7 @@
CONTENT_SETTINGS_TYPE_PPAPI_BROKER, CONTENT_SETTING_BLOCK);
// We shouldn't see an infobar.
- InfoBarObserver observer;
+ InfoBarObserver observer(this);
RunTest("Broker_ConnectPermissionDenied");
RunTest("Broker_IsAllowedPermissionDenied");
@@ -196,7 +196,7 @@
CONTENT_SETTINGS_TYPE_PPAPI_BROKER, CONTENT_SETTING_ALLOW);
// We shouldn't see an infobar.
- InfoBarObserver observer;
+ InfoBarObserver observer(this);
RunTest("Broker_ConnectPermissionGranted");
RunTest("Broker_IsAllowedPermissionGranted");

Powered by Google App Engine
This is Rietveld 408576698