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

Unified Diff: content/browser/speech/speech_input_browsertest.cc

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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: content/browser/speech/speech_input_browsertest.cc
===================================================================
--- content/browser/speech/speech_input_browsertest.cc (revision 116109)
+++ content/browser/speech/speech_input_browsertest.cc (working copy)
@@ -19,6 +19,8 @@
#include "content/public/common/speech_input_result.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
+using content::WebContents;
+
namespace speech_input {
class FakeSpeechInputManager;
}
@@ -160,13 +162,13 @@
mouse_event.x = 0;
mouse_event.y = 0;
mouse_event.clickCount = 1;
- TabContents* tab_contents = browser()->GetSelectedTabContents();
+ WebContents* web_contents = browser()->GetSelectedWebContents();
ui_test_utils::WindowedNotificationObserver observer(
content::NOTIFICATION_LOAD_STOP,
- content::Source<NavigationController>(&tab_contents->GetController()));
- tab_contents->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
+ content::Source<NavigationController>(&web_contents->GetController()));
+ web_contents->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
mouse_event.type = WebKit::WebInputEvent::MouseUp;
- tab_contents->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
+ web_contents->GetRenderViewHost()->ForwardMouseEvent(mouse_event);
observer.Wait();
}
@@ -176,7 +178,7 @@
// then sets the URL fragment as 'pass' if it received the expected string.
LoadAndStartSpeechInputTest(filename);
- EXPECT_EQ("pass", browser()->GetSelectedTabContents()->GetURL().ref());
+ EXPECT_EQ("pass", browser()->GetSelectedWebContents()->GetURL().ref());
}
// InProcessBrowserTest methods.
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_browsertest.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698