| Index: chrome/browser/speech/speech_recognition_bubble_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/speech/speech_recognition_bubble_browsertest.cc (revision 145001)
|
| +++ chrome/browser/speech/speech_recognition_bubble_browsertest.cc (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "chrome/browser/speech/speech_recognition_bubble.h"
|
| #include "chrome/browser/ui/browser.h"
|
| +#include "chrome/browser/ui/browser_tabstrip.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/test/base/in_process_browser_test.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -24,14 +25,14 @@
|
| IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, CreateAndDestroy) {
|
| gfx::Rect element_rect(100, 100, 100, 100);
|
| scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
|
| - browser()->GetActiveWebContents(), this, element_rect));
|
| + chrome::GetActiveWebContents(browser()), this, element_rect));
|
| EXPECT_TRUE(bubble.get());
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, ShowAndDestroy) {
|
| gfx::Rect element_rect(100, 100, 100, 100);
|
| scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
|
| - browser()->GetActiveWebContents(), this, element_rect));
|
| + chrome::GetActiveWebContents(browser()), this, element_rect));
|
| EXPECT_TRUE(bubble.get());
|
| bubble->Show();
|
| }
|
| @@ -39,7 +40,7 @@
|
| IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, ShowAndHide) {
|
| gfx::Rect element_rect(100, 100, 100, 100);
|
| scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
|
| - browser()->GetActiveWebContents(), this, element_rect));
|
| + chrome::GetActiveWebContents(browser()), this, element_rect));
|
| EXPECT_TRUE(bubble.get());
|
| bubble->Show();
|
| bubble->Hide();
|
| @@ -48,7 +49,7 @@
|
| IN_PROC_BROWSER_TEST_F(SpeechRecognitionBubbleTest, ShowAndHideTwice) {
|
| gfx::Rect element_rect(100, 100, 100, 100);
|
| scoped_ptr<SpeechRecognitionBubble> bubble(SpeechRecognitionBubble::Create(
|
| - browser()->GetActiveWebContents(), this, element_rect));
|
| + chrome::GetActiveWebContents(browser()), this, element_rect));
|
| EXPECT_TRUE(bubble.get());
|
| bubble->Show();
|
| bubble->Hide();
|
|
|