• raymes's avatar
    Minor changes to allow Pepper InstancePrivate tests to pass with gin · 78fdb5a2
    raymes authored
    This includes some minor changes which allow tests to when NPObject is replaced
    by gin in pepper:
    -Add shared library exports for use of PepperTryCatch and ScopedPPVarArray in
    tests.
    -Add gin as a dependency to content_unittests for use in host_var_tracker_unittest
    -Change TestInstanceDeprecated so that it doesn't execute a script from the
    ScriptableObject upon destruction. The reason for this is that the garbage
    collector is manually run from the destructor of the plugin Instance object.
    This results in destruction of the ScriptableObject and then javascript is
    re-entered via ExecuteScript. This should never happen outside tests because
    the garbage collector won't be run synchronously. Instead of running
    ExecuteScript, which just set a variable in the Instance object to verify
    that the ScriptableObject was correctly destroyed.
    
    BUG=351636
    
    Committed: https://chromium.googlesource.com/chromium/src/+/92c3074f4b4417924115f880657f1ec15da0e0ba
    
    Review URL: https://codereview.chromium.org/472693002
    
    Cr-Commit-Position: refs/heads/master@{#292102}
    78fdb5a2
scoped_pp_var.h 2.37 KB