Hey guys,Is there a test Pepper plugin we use for browsertests?I ask because the Plugin Placeholder and Plugin Power Saver code needs some better automated tests, but I didn't find anywhere obvious to start looking in the codebase.Tommy
Hello,I'm back for more advice. I would like to:
- Overhaul the prerender_browsertest to use a Pepper plugin instead of a NPAPI plugin.
- Add some tests to test the placeholder logic.
- Add some tests to test the throttling heuristics, esp. with regard to partially obscured plugins.
I think I need a full browser to test this stuff end-to-end, so I think this needs to be a browser test, rather than a RenderViewTest. I have a few questions (and ideas) I wanted to run by you.
- What would be the Pepper equivalent for x-webkit-test-netscape? One thing I could do is modify the command line flags to --register-pepper-plugins="out/Debug/lib/libppapi_example_graphics_2d.so;application/x-ppapi-test"...
- What would be a good way of getting the state of the pepper plugin on the browser side? I actually have all the info I need on the PpapiPluginProcessHost object, since there's static methods such as DidCreateOutOfProcessInstance, OnPluginIstanceThrottleStateChange.
The tricky part is that I don't know the actual instance id from the test code. Since I control the test page, if I only have one test plugin on it, can I assume there's only one? And then just add a PpapiPluginProcessHost::GetOneAndOnlyPluginInstanceForTest and a PpapiPluginProcessHost::GetOneAndOnlyPluginInstanceThrottleStateForTest?
Another approach might be to make a custom test plugin that can answer Javascript calls. That was the approach taken by the old NPAPI test plugin. Since scripting is no longer supported, I assume I'd use the synchronous PPB_Messaging capability? I've been investigating this approach, but am a bit lost on how to implement this. How would the PPB_Messaging handler get the throttle state of the plugin?
- Any other misc. advice is appreciated too.
Thanks!TommyOn Thu, Apr 2, 2015 at 4:04 PM, David Michael <dmic...@chromium.org> wrote:+pepper-dev (FYI, public list)
Yes, see:ppapi/tests/test*...for individual testsand:
chrome/test/ppapi/*andcontent/test/ppapi/*...for where the GTEST parts live.This has some info about running the tests manually if you choose:On Thu, Apr 2, 2015 at 4:10 PM, Tommy Li <tomm...@google.com> wrote:Hey guys,Is there a test Pepper plugin we use for browsertests?I ask because the Plugin Placeholder and Plugin Power Saver code needs some better automated tests, but I didn't find anywhere obvious to start looking in the codebase.Tommy
To unsubscribe from this group and stop receiving emails from it, send an email to pepper-dev+...@chromium.org.