| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_TEST_TEST_FILE_UTIL_H__ | |
| 6 #define CHROME_TEST_TEST_FILE_UTIL_H__ | |
| 7 | |
| 8 // File utility functions used only by tests. | |
| 9 | |
| 10 #include <string> | |
| 11 | |
| 12 namespace file_util { | |
| 13 | |
| 14 // Clear a specific file from the system cache using a neat trick. After this | |
| 15 // call, trying to access this file will result in a cold load from the hard | |
| 16 // drive. | |
| 17 bool EvictFileFromSystemCache(const wchar_t* file); | |
| 18 | |
| 19 // Like CopyFileNoCache but recursively copies all files and subdirectories | |
| 20 // in the given input directory to the output directory. Any files in the | |
| 21 // destination that already exist will be overwritten. | |
| 22 // | |
| 23 // Returns true on success. False means there was some error copying, so the | |
| 24 // state of the destination is unknown. | |
| 25 bool CopyRecursiveDirNoCache(const std::wstring& source_dir, | |
| 26 const std::wstring& dest_dir); | |
| 27 | |
| 28 } // namespace file_util | |
| 29 | |
| 30 #endif // CHROME_TEST_TEST_FILE_UTIL_H__ | |
| 31 | |
| OLD | NEW |