Index: chrome/common/chrome_plugin_unittest.cc |
=================================================================== |
--- chrome/common/chrome_plugin_unittest.cc (revision 7499) |
+++ chrome/common/chrome_plugin_unittest.cc (working copy) |
@@ -258,9 +258,12 @@ |
// Tests that the plugin can issue a POST request. |
TEST_F(ChromePluginTest, CanMakePOSTRequest) { |
- TestServer server(kDocRoot); |
- GURL url = server.TestServerPage("echo"); |
+ scoped_refptr<HTTPTestServer> server = |
+ HTTPTestServer::CreateServer(kDocRoot); |
+ ASSERT_TRUE(NULL != server.get()); |
+ GURL url = server->TestServerPage("echo"); |
+ |
EXPECT_EQ(CPERR_SUCCESS, test_funcs_.test_make_request("POST", url)); |
// Note: we must add this task after we make the request, so that |