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

Side by Side Diff: content/public/test/cache_test_util.cc

Issue 2757923002: Move StoragePartitionHttpCacheDataRemover to content/ (Closed)
Patch Set: Rebase. Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « content/public/test/cache_test_util.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/cache_test_util.h"
5 #include "base/memory/ptr_util.h" 6 #include "base/memory/ptr_util.h"
6 #include "base/synchronization/waitable_event.h" 7 #include "base/synchronization/waitable_event.h"
7 #include "chrome/browser/browsing_data/cache_test_util.h"
8 #include "net/disk_cache/disk_cache.h" 8 #include "net/disk_cache/disk_cache.h"
9 #include "net/http/http_cache.h" 9 #include "net/http/http_cache.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
11 #include "net/url_request/url_request_context_getter.h" 11 #include "net/url_request/url_request_context_getter.h"
12 12
13 using content::BrowserThread; 13 namespace content {
14 14
15 CacheTestUtil::CacheTestUtil(content::StoragePartition* partition) 15 CacheTestUtil::CacheTestUtil(content::StoragePartition* partition)
16 : partition_(partition), remaining_tasks_(0) { 16 : partition_(partition), remaining_tasks_(0) {
17 done_callback_ = 17 done_callback_ =
18 base::Bind(&CacheTestUtil::DoneCallback, base::Unretained(this)); 18 base::Bind(&CacheTestUtil::DoneCallback, base::Unretained(this));
19 // UI and IO thread synchronization. 19 // UI and IO thread synchronization.
20 waitable_event_ = base::MakeUnique<base::WaitableEvent>( 20 waitable_event_ = base::MakeUnique<base::WaitableEvent>(
21 base::WaitableEvent::ResetPolicy::AUTOMATIC, 21 base::WaitableEvent::ResetPolicy::AUTOMATIC,
22 base::WaitableEvent::InitialState::NOT_SIGNALED); 22 base::WaitableEvent::InitialState::NOT_SIGNALED);
23 BrowserThread::PostTask( 23 BrowserThread::PostTask(
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 if (current_entry_) { 139 if (current_entry_) {
140 keys_.push_back(current_entry_->GetKey()); 140 keys_.push_back(current_entry_->GetKey());
141 } 141 }
142 142
143 error = iterator_->OpenNextEntry( 143 error = iterator_->OpenNextEntry(
144 &current_entry_, 144 &current_entry_,
145 base::Bind(&CacheTestUtil::GetNextKey, base::Unretained(this))); 145 base::Bind(&CacheTestUtil::GetNextKey, base::Unretained(this)));
146 } 146 }
147 } 147 }
148
149 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/cache_test_util.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698