summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_var_deprecated.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/tests/test_var_deprecated.cc')
-rw-r--r--ppapi/tests/test_var_deprecated.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/ppapi/tests/test_var_deprecated.cc b/ppapi/tests/test_var_deprecated.cc
index 34309ee..07ccf91 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();
}
+