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

Unified Diff: webkit/fileapi/syncable/canned_syncable_file_system.h

Issue 11363161: Add CannedSyncableFileSystem::TouchFile for testing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: webkit/fileapi/syncable/canned_syncable_file_system.h
diff --git a/webkit/fileapi/syncable/canned_syncable_file_system.h b/webkit/fileapi/syncable/canned_syncable_file_system.h
index 46fce14a7613021bf6f618fd36377727154f5429..9b20c57a83f85e8bde2c064d3a423f2504c42d38 100644
--- a/webkit/fileapi/syncable/canned_syncable_file_system.h
+++ b/webkit/fileapi/syncable/canned_syncable_file_system.h
@@ -100,6 +100,9 @@ class CannedSyncableFileSystem
base::PlatformFileError Move(const FileSystemURL& src_url,
const FileSystemURL& dest_url);
base::PlatformFileError TruncateFile(const FileSystemURL& url, int64 size);
+ base::PlatformFileError TouchFile(const FileSystemURL& url,
+ const base::Time& access_time,
+ const base::Time& modified_time);
nhiroki 2012/11/09 07:50:03 naming-nit: I'd prefer "last_access_time" and "las
kinuko 2012/11/09 07:55:33 Done.
base::PlatformFileError Remove(const FileSystemURL& url, bool recursive);
base::PlatformFileError FileExists(const FileSystemURL& url);
base::PlatformFileError DirectoryExists(const FileSystemURL& url);
@@ -145,6 +148,10 @@ class CannedSyncableFileSystem
void DoTruncateFile(const FileSystemURL& url,
int64 size,
const StatusCallback& callback);
+ void DoTouchFile(const FileSystemURL& url,
+ const base::Time& access_time,
+ const base::Time& modified_time,
nhiroki 2012/11/09 07:50:03 ditto
kinuko 2012/11/09 07:55:33 Done.
+ const StatusCallback& callback);
void DoRemove(const FileSystemURL& url,
bool recursive,
const StatusCallback& callback);

Powered by Google App Engine
This is Rietveld 408576698