| Index: chrome/test/ppapi/ppapi_test.h
|
| diff --git a/chrome/test/ppapi/ppapi_test.h b/chrome/test/ppapi/ppapi_test.h
|
| index 4c91097ea74b37dcd79e3ba3fd93b5e68097d27d..d11a8d212d0358827b3d9dbbcc9ccde87b6c0958 100644
|
| --- a/chrome/test/ppapi/ppapi_test.h
|
| +++ b/chrome/test/ppapi/ppapi_test.h
|
| @@ -13,6 +13,9 @@
|
| #include "chrome/test/base/in_process_browser_test.h"
|
| #include "content/public/browser/notification_observer.h"
|
| #include "content/public/browser/notification_registrar.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +
|
| +class ConfirmInfoBarDelegate;
|
|
|
| namespace content {
|
| class RenderViewHost;
|
| @@ -22,7 +25,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;
|
| @@ -69,6 +74,21 @@ class PPAPITestBase : public InProcessBrowserTest {
|
| DISALLOW_COPY_AND_ASSIGN(TestFinishObserver);
|
| };
|
|
|
| + class InfoBarObserver : public content::NotificationObserver {
|
| + public:
|
| + InfoBarObserver();
|
| + ~InfoBarObserver();
|
| +
|
| + virtual void Observe(int type,
|
| + const content::NotificationSource& source,
|
| + const content::NotificationDetails& details) OVERRIDE;
|
| +
|
| + MOCK_METHOD1(ShouldAcceptInfoBar, bool(ConfirmInfoBarDelegate* delegate));
|
| +
|
| + private:
|
| + content::NotificationRegistrar registrar_;
|
| + };
|
| +
|
| // Runs the test for a tab given the tab that's already navigated to the
|
| // given URL.
|
| void RunTestURL(const GURL& test_url);
|
| @@ -132,4 +152,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_
|
|
|