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

Unified Diff: ppapi/proxy/plugin_resource_tracker_unittest.cc

Issue 6286070: Remove all uses of the global Dispatcher Get function. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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_dispatcher_unittest.cc ('k') | ppapi/proxy/plugin_var_serialization_rules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/plugin_resource_tracker_unittest.cc
===================================================================
--- ppapi/proxy/plugin_resource_tracker_unittest.cc (revision 74021)
+++ ppapi/proxy/plugin_resource_tracker_unittest.cc (working copy)
@@ -45,11 +45,10 @@
};
TEST_F(PluginResourceTrackerTest, PluginResourceForHostResource) {
- PP_Instance instance = 0x1234;
PP_Resource host_resource = 0x5678;
HostResource serialized;
- serialized.SetHostResource(instance, host_resource);
+ serialized.SetHostResource(pp_instance(), host_resource);
// When we haven't added an object, the return value should be 0.
EXPECT_EQ(0, tracker().PluginResourceForHostResource(serialized));
« no previous file with comments | « ppapi/proxy/plugin_dispatcher_unittest.cc ('k') | ppapi/proxy/plugin_var_serialization_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698