summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-08 08:00:02 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-08 08:00:02 +0000
commit3184770afa9cbcf49680bab5046c57a7ca035388 (patch)
tree13a9bc2a635bc23bcdab1368acaf3740dfafd406 /chrome/browser/renderer_host
parentcba313cf4f0dd47d76992947e711d41bd6448598 (diff)
downloadchromium_src-3184770afa9cbcf49680bab5046c57a7ca035388.zip
chromium_src-3184770afa9cbcf49680bab5046c57a7ca035388.tar.gz
chromium_src-3184770afa9cbcf49680bab5046c57a7ca035388.tar.bz2
Browser and unit test cases for patch submitted for Issue 23584 under
http://codereview.chromium.org/660264. BUG=23584 TEST=covered by unit tests and browser tests Original patch by Chamal De Silva <chamal.desilva@gmail.com> at http://codereview.chromium.org/669262/show Review URL: http://codereview.chromium.org/1562017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/test/test_render_view_host.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/test/test_render_view_host.cc b/chrome/browser/renderer_host/test/test_render_view_host.cc
index c0584a2..33aa1a9 100644
--- a/chrome/browser/renderer_host/test/test_render_view_host.cc
+++ b/chrome/browser/renderer_host/test/test_render_view_host.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/renderer_host/test/test_render_view_host.h"
+#include "chrome/browser/browser_url_handler.h"
#include "chrome/browser/renderer_host/test/test_backing_store.h"
#include "chrome/browser/tab_contents/test_tab_contents.h"
#include "chrome/common/dom_storage_common.h"
@@ -132,7 +133,11 @@ void TestRenderWidgetHostView::DrawAcceleratedSurfaceInstances(
void RenderViewHostTestHarness::NavigateAndCommit(const GURL& url) {
controller().LoadURL(url, GURL(), 0);
- rvh()->SendNavigate(process()->max_page_id() + 1, url);
+ GURL loaded_url(url);
+ bool reverse_on_redirect = false;
+ BrowserURLHandler::RewriteURLIfNecessary(
+ &loaded_url, profile(), &reverse_on_redirect);
+ rvh()->SendNavigate(process()->max_page_id() + 1, loaded_url);
}
void RenderViewHostTestHarness::Reload() {