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

Issue 10913258: Various fixes to make ppapi_unittests pass again. (Closed)

Created:
8 years, 3 months ago by raymes
Modified:
8 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Various fixes to make ppapi_unittests pass again. The following fixes are contained in this patch: -Construction/destruction of ppapi globals has been moved to the thread on which those globals are used (to prevent thread-safety CHECKs firing). -Some tests for the state of the var tracker in the plugin have been moved onto the plugin thread (to prevent thread-safety CHECKs firing). -Fixed a crash in ppp_instance_private_proxy_unittest.cc which was due to not passing a |PPP_Class_Deprecated| to |PPB_Var_Deprecated->CreateObject| which is required when deleting a var on the plugin side. -Set up a |PluginProxyDelegate| in |PluginGlobals| so that a channel to the browser can be correctly obtained for unittests. BUG=none TEST=Ran ppapi_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157469

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -28 lines) Patch
M ppapi/proxy/ppapi_proxy_test.h View 1 2 7 chunks +20 lines, -9 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 2 10 chunks +44 lines, -6 lines 0 comments Download
M ppapi/proxy/ppp_instance_private_proxy_unittest.cc View 1 2 4 chunks +31 lines, -3 lines 0 comments Download
M ppapi/proxy/ppp_messaging_proxy_unittest.cc View 3 chunks +20 lines, -10 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
raymes
8 years, 3 months ago (2012-09-13 22:42:26 UTC) #1
raymes
No hurry for reviewing this.
8 years, 3 months ago (2012-09-13 22:43:22 UTC) #2
raymes
8 years, 3 months ago (2012-09-14 22:52:55 UTC) #3
dmichael (off chromium)
http://codereview.chromium.org/10913258/diff/5002/ppapi/proxy/ppapi_proxy_test.cc File ppapi/proxy/ppapi_proxy_test.cc (right): http://codereview.chromium.org/10913258/diff/5002/ppapi/proxy/ppapi_proxy_test.cc#newcode158 ppapi/proxy/ppapi_proxy_test.cc:158: return plugin_globals_.get(); What about explicitly setting it in SetUpHarness ...
8 years, 3 months ago (2012-09-17 15:27:29 UTC) #4
raymes
Thanks for the review http://codereview.chromium.org/10913258/diff/5002/ppapi/proxy/ppapi_proxy_test.cc File ppapi/proxy/ppapi_proxy_test.cc (right): http://codereview.chromium.org/10913258/diff/5002/ppapi/proxy/ppapi_proxy_test.cc#newcode158 ppapi/proxy/ppapi_proxy_test.cc:158: return plugin_globals_.get(); On 2012/09/17 15:27:29, ...
8 years, 3 months ago (2012-09-18 21:29:15 UTC) #5
dmichael (off chromium)
lgtm
8 years, 3 months ago (2012-09-18 21:56:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/10913258/12001
8 years, 3 months ago (2012-09-18 22:02:48 UTC) #7
commit-bot: I haz the power
8 years, 3 months ago (2012-09-19 00:55:43 UTC) #8
Change committed as 157469

Powered by Google App Engine
This is Rietveld 408576698