diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-22 20:40:55 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-22 20:40:55 +0000 |
commit | f99b167994cd9876c3fd63c9acc6014850b99ce7 (patch) | |
tree | f28a6e733d54c3300c82f89be08d58616a5eb65a /chrome/service | |
parent | 66d9961ef475028534f59ecc802652a5e1a454fb (diff) | |
download | chromium_src-f99b167994cd9876c3fd63c9acc6014850b99ce7.zip chromium_src-f99b167994cd9876c3fd63c9acc6014850b99ce7.tar.gz chromium_src-f99b167994cd9876c3fd63c9acc6014850b99ce7.tar.bz2 |
Remove usage of a deprecated TestServer constructor.
Hostname must now be explicitly specified (previously default was 127.0.0.1). See the following CL for further details:
http://codereview.chromium.org/9369029/
A follow-up CL will remove the deprecated constructor:
http://codereview.chromium.org/9431002/
BUG=114369
TEST=everything still compiles and passes
Review URL: http://codereview.chromium.org/9372104
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r-- | chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc index 4886adb..11be40d 100644 --- a/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc +++ b/chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -303,7 +303,9 @@ void CloudPrintURLFetcherRetryBackoffTest::OnRequestGiveUp() { // http://code.google.com/p/chromium/issues/detail?id=60426 TEST_F(CloudPrintURLFetcherBasicTest, DISABLED_HandleRawResponse) { - net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath(kDocRoot)); + net::TestServer test_server(net::TestServer::TYPE_HTTP, + net::TestServer::kLocalhost, + FilePath(kDocRoot)); ASSERT_TRUE(test_server.Start()); SetHandleRawResponse(true); @@ -313,7 +315,9 @@ TEST_F(CloudPrintURLFetcherBasicTest, DISABLED_HandleRawResponse) { // http://code.google.com/p/chromium/issues/detail?id=60426 TEST_F(CloudPrintURLFetcherBasicTest, DISABLED_HandleRawData) { - net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath(kDocRoot)); + net::TestServer test_server(net::TestServer::TYPE_HTTP, + net::TestServer::kLocalhost, + FilePath(kDocRoot)); ASSERT_TRUE(test_server.Start()); SetHandleRawData(true); @@ -322,7 +326,9 @@ TEST_F(CloudPrintURLFetcherBasicTest, DISABLED_HandleRawData) { } TEST_F(CloudPrintURLFetcherOverloadTest, Protect) { - net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath(kDocRoot)); + net::TestServer test_server(net::TestServer::TYPE_HTTP, + net::TestServer::kLocalhost, + FilePath(kDocRoot)); ASSERT_TRUE(test_server.Start()); GURL url(test_server.GetURL("defaultresponse")); @@ -344,7 +350,9 @@ TEST_F(CloudPrintURLFetcherOverloadTest, Protect) { // http://code.google.com/p/chromium/issues/detail?id=60426 TEST_F(CloudPrintURLFetcherRetryBackoffTest, DISABLED_GiveUp) { - net::TestServer test_server(net::TestServer::TYPE_HTTP, FilePath(kDocRoot)); + net::TestServer test_server(net::TestServer::TYPE_HTTP, + net::TestServer::kLocalhost, + FilePath(kDocRoot)); ASSERT_TRUE(test_server.Start()); GURL url(test_server.GetURL("defaultresponse")); |