summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_file_ref.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add GetLiveVars to PPB_Testing_Dev. Fix leaks it uncovered.dmichael@chromium.org2011-12-221-1/+1
| | | | | | | | | | BUG=108308,108314 TEST= Review URL: http://codereview.chromium.org/8982006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115503 0039d316-1c4b-4281-b951-d872f2087c98
* Reland http://codereview.chromium.org/8477015dmichael@chromium.org2011-11-161-10/+10
| | | | | | | | | | | | | | | | | | Landed at r109114, Reverted at r109142 Make it possible to enable/disable specific ppapi tests. Migrate PostMessage tests. 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 TEST=N/A TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/8536031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110248 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 109114thakis@chromium.org2011-11-091-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Turned Mac valgrind bots red: OutOfProcessPPAPITest.PostMessage_MessageEvent OutOfProcessPPAPITest.PostMessage_ExtraParam PPAPITest.PostMessage_NoHandler OutOfProcessPPAPITest.PostMessage_SendInInit Probably others - Make it possible to enable/disable specific ppapi tests. Migrate PostMessage 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 TBR=dmichael@chromium.org Review URL: http://codereview.chromium.org/8497030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109142 0039d316-1c4b-4281-b951-d872f2087c98
* Make it possible to enable/disable specific ppapi tests. Migrate PostMessage ↵dmichael@chromium.org2011-11-081-10/+10
| | | | | | | | | | | | | | | | | 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
* Adding checks against directory traversal.sanga@chromium.org2011-08-171-0/+32
| | | | | | | | BUG= http://code.google.com/p/chromium/issues/detail?id=92751 TEST=ui_tests Review URL: http://codereview.chromium.org/7631007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97144 0039d316-1c4b-4281-b951-d872f2087c98
* Updating the C++ PPAPI to use non-dev File interfaces.sanga@chromium.org2011-07-131-59/+59
| | | | | | Review URL: http://codereview.chromium.org/7345001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92290 0039d316-1c4b-4281-b951-d872f2087c98
* Add a flag field to PP_CompletionCallback to control if the callback shouldpolina@google.com2011-06-301-30/+103
| | | | | | | | | | | | | | | 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-1/+3
| | | | | | | | | | | | | | | - 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-37/+37
| | | | | | | | | | 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
* Don't allow multiple opens for Pepper FileSystem.yzshen@chromium.org2011-02-281-14/+0
| | | | | | | | | BUG=73667 TEST=test_file_system.{h,cc} Review URL: http://codereview.chromium.org/6596026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76278 0039d316-1c4b-4281-b951-d872f2087c98
* Implement proxying for FileRef and FileChooser.brettw@chromium.org2011-02-171-5/+6
| | | | | | | | | | This also changes the FileRef interface to remove the Query function, since there is no close function, there's no way to cancel the current request, which makes memory management of the info structure very difficult. Review URL: http://codereview.chromium.org/6519057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75331 0039d316-1c4b-4281-b951-d872f2087c98
* Implement proxy for FlashMenu and Run/QuitMessageLooppiman@google.com2011-02-151-8/+8
| | | | | | | | | 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-13/+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
* Use PASS() everywhere in ppapi/tests.neb@chromium.org2011-01-071-8/+8
| | | | | | | | | 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
* Properly cancel PPAPI callbacks.viettrungluu@chromium.org2010-12-211-4/+136
| | | | | | | | | | | This sets up infrastructure to properly cancel PPAPI callbacks (which have particular semantics), and converts a couple things to use them. BUG= TEST=test_shell_tests and PPAPI tests Review URL: http://codereview.chromium.org/5562008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69773 0039d316-1c4b-4281-b951-d872f2087c98
* Change FileRef::GetName() to return the name of the file even fordumi@chromium.org2010-11-171-2/+2
| | | | | | | | | | | external files. BUG=none TEST=none Review URL: http://codereview.chromium.org/5127002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66504 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLLoader, URLRequestInfo, and URLResponseInfo out of the dev directorybrettw@chromium.org2010-11-101-19/+19
| | | | | | | | | | | | and rename accordingly. Rename URLResponseInfo.GetBody to GetBodyAsFileRef. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/4747001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65705 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/+502
http://ppapi.googlecode.com/ TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64613 0039d316-1c4b-4281-b951-d872f2087c98