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

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

Issue 10826164: Add infobar for PPAPI broker usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 3 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
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | chrome/test/ppapi/ppapi_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ppapi/ppapi_test.h
diff --git a/chrome/test/ppapi/ppapi_test.h b/chrome/test/ppapi/ppapi_test.h
index 749419de4c87860d8bd3515dd41b05bc11d4e231..24a0fbf5383a8ec708a1a52dd8adadfbe8ea5988 100644
--- a/chrome/test/ppapi/ppapi_test.h
+++ b/chrome/test/ppapi/ppapi_test.h
@@ -5,6 +5,7 @@
#ifndef CHROME_TEST_PPAPI_PPAPI_TEST_H_
#define CHROME_TEST_PPAPI_PPAPI_TEST_H_
+#include <list>
#include <string>
#include "base/basictypes.h"
@@ -38,7 +39,9 @@ class PPAPITestBase : public InProcessBrowserTest {
public:
PPAPITestBase();
+ // InProcessBrowserTest:
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
+ virtual void SetUpOnMainThread() OVERRIDE;
virtual std::string BuildQuery(const std::string& base,
const std::string& test_case) = 0;
@@ -57,6 +60,22 @@ class PPAPITestBase : public InProcessBrowserTest {
std::string StripPrefixes(const std::string& test_name);
protected:
+ class InfoBarObserver : public content::NotificationObserver {
+ public:
+ InfoBarObserver();
+ ~InfoBarObserver();
+
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
+ void ExpectInfoBarAndAccept(bool should_accept);
+
+ private:
+ content::NotificationRegistrar registrar_;
+ std::list<bool> expected_infobars_;
+ };
+
// Runs the test for a tab given the tab that's already navigated to the
// given URL.
void RunTestURL(const GURL& test_url);
@@ -120,4 +139,10 @@ class PPAPINaClTestDisallowedSockets : public PPAPITestBase {
const std::string& test_case) OVERRIDE;
};
+class PPAPIBrokerInfoBarTest : public PPAPITest {
+ public:
+ // PPAPITestBase override:
+ virtual void SetUpOnMainThread() OVERRIDE;
+};
+
#endif // CHROME_TEST_PPAPI_PPAPI_TEST_H_
« no previous file with comments | « chrome/test/ppapi/ppapi_browsertest.cc ('k') | chrome/test/ppapi/ppapi_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698