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

Side by Side Diff: chrome/test/test_file_util.h

Issue 9774: * Revert "Por rt flush_cache tool." (Closed)
Patch Set: Created 12 years, 1 month 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 | « chrome/SConscript ('k') | chrome/test/test_file_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_TEST_TEST_FILE_UTIL_H_ 5 #ifndef CHROME_TEST_TEST_FILE_UTIL_H__
6 #define CHROME_TEST_TEST_FILE_UTIL_H_ 6 #define CHROME_TEST_TEST_FILE_UTIL_H__
7 7
8 // File utility functions used only by tests. 8 // File utility functions used only by tests.
9 9
10 #include <string> 10 #include <string>
11 11
12 namespace file_util { 12 namespace file_util {
13 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
14 // Like CopyFileNoCache but recursively copies all files and subdirectories 19 // Like CopyFileNoCache but recursively copies all files and subdirectories
15 // in the given input directory to the output directory. Any files in the 20 // in the given input directory to the output directory. Any files in the
16 // destination that already exist will be overwritten. 21 // destination that already exist will be overwritten.
17 // 22 //
18 // Returns true on success. False means there was some error copying, so the 23 // Returns true on success. False means there was some error copying, so the
19 // state of the destination is unknown. 24 // state of the destination is unknown.
20 bool CopyRecursiveDirNoCache(const std::wstring& source_dir, 25 bool CopyRecursiveDirNoCache(const std::wstring& source_dir,
21 const std::wstring& dest_dir); 26 const std::wstring& dest_dir);
22 27
23 } // namespace file_util 28 } // namespace file_util
24 29
25 #endif // CHROME_TEST_TEST_FILE_UTIL_H_ 30 #endif // CHROME_TEST_TEST_FILE_UTIL_H__
26 31
OLDNEW
« no previous file with comments | « chrome/SConscript ('k') | chrome/test/test_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698