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

Unified Diff: ppapi/proxy/plugin_var_tracker_unittest.cc

Issue 15806016: Update ppapi/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/plugin_var_tracker.cc ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_var_tracker_unittest.cc
diff --git a/ppapi/proxy/plugin_var_tracker_unittest.cc b/ppapi/proxy/plugin_var_tracker_unittest.cc
index 83ce6be07cf2d292a84296ae9bdfb5f25b02bd44..f43d7a8d4da21969210822ea78e5e4564654eb89 100644
--- a/ppapi/proxy/plugin_var_tracker_unittest.cc
+++ b/ppapi/proxy/plugin_var_tracker_unittest.cc
@@ -199,11 +199,9 @@ TEST_F(PluginVarTrackerTest, PluginObjectInstanceDeleted) {
// Make a var with one reference.
scoped_refptr<ProxyObjectVar> object(
new ProxyObjectVar(plugin_dispatcher(), host_object.value.as_id));
- PP_Var plugin_var = MakeObject(var_tracker().AddVar(object));
- var_tracker().PluginImplementedObjectCreated(pp_instance,
- plugin_var,
- &mark_on_deallocate_class,
- user_data);
+ PP_Var plugin_var = MakeObject(var_tracker().AddVar(object.get()));
+ var_tracker().PluginImplementedObjectCreated(
+ pp_instance, plugin_var, &mark_on_deallocate_class, user_data);
// Release the plugin ref to the var. WebKit hasn't called destroy so
// we won't get a destroy call.
@@ -230,11 +228,9 @@ TEST_F(PluginVarTrackerTest, PluginObjectLeaked) {
// Make a var with one reference.
scoped_refptr<ProxyObjectVar> object(
new ProxyObjectVar(plugin_dispatcher(), host_object.value.as_id));
- PP_Var plugin_var = MakeObject(var_tracker().AddVar(object));
- var_tracker().PluginImplementedObjectCreated(pp_instance,
- plugin_var,
- &mark_on_deallocate_class,
- user_data);
+ PP_Var plugin_var = MakeObject(var_tracker().AddVar(object.get()));
+ var_tracker().PluginImplementedObjectCreated(
+ pp_instance, plugin_var, &mark_on_deallocate_class, user_data);
// Destroy the instance. This should not call deallocate since the plugin
// still has a ref.
« no previous file with comments | « ppapi/proxy/plugin_var_tracker.cc ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698