diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-25 02:25:06 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-25 02:25:06 +0000 |
commit | d8eb842474ce559113a9b0ead0610973985bf693 (patch) | |
tree | 817d637b7bfffa8bebe3d1de0af0aea05d72a8a7 /net/http/http_cache_unittest.cc | |
parent | 928930d76cb018b8a496dbdf7166178ef8fab1bf (diff) | |
download | chromium_src-d8eb842474ce559113a9b0ead0610973985bf693.zip chromium_src-d8eb842474ce559113a9b0ead0610973985bf693.tar.gz chromium_src-d8eb842474ce559113a9b0ead0610973985bf693.tar.bz2 |
net: Append base:: in the StringPrintf calls.
(Note: This is a TODO in string_util.h)
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/3390026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache_unittest.cc')
-rw-r--r-- | net/http/http_cache_unittest.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc index 86b5e0f..2c8e16d 100644 --- a/net/http/http_cache_unittest.cc +++ b/net/http/http_cache_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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. @@ -8,10 +8,11 @@ #include "base/message_loop.h" #include "base/scoped_vector.h" #include "base/string_util.h" +#include "base/stringprintf.h" #include "net/base/cache_type.h" #include "net/base/cert_status_flags.h" -#include "net/base/net_errors.h" #include "net/base/load_flags.h" +#include "net/base/net_errors.h" #include "net/base/net_log_unittest.h" #include "net/base/ssl_cert_request_info.h" #include "net/disk_cache/disk_cache.h" @@ -893,8 +894,8 @@ void RangeTransactionServer::RangeHandler(const net::HttpRequestInfo* request, EXPECT_LT(end, 80); - std::string content_range = StringPrintf("Content-Range: bytes %d-%d/80\n", - start, end); + std::string content_range = base::StringPrintf( + "Content-Range: bytes %d-%d/80\n", start, end); response_headers->append(content_range); if (!request->extra_headers.HasHeader("If-None-Match") || modified_) { @@ -908,7 +909,8 @@ void RangeTransactionServer::RangeHandler(const net::HttpRequestInfo* request, // We also have to fix content-length. int len = end - start + 1; EXPECT_EQ(0, len % 10); - std::string content_length = StringPrintf("Content-Length: %d\n", len); + std::string content_length = base::StringPrintf("Content-Length: %d\n", + len); response_headers->replace(response_headers->find("Content-Length:"), content_length.size(), content_length); } |