| Index: chrome/test/gpu/webgl_infobar_browsertest.cc
|
| ===================================================================
|
| --- chrome/test/gpu/webgl_infobar_browsertest.cc (revision 226624)
|
| +++ chrome/test/gpu/webgl_infobar_browsertest.cc (working copy)
|
| @@ -7,6 +7,7 @@
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| #include "chrome/browser/infobars/confirm_infobar_delegate.h"
|
| +#include "chrome/browser/infobars/infobar.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_commands.h"
|
| @@ -49,7 +50,7 @@
|
|
|
| } // namespace
|
|
|
| -class WebGLInfobarTest : public InProcessBrowserTest {
|
| +class WebGLInfoBarTest : public InProcessBrowserTest {
|
| protected:
|
| virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
|
| base::FilePath test_dir;
|
| @@ -59,7 +60,7 @@
|
| base::FilePath gpu_test_dir_;
|
| };
|
|
|
| -IN_PROC_BROWSER_TEST_F(WebGLInfobarTest, ContextLossRaisesInfobar) {
|
| +IN_PROC_BROWSER_TEST_F(WebGLInfoBarTest, ContextLossRaisesInfoBar) {
|
| #if defined(OS_WIN) && defined(USE_ASH)
|
| // Disable this test in Metro+Ash for now (http://crbug.com/262796).
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests))
|
| @@ -90,7 +91,7 @@
|
| infobar_count());
|
| }
|
|
|
| -IN_PROC_BROWSER_TEST_F(WebGLInfobarTest, ContextLossInfobarReload) {
|
| +IN_PROC_BROWSER_TEST_F(WebGLInfoBarTest, ContextLossInfoBarReload) {
|
| #if defined(OS_WIN) && defined(USE_ASH)
|
| // Disable this test in Metro+Ash for now (http://crbug.com/262796).
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests))
|
| @@ -127,7 +128,7 @@
|
| InfoBarService* infobar_service = InfoBarService::FromWebContents(
|
| browser()->tab_strip_model()->GetActiveWebContents());
|
| ASSERT_EQ(1u, infobar_service->infobar_count());
|
| - InfoBarDelegate* delegate = infobar_service->infobar_at(0);
|
| + InfoBarDelegate* delegate = infobar_service->infobar_at(0)->delegate();
|
| ASSERT_TRUE(delegate->AsThreeDAPIInfoBarDelegate());
|
| delegate->AsConfirmInfoBarDelegate()->Cancel();
|
|
|
|
|