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/url_request | |
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/url_request')
-rw-r--r-- | net/url_request/url_request_unittest.cc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc index 5a9b0ae..c8eaad4 100644 --- a/net/url_request/url_request_unittest.cc +++ b/net/url_request/url_request_unittest.cc @@ -7,8 +7,8 @@ #include "build/build_config.h" #if defined(OS_WIN) -#include <windows.h> #include <shlobj.h> +#include <windows.h> #elif defined(USE_NSS) #include "base/nss_util.h" #endif @@ -21,15 +21,16 @@ #include "base/message_loop.h" #include "base/path_service.h" #include "base/process_util.h" -#include "base/string_piece.h" #include "base/string_number_conversions.h" +#include "base/string_piece.h" +#include "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "net/base/cookie_monster.h" #include "net/base/cookie_policy.h" #include "net/base/load_flags.h" +#include "net/base/net_errors.h" #include "net/base/net_log.h" #include "net/base/net_log_unittest.h" -#include "net/base/net_errors.h" #include "net/base/net_module.h" #include "net/base/net_util.h" #include "net/base/ssl_connection_status_flags.h" @@ -341,7 +342,7 @@ TEST_F(URLRequestTest, QuitTest) { // Append the time to avoid problems where the kill page // is being cached rather than being executed on the server - std::string page_name = StringPrintf("kill?%u", + std::string page_name = base::StringPrintf("kill?%u", static_cast<int>(base::Time::Now().ToInternalValue())); int retry_count = 5; while (retry_count > 0) { @@ -804,8 +805,9 @@ TEST_F(URLRequestTest, FileTestFullSpecifiedRange) { net::HttpRequestHeaders headers; headers.SetHeader(net::HttpRequestHeaders::kRange, - StringPrintf("bytes=%" PRIuS "-%" PRIuS, - first_byte_position, last_byte_position)); + base::StringPrintf( + "bytes=%" PRIuS "-%" PRIuS, + first_byte_position, last_byte_position)); r.SetExtraRequestHeaders(headers); r.Start(); EXPECT_TRUE(r.is_pending()); @@ -847,8 +849,8 @@ TEST_F(URLRequestTest, FileTestHalfSpecifiedRange) { net::HttpRequestHeaders headers; headers.SetHeader(net::HttpRequestHeaders::kRange, - StringPrintf("bytes=%" PRIuS "-", - first_byte_position)); + base::StringPrintf("bytes=%" PRIuS "-", + first_byte_position)); r.SetExtraRequestHeaders(headers); r.Start(); EXPECT_TRUE(r.is_pending()); |