Commit 6a9c55c9 authored by rvargas@google.com's avatar rvargas@google.com

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
parent 7689af9a
...@@ -680,6 +680,20 @@ class MockBlockingBackendFactory : public net::HttpCache::BackendFactory { ...@@ -680,6 +680,20 @@ class MockBlockingBackendFactory : public net::HttpCache::BackendFactory {
bool fail_; 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 // helpers
...@@ -2012,20 +2026,6 @@ TEST(HttpCache, DeleteCacheWaitingForBackend) { ...@@ -2012,20 +2026,6 @@ TEST(HttpCache, DeleteCacheWaitingForBackend) {
callback->Run(net::ERR_ABORTED); 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 // Tests that we can delete the cache while creating the backend, from within
// one of the callbacks. // one of the callbacks.
TEST(HttpCache, DeleteCacheWaitingForBackend2) { TEST(HttpCache, DeleteCacheWaitingForBackend2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment