diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 23:10:46 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-25 23:10:46 +0000 |
commit | 60aac62ddf3cc40741a824cae25ab190005513be (patch) | |
tree | 0f55441604d8e4ee3693d0ce6b3e8e8d4dbe06cc /chrome/test/test_file_util.h | |
parent | da4e34b86c37f77dc7027fbc1fd599d319b69bd0 (diff) | |
download | chromium_src-60aac62ddf3cc40741a824cae25ab190005513be.zip chromium_src-60aac62ddf3cc40741a824cae25ab190005513be.tar.gz chromium_src-60aac62ddf3cc40741a824cae25ab190005513be.tar.bz2 |
Un-duplicate EvictFileFromSystemCache.
Change required for http://codereview.chromium.org/9639 .
Review URL: http://codereview.chromium.org/12407
Patch from Pawel Hajdan Jr.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/test_file_util.h')
-rw-r--r-- | chrome/test/test_file_util.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/chrome/test/test_file_util.h b/chrome/test/test_file_util.h index dd4e34f..e69de29 100644 --- a/chrome/test/test_file_util.h +++ b/chrome/test/test_file_util.h @@ -1,31 +0,0 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CHROME_TEST_TEST_FILE_UTIL_H__ -#define CHROME_TEST_TEST_FILE_UTIL_H__ - -// File utility functions used only by tests. - -#include <string> - -namespace file_util { - -// Clear a specific file from the system cache using a neat trick. After this -// call, trying to access this file will result in a cold load from the hard -// drive. -bool EvictFileFromSystemCache(const wchar_t* file); - -// Like CopyFileNoCache but recursively copies all files and subdirectories -// in the given input directory to the output directory. Any files in the -// destination that already exist will be overwritten. -// -// Returns true on success. False means there was some error copying, so the -// state of the destination is unknown. -bool CopyRecursiveDirNoCache(const std::wstring& source_dir, - const std::wstring& dest_dir); - -} // namespace file_util - -#endif // CHROME_TEST_TEST_FILE_UTIL_H__ - |