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

Unified Diff: ppapi/tests/test_file_ref.cc

Issue 18063005: Do PPB_FileIO Query and Read in the plugin process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up and add comments. Created 7 years, 4 months 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
« ppapi/proxy/file_io_resource.cc ('K') | « ppapi/tests/test_file_io.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_file_ref.cc
diff --git a/ppapi/tests/test_file_ref.cc b/ppapi/tests/test_file_ref.cc
index 04e8ce1ff67a72a85c44f4279d22b5eedb0dcb34..d1448ec7edd4b5eaefc912b7de41661f8ebb09b5 100644
--- a/ppapi/tests/test_file_ref.cc
+++ b/ppapi/tests/test_file_ref.cc
@@ -365,10 +365,10 @@ std::string TestFileRef::TestQueryAndTouchFile() {
ASSERT_EQ(4, callback.result());
// Touch.
- // last_access_time's granularity is 1 day
- // last_modified_time's granularity is 2 seconds
const PP_Time last_access_time = 123 * 24 * 3600.0;
- const PP_Time last_modified_time = 246.0;
+ // last_modified_time's granularity is 2 seconds
+ // See note in test_file_io.cc for why we use this time.
+ const PP_Time last_modified_time = 100 * 24 * 3600.0;
callback.WaitForResult(file_ref.Touch(last_access_time, last_modified_time,
callback.GetCallback()));
CHECK_CALLBACK_BEHAVIOR(callback);
« ppapi/proxy/file_io_resource.cc ('K') | « ppapi/tests/test_file_io.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698