diff options
Diffstat (limited to 'chrome/common/net/cache_uitest.cc')
-rw-r--r-- | chrome/common/net/cache_uitest.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/common/net/cache_uitest.cc b/chrome/common/net/cache_uitest.cc index 19ecc01..69b5892 100644 --- a/chrome/common/net/cache_uitest.cc +++ b/chrome/common/net/cache_uitest.cc @@ -54,10 +54,8 @@ class CacheTest : public UITest { void CacheTest::RunCacheTest(const std::wstring &url, bool expect_new_tab_cached, bool expect_delayed_reload) { - scoped_refptr<HTTPTestServer> server = - HTTPTestServer::CreateServer(L"chrome/test/data"); - ASSERT_TRUE(NULL != server.get()); - GURL test_page(server->TestServerPageW(url)); + TestServer server(L"chrome/test/data"); + GURL test_page(server.TestServerPageW(url)); NavigateToURL(test_page); std::wstring original_time = GetActiveTabTitle(); |