summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_file_io.cc
Commit message (Collapse)AuthorAgeFilesLines
* Make it possible to enable/disable specific ppapi tests. Migrate PostMessage ↵dmichael@chromium.org2011-11-081-9/+9
| | | | | | | | | | | | | | | | | tests. Most of these files were changed by a sed script, so it's not as bad as it looks. The testcase attribute now can include a 'filter'. If it's omitted, everything works the same as before. This way we can migrate tests over bit-by-bit if we want to. We can also still run the tests manually the same way as before. This only runs PostMessage testss the new way, and re-enables all oop PostMessage tests that pass on Windows. I can do the other tests in this CL if desired, but it might be easier to land in a few pieces. BUG=102885,95557 TEST=N/A Review URL: http://codereview.chromium.org/8477015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109114 0039d316-1c4b-4281-b951-d872f2087c98
* Replace sizeof with strlen in ppapi/tests/test_file_io.cckinuko@chromium.org2011-10-191-2/+2
| | | | | | | | | BUG=none TEST=TestFileIO.ParallelReads Review URL: http://codereview.chromium.org/8336015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106243 0039d316-1c4b-4281-b951-d872f2087c98
* Take the size of an array instead of pointer for string comparison.dmichael@chromium.org2011-10-131-2/+2
| | | | | | | | | | BUG=100215 TEST=N/A Review URL: http://codereview.chromium.org/8283006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105360 0039d316-1c4b-4281-b951-d872f2087c98
* Adding guards against heap overflow in PPB_FileIO::Readsanga@chromium.org2011-08-171-1/+9
| | | | | | | | BUG= http://code.google.com/p/chromium/issues/detail?id=92750 TEST= none at this time. FileIO tests are turned off for ui_tests. Review URL: http://codereview.chromium.org/7655009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97141 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper quota supportkinuko@chromium.org2011-08-011-0/+88
| | | | | | | | | | | | | | | | | | Probably this could be better implemented using push notification model, but in this patch I made this very straightforwardly (with possibly minimal change). **NOTE: This design may not be really safe as quota accounting is done in renderer** * Added QuotaFileIO class (in quota_file_io.{cc,h}) which performs pre- and post- write quota related operations. * For Write/SetLength the QuotaFileIO instance first performs QueryFileInfo and QueryAvailableSpace to get the file size and current available space. If the results look good it dispatches actual Write/SetLength operations. After the operation has succeeded it then notifies the browser that it has made a storage modify operation. * For WillWrite/WillSetLength this change assumes they are always followed by actual write/setlength operations and the operations will succeed. Based on another cleanup patch: http://codereview.chromium.org/7438001/ BUG=86556 TEST=manually tested Review URL: http://codereview.chromium.org/7433006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94892 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up the file dev interfaces. The combination of some dev and some nonbrettw@chromium.org2011-07-151-44/+44
| | | | | | | | | | | | | dev interfaces in various places makes it impossible to compile some code. This makes the dev versions typedefs which should avoid breaking most (though not all) users. It also converts the file chooser to using the non-dev version of file ref. TEST=it compiles Review URL: http://codereview.chromium.org/7387011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92725 0039d316-1c4b-4281-b951-d872f2087c98
* Support overlapped calls of FileIO::{Read,Write}.yzshen@chromium.org2011-07-131-3/+256
| | | | | | | | | | BUG=84883 TEST=test_file_io Review URL: http://codereview.chromium.org/7258002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92322 0039d316-1c4b-4281-b951-d872f2087c98
* Add a flag field to PP_CompletionCallback to control if the callback shouldpolina@google.com2011-06-301-13/+79
| | | | | | | | | | | | | | | always be invoked asynchronously on success or error or skipped if the operation can complete synchronously without blocking. Keep the default behavior as-is until clients update their code. Bump revisions of all interfaces that take callbacks as args. Update browser interface function implementations and C++ layer to force callbacks if sync option is not set. Change ppapi/tests to run tests involving callbacks with both flag options. BUG=79376 TEST=ppapi_tests + bots Review URL: http://codereview.chromium.org/6899055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91205 0039d316-1c4b-4281-b951-d872f2087c98
* Fix PP_FileOpenFlags_Dev handling:yzshen@chromium.org2011-05-231-17/+203
| | | | | | | | | | | | | | | - rewrite the mapping from PP_FileOpenFlags_Dev to PlatformFileFlags. - let ppb_flash_file_impl and ppb_file_io_impl use the same mapping logic. - CreatePlatformFile: resolve the conflict between the win and posix implementation. Before this change, the win implementation didn't allow PLATFORM_FILE_TRUNCATE to be used with any of the (OPEN|CREATE)(_ALWAYS)? flags; while the posix implementation required it to be used with them. - add more test cases to test the behavior of different PP_FileOpenFlags_Dev combinations. - also unify the conversion from PlatformFileError to Pepper error. BUG=68489 TEST=New test cases in test_file_io.cc Review URL: http://codereview.chromium.org/7038032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86349 0039d316-1c4b-4281-b951-d872f2087c98
* 1;2cReplace PP_ERROR_WOULDBLOCK with PP_OK_COMPLETIONPENDING. Improve error ↵polina@google.com2011-04-111-30/+30
| | | | | | | | | | code comments. Update all code that uses this error code. Keep the old code for now flagging it as deprecated. Update copyrights. BUG=none TEST=bots Review URL: http://codereview.chromium.org/6814033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81168 0039d316-1c4b-4281-b951-d872f2087c98
* Implement proxy for FlashMenu and Run/QuitMessageLooppiman@google.com2011-02-151-19/+24
| | | | | | | | | BUG=none TEST=Pepper Flash Review URL: http://codereview.chromium.org/6432001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74981 0039d316-1c4b-4281-b951-d872f2087c98
* Fix FileIO and FileRef PPAPI tests to match changes inadamk@chromium.org2011-02-031-12/+13
| | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=71544, and try re-enabling them in the UI tests. Review URL: http://codereview.chromium.org/6410064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73677 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Pepper URL Loader callbacks.viettrungluu@chromium.org2011-01-141-0/+5
| | | | | | | | | | | | | | (Previously committed r71334, reverted r71400. Added null check pointed out by jam.) Add some tests (for aborting calls). BUG=none TEST=ppapi_tests Review URL: http://codereview.chromium.org/6280005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71463 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 71334 - Fix Pepper URL Loader callbacks.viettrungluu@chromium.org2011-01-141-5/+0
| | | | | | | | | | | | | | | | | [Not applying the "obvious" fix, since it might lead to callbacks being called incorrectly.] Add some tests (for aborting calls). BUG=none TEST=ppapi_tests Review URL: http://codereview.chromium.org/6220006 TBR=viettrungluu@chromium.org,jam@chromium.org,brettw@chromium.org Review URL: http://codereview.chromium.org/6254003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71400 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Pepper URL Loader callbacks.viettrungluu@chromium.org2011-01-131-0/+5
| | | | | | | | | | | Add some tests (for aborting calls). BUG=none TEST=ppapi_tests Review URL: http://codereview.chromium.org/6220006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71334 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Pepper File IO callbacks.viettrungluu@chromium.org2011-01-111-1/+204
| | | | | | | | | | | | Add some tests (for aborting calls). Also fix Flash NetConnector callback running. BUG=none TEST=ppapi_tests Review URL: http://codereview.chromium.org/6228004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71092 0039d316-1c4b-4281-b951-d872f2087c98
* Use PASS() everywhere in ppapi/tests.neb@chromium.org2011-01-071-3/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/4182010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70779 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper's directory reader implementation + test.dumi@chromium.org2010-11-041-58/+2
| | | | | | | | | BUG=none TEST=test_directory_reader.cc Review URL: http://codereview.chromium.org/4107004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65002 0039d316-1c4b-4281-b951-d872f2087c98
* Move PPAPI into the Chrome repo. The old repo wasbrettw@chromium.org2010-11-011-0/+341
http://ppapi.googlecode.com/ TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64613 0039d316-1c4b-4281-b951-d872f2087c98