Index: ppapi/tests/test_var_deprecated.cc |
=================================================================== |
--- ppapi/tests/test_var_deprecated.cc (revision 71670) |
+++ ppapi/tests/test_var_deprecated.cc (working copy) |
@@ -47,7 +47,7 @@ |
} |
std::string TestVarDeprecated::TestBasicString() { |
- uint32_t before_object = testing_interface_->GetLiveObjectCount( |
+ uint32_t before_object = testing_interface_->GetLiveObjectsForInstance( |
pp::Module::Get()->pp_module()); |
piman
2011/01/20 00:26:23
pp::Module::Get()->pp_module() -> instance_->pp_in
|
{ |
const uint32_t kStrLen = 5; |
@@ -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(); |
} |