Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1395)

Unified Diff: chrome/test/ui/inspector_controller_uitest.cc

Issue 17030: Revert 7508.7509 and 7510 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/net/cache_uitest.cc ('k') | net/proxy/proxy_script_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ui/inspector_controller_uitest.cc
===================================================================
--- chrome/test/ui/inspector_controller_uitest.cc (revision 7513)
+++ chrome/test/ui/inspector_controller_uitest.cc (working copy)
@@ -37,20 +37,14 @@
if (CommandLine().HasSwitch(switches::kSingleProcess))
return;
- scoped_refptr<HTTPTestServer> server =
- HTTPTestServer::CreateServer(L"chrome/test/data");
- ASSERT_TRUE(NULL != server.get());
-
+ TestServer server(L"chrome/test/data");
::scoped_ptr<TabProxy> tab(GetActiveTabProxy());
// We don't track resources until we've opened the inspector.
- NavigateTab(tab.get(), server->TestServerPageW(
- L"files/inspector/test1.html"));
+ NavigateTab(tab.get(), server.TestServerPageW(L"files/inspector/test1.html"));
tab->InspectElement(0, 0);
- NavigateTab(tab.get(), server->TestServerPageW(
- L"files/inspector/test1.html"));
+ NavigateTab(tab.get(), server.TestServerPageW(L"files/inspector/test1.html"));
EXPECT_EQ(1, tab->InspectElement(0, 0));
- NavigateTab(tab.get(), server->TestServerPageW(
- L"files/inspector/test2.html"));
+ NavigateTab(tab.get(), server.TestServerPageW(L"files/inspector/test2.html"));
EXPECT_EQ(2, tab->InspectElement(0, 0));
}
« no previous file with comments | « chrome/common/net/cache_uitest.cc ('k') | net/proxy/proxy_script_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698