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

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

Issue 3173020: FBTF: Remove unneeded #includes of <string> and <vector> from src/app and src/base. (Closed)
Patch Set: argh Created 10 years, 4 months 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 | « base/resource_util.h ('k') | no next file » | 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) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 BASE_TEST_TEST_FILE_UTIL_H_ 5 #ifndef BASE_TEST_TEST_FILE_UTIL_H_
6 #define BASE_TEST_TEST_FILE_UTIL_H_ 6 #define BASE_TEST_TEST_FILE_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 // File utility functions used only by tests. 9 // File utility functions used only by tests.
10 10
11 #include <string>
12
13 class FilePath; 11 class FilePath;
14 12
15 namespace file_util { 13 namespace file_util {
16 14
17 // Wrapper over file_util::Delete. On Windows repeatedly invokes Delete in case 15 // Wrapper over file_util::Delete. On Windows repeatedly invokes Delete in case
18 // of failure to workaround Windows file locking semantics. Returns true on 16 // of failure to workaround Windows file locking semantics. Returns true on
19 // success. 17 // success.
20 bool DieFileDie(const FilePath& file, bool recurse); 18 bool DieFileDie(const FilePath& file, bool recurse);
21 19
22 // Clear a specific file from the system cache. After this call, trying 20 // Clear a specific file from the system cache. After this call, trying
23 // to access this file will result in a cold load from the hard drive. 21 // to access this file will result in a cold load from the hard drive.
24 bool EvictFileFromSystemCache(const FilePath& file); 22 bool EvictFileFromSystemCache(const FilePath& file);
25 23
26 // Like CopyFileNoCache but recursively copies all files and subdirectories 24 // Like CopyFileNoCache but recursively copies all files and subdirectories
27 // in the given input directory to the output directory. Any files in the 25 // in the given input directory to the output directory. Any files in the
28 // destination that already exist will be overwritten. 26 // destination that already exist will be overwritten.
29 // 27 //
30 // Returns true on success. False means there was some error copying, so the 28 // Returns true on success. False means there was some error copying, so the
31 // state of the destination is unknown. 29 // state of the destination is unknown.
32 bool CopyRecursiveDirNoCache(const FilePath& source_dir, 30 bool CopyRecursiveDirNoCache(const FilePath& source_dir,
33 const FilePath& dest_dir); 31 const FilePath& dest_dir);
34 32
35 } // namespace file_util 33 } // namespace file_util
36 34
37 #endif // BASE_TEST_TEST_FILE_UTIL_H_ 35 #endif // BASE_TEST_TEST_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « base/resource_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698