OLD | NEW |
1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback_old.h" | |
12 #include "base/file_path.h" | 11 #include "base/file_path.h" |
13 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
14 #include "base/timer.h" | 13 #include "base/timer.h" |
15 #include "base/tuple.h" | 14 #include "base/tuple.h" |
16 #include "build/build_config.h" | 15 #include "build/build_config.h" |
17 | 16 |
18 // Re-creates a given test file inside the cache test folder. | 17 // Re-creates a given test file inside the cache test folder. |
19 bool CreateCacheTestFile(const FilePath& name); | 18 bool CreateCacheTestFile(const FilePath& name); |
20 | 19 |
21 // Deletes all file son the cache. | 20 // Deletes all file son the cache. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 113 |
115 void Run(int params); | 114 void Run(int params); |
116 | 115 |
117 private: | 116 private: |
118 MessageLoopHelper* helper_; | 117 MessageLoopHelper* helper_; |
119 int reuse_; | 118 int reuse_; |
120 DISALLOW_COPY_AND_ASSIGN(CallbackTest); | 119 DISALLOW_COPY_AND_ASSIGN(CallbackTest); |
121 }; | 120 }; |
122 | 121 |
123 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ | 122 #endif // NET_DISK_CACHE_DISK_CACHE_TEST_UTIL_H_ |
OLD | NEW |