diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 04:18:06 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-09 04:18:06 +0000 |
commit | d45f29b29c766c79986014ea7677545fa30a42d1 (patch) | |
tree | 5919bb77ce4a5a993aef39e9ac1732620874b9eb /ppapi/tests/test_file_io.cc | |
parent | b4003ac004bd391e574ca360fa9567cebc3dee08 (diff) | |
download | chromium_src-d45f29b29c766c79986014ea7677545fa30a42d1.zip chromium_src-d45f29b29c766c79986014ea7677545fa30a42d1.tar.gz chromium_src-d45f29b29c766c79986014ea7677545fa30a42d1.tar.bz2 |
Move PPB_FileIO Query and Read implementation from the renderer to the plugin process.
This sends the file descriptor to the plugin side and moves some FileIO
implementation from the renderer to the plugin, using that file descriptor.
BUG=194304
R=dmichael@chromium.org, sky@chromium.org, teravest@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213933
Review URL: https://chromiumcodereview.appspot.com/18063005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_file_io.cc')
-rw-r--r-- | ppapi/tests/test_file_io.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ppapi/tests/test_file_io.cc b/ppapi/tests/test_file_io.cc index ed2183b..443f786 100644 --- a/ppapi/tests/test_file_io.cc +++ b/ppapi/tests/test_file_io.cc @@ -568,10 +568,14 @@ std::string TestFileIO::TestTouchQuery() { CHECK_CALLBACK_BEHAVIOR(callback); ASSERT_EQ(4, callback.result()); - // 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 + // NOTE: In NaCl on Windows, NaClDescIO uses _fstat64 to retrieve file info. + // This function returns strange values for very small time values (near the + // Unix Epoch). For a value like 246.0, it returns -1. For larger values, it + // returns values that are exactly an hour less. The value below is handled + // correctly, and is only 100 days after the start of Unix time. + const PP_Time last_modified_time = 100 * 24 * 3600.0; callback.WaitForResult(file_io.Touch(last_access_time, last_modified_time, callback.GetCallback())); CHECK_CALLBACK_BEHAVIOR(callback); |