OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "base/test/test_file_util.h" | 5 #include "base/test/test_file_util.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> |
8 #include <sys/types.h> | 9 #include <sys/types.h> |
9 #include <sys/stat.h> | 10 #include <sys/stat.h> |
10 | 11 |
11 #include <string> | 12 #include <string> |
12 | 13 |
13 #include "base/logging.h" | 14 #include "base/logging.h" |
14 #include "base/file_path.h" | 15 #include "base/file_path.h" |
15 #include "base/file_util.h" | 16 #include "base/file_util.h" |
16 #include "base/string_util.h" | 17 #include "base/string_util.h" |
17 | 18 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 current.value(); | 94 current.value(); |
94 } | 95 } |
95 | 96 |
96 current = traversal.Next(); | 97 current = traversal.Next(); |
97 traversal.GetFindInfo(&info); | 98 traversal.GetFindInfo(&info); |
98 } | 99 } |
99 | 100 |
100 return success; | 101 return success; |
101 } | 102 } |
102 | 103 |
| 104 #if !defined(OS_LINUX) && !defined(OS_MACOSX) |
| 105 bool EvictFileFromSystemCache(const FilePath& file) { |
| 106 // There doesn't seem to be a POSIX way to cool the disk cache. |
| 107 NOTIMPLEMENTED(); |
| 108 return false; |
| 109 } |
| 110 #endif |
| 111 |
103 } // namespace file_util | 112 } // namespace file_util |
OLD | NEW |