OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ | 5 #ifndef NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ |
6 #define NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ | 6 #define NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/task.h" | 12 #include "base/task.h" |
| 13 #include "base/timer.h" |
13 | 14 |
14 // Re-creates a given test file inside the cache test folder. | 15 // Re-creates a given test file inside the cache test folder. |
15 bool CreateCacheTestFile(const wchar_t* name); | 16 bool CreateCacheTestFile(const wchar_t* name); |
16 | 17 |
17 // Deletes all file son the cache. | 18 // Deletes all file son the cache. |
18 bool DeleteCache(const wchar_t* path); | 19 bool DeleteCache(const wchar_t* path); |
19 | 20 |
20 // Gets the path to the cache test folder. | 21 // Gets the path to the cache test folder. |
21 std::wstring GetCachePath(); | 22 std::wstring GetCachePath(); |
22 | 23 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 base::RepeatingTimer<MessageLoopHelper> timer_; | 93 base::RepeatingTimer<MessageLoopHelper> timer_; |
93 int num_callbacks_; | 94 int num_callbacks_; |
94 int num_iterations_; | 95 int num_iterations_; |
95 int last_; | 96 int last_; |
96 bool completed_; | 97 bool completed_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(MessageLoopHelper); | 99 DISALLOW_COPY_AND_ASSIGN(MessageLoopHelper); |
99 }; | 100 }; |
100 | 101 |
101 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ | 102 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ |
OLD | NEW |