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

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

Issue 2880453003: Introduce RunLoop::Delegate splitting RunLoop/MessageLoop some more. (Closed)
Patch Set: oops, re-invert IsRunning logic Created 3 years, 7 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 | « components/download/internal/scheduler/network_listener_unittest.cc ('k') | no next file » | 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 #ifndef CONTENT_BROWSER_BROWSING_DATA_CACHE_TEST_UTIL_H_ 5 #ifndef CONTENT_BROWSER_BROWSING_DATA_CACHE_TEST_UTIL_H_
6 #define CONTENT_BROWSER_BROWSING_DATA_CACHE_TEST_UTIL_H_ 6 #define CONTENT_BROWSER_BROWSING_DATA_CACHE_TEST_UTIL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10
10 #include "base/run_loop.h" 11 #include "base/run_loop.h"
11 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/storage_partition.h" 13 #include "content/public/browser/storage_partition.h"
13 #include "net/disk_cache/disk_cache.h" 14 #include "net/disk_cache/disk_cache.h"
14 15
16 namespace base {
17 class WaitableEvent;
18 }
19
15 namespace content { 20 namespace content {
16 21
17 // A util class that can be used to create and retreive cache entries. 22 // A util class that can be used to create and retreive cache entries.
18 class CacheTestUtil { 23 class CacheTestUtil {
19 public: 24 public:
20 explicit CacheTestUtil(StoragePartition* partition_); 25 explicit CacheTestUtil(StoragePartition* partition_);
21 26
22 ~CacheTestUtil(); 27 ~CacheTestUtil();
23 28
24 void CreateCacheEntries(const std::set<std::string>& keys); 29 void CreateCacheEntries(const std::set<std::string>& keys);
(...skipping 28 matching lines...) Expand all
53 disk_cache::Entry* current_entry_; 58 disk_cache::Entry* current_entry_;
54 std::vector<std::string> keys_; 59 std::vector<std::string> keys_;
55 60
56 std::unique_ptr<base::WaitableEvent> waitable_event_; 61 std::unique_ptr<base::WaitableEvent> waitable_event_;
57 int remaining_tasks_; 62 int remaining_tasks_;
58 }; 63 };
59 64
60 } // content 65 } // content
61 66
62 #endif // CONTENT_BROWSER_BROWSING_DATA_CACHE_TEST_UTIL_H_ 67 #endif // CONTENT_BROWSER_BROWSING_DATA_CACHE_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « components/download/internal/scheduler/network_listener_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698