Index: base/file_util.h |
diff --git a/base/file_util.h b/base/file_util.h |
index cdedfc401548f7997fbbdc1d978e825c8f67fa03..a145acc64502b434917d519415cd2b68ab0095d3 100644 |
--- a/base/file_util.h |
+++ b/base/file_util.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 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. |
@@ -332,6 +332,9 @@ bool GetFileInfo(const FilePath& file_path, FileInfo* info); |
// Deprecated temporary compatibility function. |
bool GetFileInfo(const std::wstring& file_path, FileInfo* info); |
+// Set the time of the last modification. Useful for unit tests. |
+bool SetLastModifiedTime(const FilePath& file_path, base::Time last_modified); |
+ |
#if defined(OS_POSIX) |
// Store inode number of |path| in |inode|. Return true on success. |
bool GetInode(const FilePath& path, ino_t* inode); |