diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-14 01:46:17 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-14 01:46:17 +0000 |
commit | e3a8545f64fb21aa4c52c91b70c86a4b63a47857 (patch) | |
tree | ec2a84167837235dd9a6e1147bdaca92241b233e /net | |
parent | 6b492fd04f29d5c41161119fac828c338304ac35 (diff) | |
download | chromium_src-e3a8545f64fb21aa4c52c91b70c86a4b63a47857.zip chromium_src-e3a8545f64fb21aa4c52c91b70c86a4b63a47857.tar.gz chromium_src-e3a8545f64fb21aa4c52c91b70c86a4b63a47857.tar.bz2 |
ios: Enable -Wunused-functions.
BUG=315884
TBR=net,sql owners
Review URL: https://codereview.chromium.org/64273005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/url_request/url_request_unittest.cc | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc index dd7dc77..7087f89 100644 --- a/net/url_request/url_request_unittest.cc +++ b/net/url_request/url_request_unittest.cc @@ -161,6 +161,26 @@ void TestLoadTimingReusedWithProxy( // Tests load timing information in the case of a cache hit, when no cache // validation request was sent over the wire. +base::StringPiece TestNetResourceProvider(int key) { + return "header"; +} + +void FillBuffer(char* buffer, size_t len) { + static bool called = false; + if (!called) { + called = true; + int seed = static_cast<int>(Time::Now().ToInternalValue()); + srand(seed); + } + + for (size_t i = 0; i < len; i++) { + buffer[i] = static_cast<char>(rand()); + if (!buffer[i]) + buffer[i] = 'g'; + } +} + +#if !defined(OS_IOS) void TestLoadTimingCacheHitNoNetwork( const net::LoadTimingInfo& load_timing_info) { EXPECT_FALSE(load_timing_info.socket_reused); @@ -198,10 +218,6 @@ void TestLoadTimingNoHttpResponse( EXPECT_TRUE(load_timing_info.receive_headers_end.is_null()); } -base::StringPiece TestNetResourceProvider(int key) { - return "header"; -} - // Do a case-insensitive search through |haystack| for |needle|. bool ContainsString(const std::string& haystack, const char* needle) { std::string::const_iterator it = @@ -213,21 +229,6 @@ bool ContainsString(const std::string& haystack, const char* needle) { return it != haystack.end(); } -void FillBuffer(char* buffer, size_t len) { - static bool called = false; - if (!called) { - called = true; - int seed = static_cast<int>(Time::Now().ToInternalValue()); - srand(seed); - } - - for (size_t i = 0; i < len; i++) { - buffer[i] = static_cast<char>(rand()); - if (!buffer[i]) - buffer[i] = 'g'; - } -} - UploadDataStream* CreateSimpleUploadData(const char* data) { scoped_ptr<UploadElementReader> reader( new UploadBytesElementReader(data, strlen(data))); @@ -277,6 +278,7 @@ bool FingerprintsEqual(const HashValueVector& a, const HashValueVector& b) { return true; } +#endif // !defined(OS_IOS) // A network delegate that allows the user to choose a subset of request stages // to block in. When blocking, the delegate can do one of the following: |