Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: net/http/http_cache_unittest.cc

Issue 3167032: HTTP cache: Move DeleteCacheCompletionCallback to the anonymous namespace... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698