Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Issue 472693002: Minor changes to allow Pepper InstancePrivate tests to pass with gin (Closed)

Created:
6 years, 4 months ago by raymes
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, chrome-apps-syd-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Minor changes to allow Pepper InstancePrivate tests to pass with gin 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 Committed: https://crrev.com/78fdb5a26f2e3cf0ed472668a48add71d043743d Cr-Commit-Position: refs/heads/master@{#292102}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -66 lines) Patch
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_try_catch.h View 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/scoped_pp_var.h View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/tests/test_instance_deprecated.h View 1 2 3 4 5 6 3 chunks +31 lines, -0 lines 0 comments Download
M ppapi/tests/test_instance_deprecated.cc View 1 2 3 4 5 6 5 chunks +35 lines, -64 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
raymes
6 years, 4 months ago (2014-08-14 01:26:31 UTC) #1
dmichael (off chromium)
lgtm https://codereview.chromium.org/472693002/diff/20001/ppapi/tests/test_instance_deprecated.cc File ppapi/tests/test_instance_deprecated.cc (left): https://codereview.chromium.org/472693002/diff/20001/ppapi/tests/test_instance_deprecated.cc#oldcode59 ppapi/tests/test_instance_deprecated.cc:59: i->instance()->AddPostCondition( FWIW, I think this was the only ...
6 years, 4 months ago (2014-08-20 17:55:53 UTC) #2
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 4 months ago (2014-08-22 05:00:21 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/472693002/20001
6 years, 4 months ago (2014-08-22 05:01:42 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 05:56:15 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 05:58:14 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/5495)
6 years, 4 months ago (2014-08-22 05:58:15 UTC) #7
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 4 months ago (2014-08-25 00:27:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/472693002/20001
6 years, 4 months ago (2014-08-25 00:28:11 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium.mac ...
6 years, 4 months ago (2014-08-25 00:31:24 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-25 00:32:55 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/5768)
6 years, 4 months ago (2014-08-25 00:32:56 UTC) #12
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 4 months ago (2014-08-25 01:31:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/472693002/40001
6 years, 4 months ago (2014-08-25 01:31:42 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_gn_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-25 02:51:07 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (40001) as 92c3074f4b4417924115f880657f1ec15da0e0ba
6 years, 4 months ago (2014-08-25 03:00:20 UTC) #16
Jeffrey Yasskin
A revert of this CL (patchset #3) has been created in https://codereview.chromium.org/502143003/ by jyasskin@chromium.org. The ...
6 years, 4 months ago (2014-08-25 22:46:42 UTC) #17
raymes
Hey Dave, I reworked the test to fix the UAF, could you take another quick ...
6 years, 4 months ago (2014-08-26 02:38:03 UTC) #18
Sam McNally
sammc@chromium.org changed reviewers: + sammc@chromium.org
6 years, 3 months ago (2014-08-27 04:45:51 UTC) #19
Sam McNally
lgtm https://codereview.chromium.org/472693002/diff/60001/ppapi/tests/test_instance_deprecated.cc File ppapi/tests/test_instance_deprecated.cc (right): https://codereview.chromium.org/472693002/diff/60001/ppapi/tests/test_instance_deprecated.cc#newcode84 ppapi/tests/test_instance_deprecated.cc:84: // This should cause the instance objects descructor ...
6 years, 3 months ago (2014-08-27 04:45:51 UTC) #20
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 3 months ago (2014-08-27 05:40:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/472693002/140001
6 years, 3 months ago (2014-08-27 05:41:16 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (140001) as 8e63b40f0ee992a5cf215bc2e4a471e6d1ce34cd
6 years, 3 months ago (2014-08-27 06:41:16 UTC) #23
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/41480ebd0095ac41c5b5f4e2fdbadedd8f69e041 Cr-Commit-Position: refs/heads/master@{#291636}
6 years, 3 months ago (2014-09-10 02:32:59 UTC) #24
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:49:53 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/78fdb5a26f2e3cf0ed472668a48add71d043743d
Cr-Commit-Position: refs/heads/master@{#292102}

Powered by Google App Engine
This is Rietveld 408576698