summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-21 02:04:08 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-21 02:04:08 +0000
commit6a9c55c96041b2b1bc51f220d0f6d5765a66f792 (patch)
treef56be510452ab3f604cfff462340a71f945a6cbc /net/http
parent7689af9a4483fd4908bce9e3c59b4273fb184ec6 (diff)
downloadchromium_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.cc28
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) {