diff options
author | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-11 04:12:46 +0000 |
---|---|---|
committer | raymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-11 04:14:29 +0000 |
commit | 45c897d9bc73fa18881b25686bf26f3ec4d615a7 (patch) | |
tree | f7d735ffd38876d8c8832e08b307a50b76572b45 /ppapi/api | |
parent | 59434f20bdd430283de96e69ff5b166cf5bcdc17 (diff) | |
download | chromium_src-45c897d9bc73fa18881b25686bf26f3ec4d615a7.zip chromium_src-45c897d9bc73fa18881b25686bf26f3ec4d615a7.tar.gz chromium_src-45c897d9bc73fa18881b25686bf26f3ec4d615a7.tar.bz2 |
Add test support for transition from NPObject to gin bindings for Pepper
This adds a function to PPB_Testing to run the garbage collector. This is
necessary when using gin-backed v8 objects so that we can test that
destruction works correctly when the gin-backed objects are no longer
referenced. It also modifies the tests to run garbage collection and also
to be careful with scoping such that any handles on the stack to v8 objects
are destroyed before running the GC.
BUG=351636
Review URL: https://codereview.chromium.org/445813002
Cr-Commit-Position: refs/heads/master@{#288647}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288647 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r-- | ppapi/api/private/ppb_testing_private.idl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ppapi/api/private/ppb_testing_private.idl b/ppapi/api/private/ppb_testing_private.idl index 98ddfc8..0ede2de 100644 --- a/ppapi/api/private/ppb_testing_private.idl +++ b/ppapi/api/private/ppb_testing_private.idl @@ -131,4 +131,9 @@ interface PPB_Testing_Private { */ void SetMinimumArrayBufferSizeForShmem([in] PP_Instance instance, [in] uint32_t threshold); + + /** + * Run the V8 garbage collector for tests. + */ + void RunV8GC([in] PP_Instance instance); }; |