diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-21 02:04:08 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-21 02:04:08 +0000 |
commit | 6a9c55c96041b2b1bc51f220d0f6d5765a66f792 (patch) | |
tree | f56be510452ab3f604cfff462340a71f945a6cbc /net/http | |
parent | 7689af9a4483fd4908bce9e3c59b4273fb184ec6 (diff) | |
download | chromium_src-6a9c55c96041b2b1bc51f220d0f6d5765a66f792.zip chromium_src-6a9c55c96041b2b1bc51f220d0f6d5765a66f792.tar.gz chromium_src-6a9c55c96041b2b1bc51f220d0f6d5765a66f792.tar.bz2 |
HTTP cache: Move DeleteCacheCompletionCallback to the anonymous namespace
to see if that makes mac release happy.
BUG=none
TEST=none
TBR=eroman
Review URL: http://codereview.chromium.org/3167032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_cache_unittest.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc index cae0319..fff6e66 100644 --- a/net/http/http_cache_unittest.cc +++ b/net/http/http_cache_unittest.cc @@ -680,6 +680,20 @@ class MockBlockingBackendFactory : public net::HttpCache::BackendFactory { bool fail_; }; +class DeleteCacheCompletionCallback : public TestCompletionCallback { + public: + explicit DeleteCacheCompletionCallback(MockHttpCache* cache) + : cache_(cache) {} + + virtual void RunWithParams(const Tuple1<int>& params) { + delete cache_; + TestCompletionCallback::RunWithParams(params); + } + + private: + MockHttpCache* cache_; +}; + //----------------------------------------------------------------------------- // helpers @@ -2012,20 +2026,6 @@ TEST(HttpCache, DeleteCacheWaitingForBackend) { callback->Run(net::ERR_ABORTED); } -class DeleteCacheCompletionCallback : public TestCompletionCallback { - public: - explicit DeleteCacheCompletionCallback(MockHttpCache* cache) - : cache_(cache) {} - - virtual void RunWithParams(const Tuple1<int>& params) { - delete cache_; - TestCompletionCallback::RunWithParams(params); - } - - private: - MockHttpCache* cache_; -}; - // Tests that we can delete the cache while creating the backend, from within // one of the callbacks. TEST(HttpCache, DeleteCacheWaitingForBackend2) { |