Index: net/http/http_cache_unittest.cc |
=================================================================== |
--- net/http/http_cache_unittest.cc (revision 56964) |
+++ net/http/http_cache_unittest.cc (working copy) |
@@ -680,6 +680,20 @@ |
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 @@ |
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) { |