OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
13 #include "base/tuple.h" | 13 #include "base/tuple.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 | 15 |
16 // Re-creates a given test file inside the cache test folder. | 16 // Re-creates a given test file inside the cache test folder. |
17 bool CreateCacheTestFile(const base::FilePath& name); | 17 bool CreateCacheTestFile(const base::FilePath& name); |
18 | 18 |
19 // Deletes all file son the cache. | 19 // Deletes all file son the cache. |
20 bool DeleteCache(const base::FilePath& path); | 20 bool DeleteCache(const base::FilePath& path); |
21 | 21 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 int last_result() const { return last_result_; } | 96 int last_result() const { return last_result_; } |
97 | 97 |
98 private: | 98 private: |
99 MessageLoopHelper* helper_; | 99 MessageLoopHelper* helper_; |
100 int reuse_; | 100 int reuse_; |
101 int last_result_; | 101 int last_result_; |
102 DISALLOW_COPY_AND_ASSIGN(CallbackTest); | 102 DISALLOW_COPY_AND_ASSIGN(CallbackTest); |
103 }; | 103 }; |
104 | 104 |
105 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ | 105 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ |
OLD | NEW |