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

Unified Diff: chrome/test/ppapi/ppapi_test.h

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_test.h
===================================================================
--- chrome/test/ppapi/ppapi_test.h (revision 226624)
+++ chrome/test/ppapi/ppapi_test.h (working copy)
@@ -5,7 +5,6 @@
#ifndef CHROME_TEST_PPAPI_PPAPI_TEST_H_
#define CHROME_TEST_PPAPI_PPAPI_TEST_H_
-#include <list>
#include <string>
#include "base/basictypes.h"
@@ -63,18 +62,23 @@
protected:
class InfoBarObserver : public content::NotificationObserver {
public:
- InfoBarObserver();
+ explicit InfoBarObserver(PPAPITestBase* test_base);
~InfoBarObserver();
+ void ExpectInfoBarAndAccept(bool should_accept);
+
+ private:
+ // content::NotificationObserver:
virtual void Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- void ExpectInfoBarAndAccept(bool should_accept);
+ void VerifyInfoBarState();
- private:
content::NotificationRegistrar registrar_;
- std::list<bool> expected_infobars_;
+ PPAPITestBase* test_base_;
+ bool expecting_infobar_;
+ bool should_accept_;
};
// Runs the test for a tab given the tab that's already navigated to the

Powered by Google App Engine
This is Rietveld 408576698