summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-11 23:59:28 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-11 23:59:28 +0000
commit76518718328a0ec02cbd2c989ed08cb63a8a8269 (patch)
treee31157b8f3321fe1feebce50918bdcb5c975ee8a /chrome/test
parentf5e959226bf485f536dac917a108ba17affaae57 (diff)
downloadchromium_src-76518718328a0ec02cbd2c989ed08cb63a8a8269.zip
chromium_src-76518718328a0ec02cbd2c989ed08cb63a8a8269.tar.gz
chromium_src-76518718328a0ec02cbd2c989ed08cb63a8a8269.tar.bz2
Get rid of RenderViewHostManager usage in chrome.
BUG=98716 Review URL: http://codereview.chromium.org/9139007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/base/browser_with_test_window_test.cc6
-rw-r--r--chrome/test/perf/rendering/latency_tests.cc3
2 files changed, 3 insertions, 6 deletions
diff --git a/chrome/test/base/browser_with_test_window_test.cc b/chrome/test/base/browser_with_test_window_test.cc
index 79ef96d..2106b4d 100644
--- a/chrome/test/base/browser_with_test_window_test.cc
+++ b/chrome/test/base/browser_with_test_window_test.cc
@@ -13,7 +13,6 @@
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/render_messages.h"
#include "chrome/test/base/testing_profile.h"
-#include "content/browser/tab_contents/render_view_host_manager.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
@@ -80,9 +79,8 @@ void BrowserWithTestWindowTest::CommitPendingLoad(
TestRenderViewHost* old_rvh =
TestRenderViewHostForTab(controller->GetWebContents());
- TestRenderViewHost* pending_rvh = static_cast<TestRenderViewHost*>(
- controller->GetWebContents()->GetRenderManagerForTesting()->
- pending_render_view_host());
+ TestRenderViewHost* pending_rvh = TestRenderViewHost::GetPendingForController(
+ controller);
if (pending_rvh) {
// Simulate the ShouldClose_ACK that is received from the current renderer
// for a cross-site navigation.
diff --git a/chrome/test/perf/rendering/latency_tests.cc b/chrome/test/perf/rendering/latency_tests.cc
index fbd261c..63dba6c 100644
--- a/chrome/test/perf/rendering/latency_tests.cc
+++ b/chrome/test/perf/rendering/latency_tests.cc
@@ -22,7 +22,6 @@
#include "chrome/test/perf/browser_perf_test.h"
#include "chrome/test/perf/perf_test.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/tab_contents/render_view_host_manager.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_switches.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
@@ -541,7 +540,7 @@ void LatencyTest::GetMeanFrameTimeMicros(int* frame_time) const {
void LatencyTest::SendInput() {
RenderViewHost* rvh = browser()->GetSelectedTabContentsWrapper()->
- web_contents()->GetRenderManagerForTesting()->current_host();
+ web_contents()->GetRenderViewHost();
WebKit::WebMouseEvent mouse_event;
mouse_event.movementX = 1;
mouse_x_ += mouse_event.movementX;