summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 07:17:30 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 07:17:30 +0000
commitf72a1ccce08050ede3d1e46cbbcd9cf5b3a1c236 (patch)
treee915476e6da96eb67e56e6ea63c8d05a4280cbee /chrome/browser/renderer_host
parent7e868c9633b4d6f41c8d559625b69ef9fece5b8b (diff)
downloadchromium_src-f72a1ccce08050ede3d1e46cbbcd9cf5b3a1c236.zip
chromium_src-f72a1ccce08050ede3d1e46cbbcd9cf5b3a1c236.tar.gz
chromium_src-f72a1ccce08050ede3d1e46cbbcd9cf5b3a1c236.tar.bz2
Remove deprecated things from net test suite:
- URLRequestTestContext (from now on use TestURLRequestContext) - TestServerPageW (use TestServerPage). TEST=none BUG=none Review URL: http://codereview.chromium.org/1814002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46044 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc20
-rw-r--r--chrome/browser/renderer_host/test/render_view_host_manager_browsertest.cc12
2 files changed, 16 insertions, 16 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc b/chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc
index eedf252..5deea27 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc
+++ b/chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc
@@ -88,8 +88,8 @@ TEST_F(ResourceDispatcherTest, SyncXMLHttpRequest) {
scoped_refptr<TabProxy> tab(browser_proxy->GetActiveTab());
ASSERT_TRUE(tab.get());
ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
- tab->NavigateToURL(server->TestServerPageW(
- L"files/sync_xmlhttprequest.html")));
+ tab->NavigateToURL(server->TestServerPage(
+ "files/sync_xmlhttprequest.html")));
// Let's check the XMLHttpRequest ran successfully.
bool success = false;
@@ -110,8 +110,8 @@ TEST_F(ResourceDispatcherTest, SyncXMLHttpRequest_Disallowed) {
scoped_refptr<TabProxy> tab(browser_proxy->GetActiveTab());
ASSERT_TRUE(tab.get());
ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
- tab->NavigateToURL(server->TestServerPageW(
- L"files/sync_xmlhttprequest_disallowed.html")));
+ tab->NavigateToURL(server->TestServerPage(
+ "files/sync_xmlhttprequest_disallowed.html")));
// Let's check the XMLHttpRequest ran successfully.
bool success = false;
@@ -136,8 +136,8 @@ TEST_F(ResourceDispatcherTest, SyncXMLHttpRequest_DuringUnload) {
ASSERT_TRUE(tab.get());
ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
- tab->NavigateToURL(server->TestServerPageW(
- L"files/sync_xmlhttprequest_during_unload.html")));
+ tab->NavigateToURL(server->TestServerPage(
+ "files/sync_xmlhttprequest_during_unload.html")));
// Confirm that the page has loaded (since it changes its title during load).
std::wstring tab_title;
@@ -147,7 +147,7 @@ TEST_F(ResourceDispatcherTest, SyncXMLHttpRequest_DuringUnload) {
// Navigate to a new page, to dispatch unload event and trigger xhr.
// (the bug would make this step hang the renderer).
ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
- tab->NavigateToURL(server->TestServerPageW(L"files/title2.html")));
+ tab->NavigateToURL(server->TestServerPage("files/title2.html")));
// Check that the new page got loaded, and that no download was triggered.
EXPECT_TRUE(tab->GetTabTitle(&tab_title));
@@ -172,7 +172,7 @@ TEST_F(ResourceDispatcherTest, CrossSiteOnunloadCookie) {
scoped_refptr<TabProxy> tab(browser_proxy->GetActiveTab());
ASSERT_TRUE(tab.get());
- GURL url(server->TestServerPageW(L"files/onunload_cookie.html"));
+ GURL url(server->TestServerPage("files/onunload_cookie.html"));
ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(url));
// Confirm that the page has loaded (since it changes its title during load).
@@ -267,7 +267,7 @@ TEST_F(ResourceDispatcherTest, CrossSiteNavigationErrorPage) {
scoped_refptr<TabProxy> tab(browser_proxy->GetActiveTab());
ASSERT_TRUE(tab.get());
- GURL url(server->TestServerPageW(L"files/onunload_cookie.html"));
+ GURL url(server->TestServerPage("files/onunload_cookie.html"));
ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(url));
// Confirm that the page has loaded (since it changes its title during load).
@@ -296,7 +296,7 @@ TEST_F(ResourceDispatcherTest, CrossSiteNavigationErrorPage) {
// TabContents was in the NORMAL state, it would ignore the attempt to run
// the onunload handler, and the navigation would fail.
// (Test by redirecting to javascript:window.location='someURL'.)
- GURL test_url(server->TestServerPageW(L"files/title2.html"));
+ GURL test_url(server->TestServerPage("files/title2.html"));
std::string redirect_url = "javascript:window.location='" +
test_url.possibly_invalid_spec() + "'";
ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS,
diff --git a/chrome/browser/renderer_host/test/render_view_host_manager_browsertest.cc b/chrome/browser/renderer_host/test/render_view_host_manager_browsertest.cc
index fb6e16c..8ad6d06 100644
--- a/chrome/browser/renderer_host/test/render_view_host_manager_browsertest.cc
+++ b/chrome/browser/renderer_host/test/render_view_host_manager_browsertest.cc
@@ -38,8 +38,8 @@ IN_PROC_BROWSER_TEST_F(RenderViewHostManagerTest,
HTTPSTestServer::CreateGoodServer(kDocRoot);
// Load a page with links that open in a new window.
- ui_test_utils::NavigateToURL(browser(), http_server->TestServerPageW(
- L"files/click-noreferrer-links.html"));
+ ui_test_utils::NavigateToURL(browser(), http_server->TestServerPage(
+ "files/click-noreferrer-links.html"));
// Get the original SiteInstance for later comparison.
scoped_refptr<SiteInstance> orig_site_instance(
@@ -81,8 +81,8 @@ IN_PROC_BROWSER_TEST_F(RenderViewHostManagerTest,
HTTPSTestServer::CreateGoodServer(kDocRoot);
// Load a page with links that open in a new window.
- ui_test_utils::NavigateToURL(browser(), http_server->TestServerPageW(
- L"files/click-noreferrer-links.html"));
+ ui_test_utils::NavigateToURL(browser(), http_server->TestServerPage(
+ "files/click-noreferrer-links.html"));
// Get the original SiteInstance for later comparison.
scoped_refptr<SiteInstance> orig_site_instance(
@@ -124,8 +124,8 @@ IN_PROC_BROWSER_TEST_F(RenderViewHostManagerTest,
HTTPSTestServer::CreateGoodServer(kDocRoot);
// Load a page with links that open in a new window.
- ui_test_utils::NavigateToURL(browser(), http_server->TestServerPageW(
- L"files/click-noreferrer-links.html"));
+ ui_test_utils::NavigateToURL(browser(), http_server->TestServerPage(
+ "files/click-noreferrer-links.html"));
// Get the original SiteInstance for later comparison.
scoped_refptr<SiteInstance> orig_site_instance(