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

Side by Side Diff: base/test/test_file_util_posix.cc

Issue 495002: Changes to base/ from a combination of FreeBSD and OpenBSD patches. (Closed)
Patch Set: minor tweaks Created 11 years 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
OLDNEW
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
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
OLDNEW
« base/message_loop.h ('K') | « base/sys_info_posix.cc ('k') | base/test/test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698