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

Unified Diff: ppapi/tests/test_var_deprecated.cc

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/shared_impl/image_data_impl.cc ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_var_deprecated.cc
===================================================================
--- ppapi/tests/test_var_deprecated.cc (revision 71973)
+++ ppapi/tests/test_var_deprecated.cc (working copy)
@@ -47,8 +47,8 @@
}
std::string TestVarDeprecated::TestBasicString() {
- uint32_t before_object = testing_interface_->GetLiveObjectCount(
- pp::Module::Get()->pp_module());
+ uint32_t before_object = testing_interface_->GetLiveObjectsForInstance(
+ instance_->pp_instance());
{
const uint32_t kStrLen = 5;
const char kStr[kStrLen + 1] = "Hello";
@@ -70,8 +70,8 @@
}
// Make sure nothing leaked.
- ASSERT_TRUE(testing_interface_->GetLiveObjectCount(
- pp::Module::Get()->pp_module()) == before_object);
+ ASSERT_TRUE(testing_interface_->GetLiveObjectsForInstance(
+ instance_->pp_instance()) == before_object);
PASS();
}
@@ -251,8 +251,8 @@
}
std::string TestVarDeprecated::TestHasPropertyAndMethod() {
- uint32_t before_objects = testing_interface_->GetLiveObjectCount(
- pp::Module::Get()->pp_module());
+ uint32_t before_objects = testing_interface_->GetLiveObjectsForInstance(
+ instance_->pp_instance());
{
pp::Var window = instance_->GetWindowObject();
ASSERT_TRUE(window.is_object());
@@ -321,8 +321,8 @@
}
// Make sure nothing leaked.
- ASSERT_TRUE(testing_interface_->GetLiveObjectCount(
- pp::Module::Get()->pp_module()) == before_objects);
+ ASSERT_TRUE(testing_interface_->GetLiveObjectsForInstance(
+ instance_->pp_instance()) == before_objects);
PASS();
}
« no previous file with comments | « ppapi/shared_impl/image_data_impl.cc ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698