Index: ppapi/tests/test_var_deprecated.cc |
diff --git a/ppapi/tests/test_var_deprecated.cc b/ppapi/tests/test_var_deprecated.cc |
index 34309ee980d193dda18f2a3b456c702a9656c1e1..07ccf91c2ae72a771146557590cad68c8464e187 100644 |
--- a/ppapi/tests/test_var_deprecated.cc |
+++ b/ppapi/tests/test_var_deprecated.cc |
@@ -57,7 +57,7 @@ pp::Var VarScriptableObject::Call(const pp::Var& method_name, |
if (args.size() != 1) |
*exception = pp::Var("Bad argument to SetValue(<value>)"); |
else |
- test_var_deprecated_->set_var_from_page(args[0]); |
+ test_var_deprecated_->set_var_from_page(pp::VarPrivate(args[0])); |
} |
return pp::Var(); |
@@ -297,7 +297,7 @@ std::string TestVarDeprecated::TestHasPropertyAndMethod() { |
uint32_t before_objects = testing_interface_->GetLiveObjectsForInstance( |
instance_->pp_instance()); |
{ |
- pp::Var window = instance_->GetWindowObject(); |
+ pp::VarPrivate window = instance_->GetWindowObject(); |
ASSERT_TRUE(window.is_object()); |
// Regular property. |
@@ -330,7 +330,7 @@ std::string TestVarDeprecated::TestHasPropertyAndMethod() { |
// Try to use something not an object. |
exception = pp::Var(); |
- pp::Var string_object("asdf"); |
+ pp::VarPrivate string_object("asdf"); |
ASSERT_FALSE(string_object.HasProperty("find", &exception)); |
ASSERT_FALSE(exception.is_undefined()); |
exception = pp::Var(); |
@@ -397,3 +397,4 @@ std::string TestVarDeprecated::TestPassReference() { |
PASS(); |
} |
+ |