diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 07:17:30 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 07:17:30 +0000 |
commit | f72a1ccce08050ede3d1e46cbbcd9cf5b3a1c236 (patch) | |
tree | e915476e6da96eb67e56e6ea63c8d05a4280cbee /chrome/browser/tab_contents | |
parent | 7e868c9633b4d6f41c8d559625b69ef9fece5b8b (diff) | |
download | chromium_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/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/view_source_uitest.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/chrome/browser/tab_contents/view_source_uitest.cc b/chrome/browser/tab_contents/view_source_uitest.cc index aec2b25..9a19ac4 100644 --- a/chrome/browser/tab_contents/view_source_uitest.cc +++ b/chrome/browser/tab_contents/view_source_uitest.cc @@ -14,8 +14,7 @@ const wchar_t kDocRoot[] = L"chrome/test/data"; class ViewSourceTest : public UITest { protected: - ViewSourceTest() : UITest() { - test_html_ = L"files/viewsource/test.html"; + ViewSourceTest() : test_html_("files/viewsource/test.html") { } bool IsPageMenuCommandEnabled(int command) { @@ -30,7 +29,7 @@ class ViewSourceTest : public UITest { } protected: - std::wstring test_html_; + std::string test_html_; }; // This test renders a page in view-source and then checks to see if a cookie @@ -44,7 +43,7 @@ TEST_F(ViewSourceTest, DoesBrowserRenderInViewSource) { std::string cookie_data = "foo"; // First we navigate to our view-source test page - GURL url = server->TestServerPageW(test_html_); + GURL url = server->TestServerPage(test_html_); url = GURL("view-source:" + url.spec()); scoped_refptr<TabProxy> tab(GetActiveTab()); ASSERT_TRUE(tab.get()); @@ -67,7 +66,7 @@ TEST_F(ViewSourceTest, DoesBrowserConsumeViewSourcePrefix) { ASSERT_TRUE(NULL != server.get()); // First we navigate to google.html - GURL url = server->TestServerPageW(test_html_); + GURL url = server->TestServerPage(test_html_); NavigateToURL(url); // Then we navigate to the SAME url but with the view-source: prefix @@ -86,7 +85,7 @@ TEST_F(ViewSourceTest, ViewSourceInPageMenuEnabledOnANormalPage) { ASSERT_TRUE(NULL != server.get()); // First we navigate to google.html - GURL url = server->TestServerPageW(test_html_); + GURL url = server->TestServerPage(test_html_); NavigateToURL(url); EXPECT_TRUE(IsPageMenuCommandEnabled(IDC_VIEW_SOURCE)); @@ -100,7 +99,7 @@ TEST_F(ViewSourceTest, ViewSourceInPageMenuDisabledWhileViewingSource) { ASSERT_TRUE(NULL != server.get()); // First we navigate to google.html - GURL url = server->TestServerPageW(test_html_); + GURL url = server->TestServerPage(test_html_); GURL url_viewsource = GURL("view-source:" + url.spec()); NavigateToURL(url_viewsource); |