diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 12:00:40 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 12:00:40 +0000 |
commit | d9eb3c45ead253d51ab8838055c5493ba0ac7951 (patch) | |
tree | beab9a67d8fbd22a85301f784b48b8b55757ed60 /base/test_file_util_linux.cc | |
parent | d4f06fa99aa8f04fedbb336fe4e115831b2bc6ca (diff) | |
download | chromium_src-d9eb3c45ead253d51ab8838055c5493ba0ac7951.zip chromium_src-d9eb3c45ead253d51ab8838055c5493ba0ac7951.tar.gz chromium_src-d9eb3c45ead253d51ab8838055c5493ba0ac7951.tar.bz2 |
Port flush_cache tool and perf_tests.
BUG=4160,4263
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=6815
Review URL: http://codereview.chromium.org/9639
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6886 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test_file_util_linux.cc')
-rw-r--r-- | base/test_file_util_linux.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/base/test_file_util_linux.cc b/base/test_file_util_linux.cc index 421d182..c1b3768 100644 --- a/base/test_file_util_linux.cc +++ b/base/test_file_util_linux.cc @@ -12,9 +12,8 @@ namespace file_util { -bool EvictFileFromSystemCache(const wchar_t* file) { - FilePath fpath = FilePath::FromWStringHack(file); - int fd = open(fpath.value().c_str(), O_RDONLY); +bool EvictFileFromSystemCache(const FilePath& file) { + int fd = open(file.value().c_str(), O_RDONLY); if (fd < 0) return false; if (fdatasync(fd) != 0) |