summaryrefslogtreecommitdiffstats
path: root/ppapi/tests
Commit message (Collapse)AuthorAgeFilesLines
* Improve documentation for the tools for generating size checks, based on ↵dmichael@google.com2010-12-222-37/+82
| | | | | | | | | | | | | | | comments on: http://codereview.chromium.org/5730003/ Also automated handling of long and unsigned long as suggested in review comments for that CL. BUG=None TEST=Reran generate_ppapi_size_checks.py; produced the same output. Review URL: http://codereview.chromium.org/6014007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69950 0039d316-1c4b-4281-b951-d872f2087c98
* Properly cancel PPAPI callbacks.viettrungluu@chromium.org2010-12-214-47/+217
| | | | | | | | | | | 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
* Integrate NaCl Head - Revert 69309 to restore 64b handles in PPAPInoelallen@google.com2010-12-182-4/+4
| | | | | | | | | BUG= http://code.google.com/p/nativeclient/issues/detail?id=933 TEST=It compiles can run the nacl ppapi srpc test Review URL: http://codereview.chromium.org/6041001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69602 0039d316-1c4b-4281-b951-d872f2087c98
* Another attempt at landing:dmichael@google.com2010-12-165-0/+408
| | | | | | | | | | | | | | http://codereview.chromium.org/5730003/ Previously r69187 Check-in was almost clean, but checkdeps.py flagged it as having invalid includes (because the Clang plugins aren't meant to be built as part of Chrome). This adds the magic incantation (a DEPS file... who knew?) to make checkdeps.py ignore it. Tested by running checkdeps.py in my gclient before and after. BUG=61004,62983 TEST=compile asserts and ppapi/tests/test_struct_sizes.c Review URL: http://codereview.chromium.org/5927004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69483 0039d316-1c4b-4281-b951-d872f2087c98
* Resource width 64->32 change.neb@chromium.org2010-12-152-4/+4
| | | | | | | | | | | Mostly done by bbudge. BUG=none TEST=ppapi_include_tests.py Review URL: http://codereview.chromium.org/5837001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69309 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 69187, http://codereview.chromium.org/5730003/. DEPS check failed ↵dmichael@google.com2010-12-144-400/+0
| | | | | | | | | | | due to unrecognized Clang includes. BUG=None TEST=None Review URL: http://codereview.chromium.org/5703008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69191 0039d316-1c4b-4281-b951-d872f2087c98
* Add the following Clang plugins:dmichael@google.com2010-12-144-0/+400
| | | | | | | | | | | | | | | | | | | | | | | | PrintNamesAndSizes -Find top-level type definitions. Print their kind (struct, enum, etc), typename, size, and location. FindAffectedInterfaces -Given some typenames, find other types which are affected if that type changes. This is specifically for determining which interfaces are affected by changing a struct or structs. Also add a Makefile to build the plugins and a README describing how to run them. Also add a python script that runs PrintNamesAndSizes with several different targets and generates compile-time checks in to the PPAPI source code to enforce that sizes are consistent, or if they change, we find out quickly. This was broken off from a bigger CL: http://codereview.chromium.org/5340003/ BUG=61004,92983 TEST=None See this CL for an example of what these plugins helped me do: http://codereview.chromium.org/5674004 Review URL: http://codereview.chromium.org/5730003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69187 0039d316-1c4b-4281-b951-d872f2087c98
* Add compile assertions to enforce the sizes of all structs and enums in the ↵dmichael@google.com2010-12-137-70/+188
| | | | | | | | | | | | | | | | C API. Adjust some structs to make their sizes consistent across architectures. Note that some structs contain pointers, so are difficult to make consistent between 32-bit and 64-bit. Those types are in test_struct_sizes.c. Other types have a compile assertion immediately after their definition. This was broken off from a bigger CL: http://codereview.chromium.org/5340003/ BUG=61004,92983 TEST=test_struct_sizes.c, compile assertions throughout See this CL for the code that helped generate the static assertions and find affected interfaces: http://codereview.chromium.org/5730003 Review URL: http://codereview.chromium.org/5674004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69038 0039d316-1c4b-4281-b951-d872f2087c98
* Add a separate cookie for the start of a PPAPI test to help reduce testbrettw@chromium.org2010-12-101-1/+3
| | | | | | | | | | | | | | | | flakyness. This also ups the timeout time for actually running the test. We don't know what the tests do (some of the file ones do a lot of I/O), so the short timeout is somewhat dangerous. We have not historically had many problems with hanging tests other than problems with startup (which has a shorter timeout), so I think the longer test timeout is unlikely to cause problems. TEST=this is BUG=none Review URL: http://codereview.chromium.org/5743002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68819 0039d316-1c4b-4281-b951-d872f2087c98
* Remove trusted interface wrappers from the FileIO C++ wrapper. The wrapperbrettw@chromium.org2010-12-032-2/+18
| | | | | | | | | | | | should not expose functions that aren't accessible to normal plugins. The proxy can just use the trusted interface directly without having a public C++ wrapper. TEST=it compiles BUG=53889 Review URL: http://codereview.chromium.org/5532001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68109 0039d316-1c4b-4281-b951-d872f2087c98
* Change trusted shared memory interface to match audio.nfullagar@google.com2010-12-021-1/+1
| | | | | | | | | | | | | - shm handle uint64_t -> int - more unification of shm size from int32_t -> uint32_t - GetNativeMemoryHandle() -> GetSharedMemory() BUG=none TEST=src/ppapi/examples/ Review URL: http://codereview.chromium.org/5410001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67910 0039d316-1c4b-4281-b951-d872f2087c98
* - Add a script which:dmichael@google.com2010-11-194-166/+6
| | | | | | | | | | | | | | | --- Checks that all source files are in ppapi.gyp and vice-versa --- Generates test_c_includes.c and test_cc_includes.cc - Removes tests/test_image_data, which appears to be obsolete I want to make the script a gyp action, but it didn't work on Windows last I tried. If desired, I can fix that in this CL, or I can make it automated later. BUG=63527,59791,53451 TEST=None; improves build-time checking Review URL: http://codereview.chromium.org/5190004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66833 0039d316-1c4b-4281-b951-d872f2087c98
* Add c/dev/ppb_widget_dev.h and cpp/non_thread_safe_ref_count.h to ppapi.gyp. ↵dmichael@google.com2010-11-192-29/+81
| | | | | | | | | | | | | Add a simple test to ensure all C++ files compile. Re-sorted the includes in test_c_includes.c that uncovered a problem whereby ppapi headers expect pp_stdint.h to include stddef.h, and it wasn't doing it on Windows. See http://codereview.chromium.org/5190004/ for an attempt at automating the test generation and verification of ppapi.gyp. BUG=66321 TEST=None Review URL: http://codereview.chromium.org/5233002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66781 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
* Run Pepper unit tests in Native Clientgarianov@google.com2010-11-164-14/+73
| | | | | | | | | copy of http://codereview.chromium.org/4991006/ had to do it again in 'commitable' version of chrome tree Review URL: http://codereview.chromium.org/4979006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66321 0039d316-1c4b-4281-b951-d872f2087c98
* Move URLLoader, URLRequestInfo, and URLResponseInfo out of the dev directorybrettw@chromium.org2010-11-104-51/+51
| | | | | | | | | | | | 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
* * Add follow_redirects_ field to pepper::URLRequestInfo, follow_redirects() ↵brettw@chromium.org2010-11-082-0/+33
| | | | | | | | | | | | | accessor, modified SetProperty to support this * Add status_text_, redirect_url_ fields to pepper::URLResponseInfo, modified GetProperty to return these * Add URL redirect auditing to pepper::URLLoader. BUG=49790 BUG=51345 TEST=ui_tests --gtest_filter=PPAPI* Review=http://codereview.chromium.org/4394003/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65443 0039d316-1c4b-4281-b951-d872f2087c98
* Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on ↵dmichael@google.com2010-11-054-12/+87
| | | | | | | | | | | | | | Windows). This includes changing bool to PP_Bool and adding a PP_INLINE macro. TEST=tests/test_c_includes.c BUG=59791,53451 The first patch set is a straight copy of http://codereview.chromium.org/4019010/show which got LGTMed when PPAPI was in its own repo, but had to be rolled back in order to include chrome changes. IMPORTANT: This change will break plugin implementations that use the C interface, and might break others as well. Review URL: http://codereview.chromium.org/4310002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65200 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing a stupid typo.dumi@chromium.org2010-11-041-1/+1
| | | | | | | | | | BUG=none TEST=none TBR=darin Review URL: http://codereview.chromium.org/4426004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65023 0039d316-1c4b-4281-b951-d872f2087c98
* Including <stdin.h> to hopefully fix a build error on the ChromeOS bots.dumi@chromium.org2010-11-041-0/+2
| | | | | | | | | | BUG=none TEST=none TBR=darin Review URL: http://codereview.chromium.org/4469001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65022 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper's directory reader implementation + test.dumi@chromium.org2010-11-0414-213/+297
| | | | | | | | | 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-0137-0/+4603
http://ppapi.googlecode.com/ TEST=none BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64613 0039d316-1c4b-4281-b951-d872f2087c98